Difference between revisions of "Account Status"
From King Arthur's Gold Wiki
m |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:API]] | [[Category:API]] | ||
− | Implementation Status: [[Planned | + | Implementation Status: [[API_Implementation_Statuses#Planned|Planned]] |
The status of a KAG account can be fetched from https://api.kag2d.com/account/status | The status of a KAG account can be fetched from https://api.kag2d.com/account/status | ||
Line 37: | Line 37: | ||
|style="border-style: solid; border-width: 1px 0 0 0"|IPv4 and/or IPv6 address and port of the server the player is currently in. If the player is offline or otherwise not in a server, this will be the server they were last seen on. A dictionary will be returned with the IPv4 and/or IPv6 address of the server (with keys IPv4 and IPv6). If other server details are desired, they should be requested from the [[Server Status]] resource | |style="border-style: solid; border-width: 1px 0 0 0"|IPv4 and/or IPv6 address and port of the server the player is currently in. If the player is offline or otherwise not in a server, this will be the server they were last seen on. A dictionary will be returned with the IPv4 and/or IPv6 address of the server (with keys IPv4 and IPv6). If other server details are desired, they should be requested from the [[Server Status]] resource | ||
|} | |} | ||
+ | |||
+ | == See Also == | ||
+ | * [[Player Info]] |
Latest revision as of 22:06, 12 March 2012
Implementation Status: Planned
The status of a KAG account can be fetched from https://api.kag2d.com/account/status
This will contain a JSON dictionary with the following keys:
Key | Data Type | Description/Values |
---|---|---|
accountStatus | Integer | The account's gold/premium as well as banned status. Current values are additive binary fields. Additional values may be added, so plan accordingly in consumption code.
1: Active |
currentStatus | Integer | Whether the player is online or not. Additive binary fields/bitstring, so if the player is online and playing the value would be 3 1: Online |
currentServer | Dictionary, two strings and an Integer (IPv4, IPv6 and port) | IPv4 and/or IPv6 address and port of the server the player is currently in. If the player is offline or otherwise not in a server, this will be the server they were last seen on. A dictionary will be returned with the IPv4 and/or IPv6 address of the server (with keys IPv4 and IPv6). If other server details are desired, they should be requested from the Server Status resource |