-
Notifications
You must be signed in to change notification settings - Fork 5
admin get_assignments.json
Timothy Duffy edited this page Mar 27, 2015
·
3 revisions
###admin/get_assignments.json###
All admin api's require a token to be passed in. See get_access_token.json for more information.
admin/get_assignments.json?token=238236fa-0e1a-499c-8051-c46e2f416387
Fields include:
[optional]
expired
If set to 1, will return only expired assignments. If set to 0 will
return not-expired assignments. Defaults to 0.
[optional]
start
Starting index for paging. Defaults to 0.
[optional]
count
Number of responses to return. Defaults to 25. If value is larger
than 25, will fall back to 25.
A valid response looks like:
{
"assignments": [
{
"bottom_right_lat": 43,
"expire_datetime": "2014-09-10 04:20:51.034039",
"name": "Are you listening?"
"top_left_lng": -77.9,
"top_left_lat": 43.4,
"questions": [
{
"answer9": "",
"answer8": "",
"answer5": "",
"answer4": "",
"answer7": "",
"answer6": "",
"answer1": "No",
"answer0": "Yes",
"answer3": "",
"answer2": "Please leave me alone",
"question_type_id": 2,
"question_text": "Can you hear me now?"
}
],
"assignment_id": 1,
"publish_datetime": "2014-09-08 22:20:51.034033",
"bottom_right_lng": -77.3
}
}
}