Hey,
any examples on how to auth against your api? Would help a lot to build a Slack bot to inform people that its their turn :)
bert
I am not sure if anyone has actually taken advantage of the API since it was put out there, but what you are saying sounds cool.
I am attempting to do something similar. Working on a discord bot that utilizes the Python Requests library to inform people when it is their turn. I also think I'm having trouble with authorization. I keep getting this error: result status="Error" message="Player authentication error". If you know a fix let me know.
Any update here? Would really like to build this tool
Sorry about this, I'll get it fixed.
Hi Tom,
any time to work on this? Would be great to see who's turn it is without parsing the html with a scapper :)
I'm working on this now, sorry for the massive delay!
I've made a bunch of changes to fix the API, it was a bit more involved than expected as I don't really know what I was thinking when the authentication part was originally built. It wasn't ever really intended for third party client use hence the issues.
The API docs have been updated and moved to: https://api.wargear.net/
To authenticate you'll need an API key from here: https://www.wargear.net/settings/account#api_keys
For now, there's only a read only key available (i.e. for reading data from the API, not writing data which would permit you to use it to make moves in games etc.).
I added a new API call called GetCurrentTurns which returns an array of the games where it's your turn. This should make the Slack bot a lot easier to set up. If you need more info in the data about each game that is returned let me know.
There aren't any query rate limits so please be considerate when using the API.
Just found the threat again and thanks so much, working very good with the api key :)