Difference between revisions of "Player Info"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Created page with "'''Implementation Status:''' Implemented<br/> '''URI:''' https://api.kag2d.com/player/$PLAYER/info<br/> '''HTTP Verbs Supported:''' GET...")
 
Line 9: Line 9:
  
 
== Example ==
 
== Example ==
 +
'''Request:''' GET /player/FliesLikeABrick/info
 
  {"username": "FliesLikeABrick", "banned": false, "gold": true}
 
  {"username": "FliesLikeABrick", "banned": false, "gold": true}
  

Revision as of 19:27, 10 March 2012

Implementation Status: Implemented
URI: https://api.kag2d.com/player/$PLAYER/info
HTTP Verbs Supported: GET
Response Type: JSON dictionary
HTTP Auth Required: No


This resource provides basic account information for a user. It may also provide status information similar to Account Status, just in a different format which may be better-suited for certain purposes/clients.

Example

Request: GET /player/FliesLikeABrick/info

{"username": "FliesLikeABrick", "banned": false, "gold": true}

Errors

The resource will return 404 if the user does not exist.