223 Open Daily games
1 Open Realtime game
    Pages:   1   (1 in total)
  1. #1 / 10
    Standard Member bert2002
    Rank
    Private
    Rank Posn
    #2753
    Join Date
    Sep 16
    Location
    Posts
    9

    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


  2. #2 / 10
    Prime Amidon37
    Rank
    General
    Rank Posn
    #3
    Join Date
    Feb 10
    Location
    Posts
    1869

    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.


  3. #3 / 10
    Standard Member atroy2
    Rank
    Private
    Rank Posn
    #1503
    Join Date
    Dec 20
    Location
    Posts
    5

    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.


  4. #4 / 10
    Standard Member atroy2
    Rank
    Private
    Rank Posn
    #1503
    Join Date
    Dec 20
    Location
    Posts
    5

    Any update here? Would really like to build this tool


  5. #5 / 10
    Commander In Chief tom tom is offline now
    WarGear Admin tom
    Rank
    Commander In Chief
    Rank Posn
    #762
    Join Date
    Jun 09
    Location
    Posts
    5651

    Sorry about this, I'll get it fixed.


  6. #6 / 10
    Standard Member bert2002
    Rank
    Private
    Rank Posn
    #2753
    Join Date
    Sep 16
    Location
    Posts
    9

    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 :)


  7. #7 / 10
    Commander In Chief tom tom is offline now
    WarGear Admin tom
    Rank
    Commander In Chief
    Rank Posn
    #762
    Join Date
    Jun 09
    Location
    Posts
    5651

    I'm working on this now, sorry for the massive delay!


  8. #8 / 10
    Commander In Chief tom tom is offline now
    WarGear Admin tom
    Rank
    Commander In Chief
    Rank Posn
    #762
    Join Date
    Jun 09
    Location
    Posts
    5651

    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.


  9. #9 / 10
    Standard Member bert2002
    Rank
    Private
    Rank Posn
    #2753
    Join Date
    Sep 16
    Location
    Posts
    9

    Just found the threat again and thanks so much, working very good with the api key :)


  10. #10 / 10
    Standard Member bert2002
    Rank
    Private
    Rank Posn
    #2753
    Join Date
    Sep 16
    Location
    Posts
    9

    Edited Sun 10th Mar 21:33 [history]

You need to log in to reply to this thread   Login | Join
 
Pages:   1   (1 in total)