Results API
Get
https://host/socrates/restModule/results/get
Fetch the results of a dispatch job. If neither dispatch_names or dispatch_ids are specified all current results are returned.
dispatch_names = myDispatch,myDispatch2 - a ',' separated list of the names of the dispatches to get the results of.(OPTIONAL)
dispatch_ids = 1,2 - a ',' separated list of the ids of the dispatches to get the results of. (OPTIONAL)
respondent_numbers = 4479774503087,134529300 - a ',' separated list of the respondent numbers of the dispatches to get the results of.(OPTIONAL)
respndent_ids = 1,2 - a ',' separated list of the ids of the respondent ids dispatches to get the results of. (OPTIONAL)
Errors:
- DispatchDoesNotExistError
- RespondentDoesNotExistError
Returns:
<results xmlns="http://www.embracemobile.com/socrates/1.0" >
<results >
<result dispatch_name="myDispatch" dispatch_id="1" >
<question name="ques1" >
<respondent number="447977503087" id="116" >
<answer time="2006-04-22 13:12 GMT" response="1" answer_name="PlayStation" answer_id="1" />
<answer time="2006-04-22 13:12 GMT" response="2" answer_name="PlayStation" answer_id="1" />
</respondent>
</question>
<question name="ques2" >
<respondent number="447977503087" id="116" >
<answer time="2006-04-22 13:12 GMT" response="1" answer_name="PlayStation" answer_id="1" />
<answer time="2006-04-22 13:12 GMT" response="2" answer_name="PlayStation" answer_id="1" />
</respondent>
</question>
</result>
<result dispatch_name="myDispatch2" dispatch_id="2" >
</result>
</results>
|