Description
Method available starting from 5.1 version of Sippy
The application supports trusted mode and the i_customer parameter should be provided in this case.
Get status of an upload
Parameters
- token - token returned by getUploadToken(). String. Mandatory.
Returns
- result - OK means that operation the operation was successful. String.
- status - the status of processing of the uploaded file. String.
- process_on - date and time when the processing of the files starts. String.
- expires_on - date and time when the system stops any attempts to process the file. String.
- status_changed_on - date and time when the status has been changed. String.
- url - URL where the report can be downloaded from. String.
Implementation details
Status would get changed only in case the file is uploaded, possible values:
- INIT_TOKEN
- FILE_UPLOADED
- PROCESSING
- FAIL
- DONE
After INIT_TOKEN the file upload should be done, the next status would be FILE_UPLOADED, and PROCESSING at specified process_on, then either FAIL (unsuccessful update, unable to parse content, update with errors, etc) or DONE (successful processing of all rows with commands, no errors generated).
PROCESSING means that the new php process would be started and the start of processing of the uploaded file. If the PROCESSING lasts for more then 1 day, the upload task would be dropped, setting the status to FAIL
The url is returned only when the file has been processed.