Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Submit your API method. 
  2. 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.

  3. Wait between 2 to 5 seconds
  4. Call API method /api/trm/status with the value contained in trm.requestid
  5. This method returns the same JSON object as above. If status is "Finished" or "Failed" then you are done!
  6. If the status is "Waiting" or "Executing" go back to step 3.

...

Code Block
languagejs
{
	"trm": {
		"requestid": 559,
		"isbatch": false,
		"status": "Waiting",
		"statusText": "Waiting..."
	}
}

 


Oups, this operation failed:

Code Block
languagejs
{
	"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
languagejs
{
	"trm": {
		"requestid": 0,
		"isbatch": false,
		"status": "Finished",
		"statusText": "Finished!"
	},
	"custom": {
		"fileref": "ea9c1adeb02f4a9ebe8771583c12fa6b",
		"filename": "export_wm-1180_en_fr.xlf",
		"segments": 10
	}
}

 

 

...