survey/submit_image
Receives an image
Important: An API Key is required to work with these API Calls
Important: This API Call requires information to be sent in via POST and via FILES.
http://api.verifiapp.com/survey/submit_image/{API-KEY}/{QUESTION-ID}
You have to send a file through HTTP FILES. The field nust be called 'photo' and the filename must be unique:
The PHP API is expecting to receive an array looking like this. The name is customized and must be unique. It must be auto-generated by the Android application and it must be random an unique, otherwise it would cause problems.
One question can have many images.
Sample Successful Response
{
result: "success"
results: "Image uploaded successfully"
}
Successful Response Reference
A successful response will return the following items in a JSON array
| Preference | Description |
|---|---|
| result | success |
| results | The image name that has been uploaded |
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 |