Player Status (API)
From King Arthur's Gold Wiki
Revision as of 13:13, 16 June 2012 by FliesLikeABrick (Talk | contribs)
Example call:
https://api.kag2d.com/player/FliesLikeABrick/status
Example output:
{ "playerStatus": { "action": 2, "lastUpdate": "2012-06-15 17:38:29", "server": { "serverIPv4Address": "204.152.222.197", "serverIPv6Address": "2607:fcd0:1337:29::2", "serverPort": 50301 } } }
You can then make a subsequent call to Server Status (API) to get the server information, since you now have the server addresses and ports. You should dynamically select serverIPv4Address or serverIPv6Address when constructing the call for Server Status (API) since not all servers will have both (and future servers may be IPv6-only!)