...
- Submit your API method.
- If the API call returns status "WaitingFinished" or "ExecutingFailed" then you are done. Otherwise, the operation now runs in the background, go to step 3.
- Wait between 2 to 5 seconds
- Call API method /api/trm/status with the value contained in trm.requestid
- This method returns the same JSON object as above. If status is "Finished" or "Failed" then you are done!
- If the status is "Waiting" or "Executing" go back to step 3.
...
Code Block | ||
---|---|---|
| ||
{ "trm": { "requestid": 559, "isbatch": false, "status": "Waiting", "statusText": "Waiting..." } } |
Oups, this operation failed:
Code Block | ||
---|---|---|
| ||
{ "trm": { "requestid": 559, "isbatch": false, "status": "Failed", "statusText": "Operation failed!", "statusInfo": "The parameter xy was not properly supplied" } } |
...
The operation terminated with success. Results are included in the custom and/or results nodes.
...
Code Block | ||
---|---|---|
| ||
{ "trm": { "requestid": 0, "isbatch": false, "status": "Finished", "statusText": "Finished!" }, "custom": { "fileref": "ea9c1adeb02f4a9ebe8771583c12fa6b", "filename": "export_wm-1180_en_fr.xlf", "segments": 10 } } |
...