Fetch token

From ePrize Developers Wiki

Revision as of 17:39, 14 May 2009 by Ken-fox (Talk | contribs)
Jump to: navigation, search

API Home Page :: Games and Awards

Summary

TODO: Fill me in.





Example: Requesting A Valid Token

Summary

This demonstrates a good request for a token that exists.


Response

HTTP Status Code: 200 OK


<?xml version="1.0" encoding="UTF-8" ?>
<result ver="1.0">
  <token>
    <id>1</id>
    <user>Bill</user>
    <game>12345-1234-1234-1234</game>
  </token>
</result>


Example: Requesting An Invalid Token

Summary

This demonstrates a good request for a token that does not exist.


Response

HTTP Status Code: 404 Not Found


<?xml version="1.0" encoding="UTF-8"?>
<result ver="1.0">
  <status>0</status>
</result>


Personal tools