End point: [RemoteTM URL]/memories
Send a POST request with these headers:
Include these parameters in a JSON body:
command |
getTu |
memory |
ID of the memory to query |
tuid |
ID of the translation unit to retrieve |
Example:
{
"command": "getTu",
"memory": "1617963861912",
"tuid": "1668707130-10-12-12"
}
RemoteTM responds with a JSON object.
On success, field 'status' is set to 'OK' and requested translation unit is included
in
'tu' field, escaped for JSON format. Example:
{
"tu": "<tu tuid=\"1668707130-10-12-12\"> ... </tu>",
"status": "OK"
}
On error, field 'status' is set to 'Error' and field 'reason' contains the error cause.
Example:
{
"status": "Error",
"reason": "TU does not exist"
}