Fetch awards

From ePrize Developers Wiki

(Difference between revisions)
Jump to: navigation, search
(New page: <pre>Response: 200 OK prizes: [ /v1/{apikey}/game/{game1}/prize/{prize}, ... ], tokens: [ /v1/{apikey}/game/{game2}/token/{token}, ... ] Response if profile with UID doesn't exist: 404 No...)
Line 2: Line 2:
200 OK
200 OK
prizes: [
prizes: [
-
/v1/{apikey}/game/{game1}/prize/{prize},
+
/v1/{apikey}/game/{game1}/prize/{prize},
-
...
+
...
],
],
tokens: [
tokens: [
-
/v1/{apikey}/game/{game2}/token/{token},
+
/v1/{apikey}/game/{game2}/token/{token},
-
...
+
...
]
]

Revision as of 13:44, 3 March 2009

Response:
200 OK
prizes: [
  /v1/{apikey}/game/{game1}/prize/{prize},
  ...
],
tokens: [
  /v1/{apikey}/game/{game2}/token/{token},
  ...
]

Response if profile with UID doesn't exist:
404 Not Found

Awards are commonly prizes won or tokens awarded to a profile as the result of redeeming a game token. The returned lists are not the history of awards on this profile. If an action occurs on an item awarded, e.g. prize fulfillment cancels a prize, that item may disappear from the list.

Any list in the response may be empty if there aren't items of that type for this profile.

The lists may use any valid canonical URL to represent an award. Different types of awards may support different interfaces so the client should use GET on the URL to discover the possible actions.

Personal tools