Fetch token

From ePrize Developers Wiki

(Difference between revisions)
Jump to: navigation, search
Line 9: Line 9:
|responsecode=200 OK
|responsecode=200 OK
|response=<?xml version="1.0" encoding="UTF-8" ?>
|response=<?xml version="1.0" encoding="UTF-8" ?>
-
<result ver="ePrize Web Services 1.0">
+
<result ver="1.0">
<token>
<token>
<id>1</id>
<id>1</id>
Line 23: Line 23:
|responsecode=404 Not Found
|responsecode=404 Not Found
|response=<?xml version="1.0" encoding="UTF-8"?>
|response=<?xml version="1.0" encoding="UTF-8"?>
-
<result ver="ePrize Web Services 1.0">
+
<result ver="1.0">
<status>0</status>
<status>0</status>
</result>
</result>
}}
}}

Revision as of 17:39, 14 May 2009

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