survey/assignment_history
Important: An API Key is required to work with these API Calls
List all completed assignments for a user.
Sample Request
http://api.verifiapp.com/survey/assignment_history/{API-KEY}
Sample Response
{
{
result: "success"
-results: [
-{
assignment_id: "2"
survey_id: "4"
survey_title: "QC Inspector Recommendations"
-installation: {
id: "1534"
firstname: "Mr"
lastname: "Crump"
account: "11136351"
city: "Raheny"
engineer: "Sierra dublin 5/17"
coordinates: ""
}
}
]
}
Successful Response Reference
A successful response will return the following items in a JSON array
| Preference | Description |
|---|---|
| result | success |
| results | An array containing the following information: |
| assignment_id | The unique survey ID |
| survey_id | The ID of the owner of the survey |
| survey_title | The Title of the survey |
| installation | An array containing customer installation location information |
| id | The Installation ID |
| firstname | The first name of the customer/installation |
| lastname | The surname of the customer/installation |
| account | The account number of the customer/installation |
| city | The city of the customer/installation |
| engineer | The engineer at customer/installation |
| coordinates | The GPS co-ordinates of the customer/installation |
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 |