Fetch token
From ePrize Developers Wiki
(Difference between revisions)
Line 10: | Line 10: | ||
|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="ePrize Web Services 1.0"> | ||
- | < | + | <token> |
- | + | <id>1</id> | |
- | + | <user>Bill</user> | |
- | + | <game>12345-1234-1234-1234</game> | |
- | + | </token> | |
- | + | ||
- | + | ||
- | + | ||
</result> | </result> | ||
}} | }} | ||
Line 27: | Line 24: | ||
|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="ePrize Web Services 1.0"> | ||
- | <result/> | ||
<status>0</status> | <status>0</status> | ||
</result> | </result> | ||
}} | }} |
Revision as of 17:36, 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="ePrize Web Services 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="ePrize Web Services 1.0"> <status>0</status> </result>