survey/get_upc_wayleave_answers
Important: An API Key is required to work with these API Calls
List ONE assignment assigned to a user, includes customer installation details
Sample Request
http://api.verifiapp.com/survey/get_upc_wayleave_answers/{API-KEY}/{CUSTOMER_ID}
Sample Response
{"result":"success","results":[{"question_id":13522,"default":""},{"question_id":13514,"default":""},{"question_id":13515,"default":"UNKNOWN"},{"question_id":13516,"default":""},{"question_id":13517,"default":"CASTLE STREET"},{"question_id":13518,"default":"MEATH"},{"question_id":13708,"default":"Aerial Attachment"}]}
Important, you have to send the customer ID. That's in installation > id. This API call is only available for the installations of type "upc_wayleave".
You will receive an array with question_id and the answer. If something is unavailable, it would contain an empty string
Note that these answers are only valid for the "UPC- WAYLEAVE survey" questionnaire, which is the relevant one.
Successful Response Reference
A successful response will return the following item in a JSON array
| Preference | Description |
|---|---|
| result | success |
| results | Array relating question_ids and answer values. |
Unsuccessful Response Reference
A unsuccessful response will return the following items in a JSON array
| Preference | Description | Sample response |
|---|---|---|
| result | error | |
| error | The specific error is described in the response | Invalid API Key |