 |
|
 |
|
Mokugift API: Query all Rewards
Description
This call would return the list of all Rewards ever created for the specified campaign.
API version = 1.0
Request Information
EndPoint URL: |
http://www.mokugift.com/api/all_rewards/<campaign_id> |
 |
HTTP Method: |
GET |
Request Parameters
Parameter |
Value |
Description |
<campaign_id> (on URL) |
String (required) |
The unique ID for the reward campaign. |
Sample Request:
Response Elements
Fields |
Parent Field |
Description |
result |
n/a |
Root element that contain the whole response |
version |
result |
Version of the Mokugift API. |
status |
result |
Status of this call: Success or Failed. |
summary |
result |
The summary of all activites for the campaign. |
reward_count |
summary |
The number of rewards ever created for the campaign. |
tree_count |
summary |
The number of trees ever planted for the campaign. |
rewards |
result |
This element contain all the rewards. |
reward |
rewards |
This element contain all the informaiton of each reward. |
id |
reward |
Unique ID of the reward. |
date |
reward |
The date when the reward was created. |
recipient_email |
reward |
The email of the recipient of the reward. |
tree_count |
reward |
The number of trees planted for the reward. |
error |
result |
Only when status=Failed. Error Information: code & description. Please see Complete list of Errors |
Sample Response 1:
Sample Response 2: (Example error with Invalid campaign ID)
|