Difference between revisions of "Validate Token"
From King Arthur's Gold Wiki
(Created page with "Category:API '''Implementation Status:''' Implemented<br/> '''URI:''' https://api.kag2d.com/player/$PLAYER/token/verification/$TO...") |
|||
Line 8: | Line 8: | ||
'''HTTP Auth Required:''' No<br/> | '''HTTP Auth Required:''' No<br/> | ||
+ | == Request Details == | ||
+ | This resource is the validation of the token provided. Tokens are only allowed to be validated once, and they expire very shortly after they are created (subject to change, but assume on the order of 15-45 seconds). The response will be a boolean true if the token provided is valid (unused, unaltered, unexpired), false in all other cases. | ||
== Successful Response == | == Successful Response == |
Revision as of 07:54, 10 March 2012
Implementation Status: Implemented
URI: https://api.kag2d.com/player/$PLAYER/token/verification/$TOKEN
HTTP Verbs Supported: GET
Response Type: JSON dictionary
HTTP Auth Required: No
Request Details
This resource is the validation of the token provided. Tokens are only allowed to be validated once, and they expire very shortly after they are created (subject to change, but assume on the order of 15-45 seconds). The response will be a boolean true if the token provided is valid (unused, unaltered, unexpired), false in all other cases.
Successful Response
{"playerTokenVerification": false}
Error Conditions
No error conditions are known/documented right now, as they would likely just end up as a 'false' token validation.