Skip to main content

SOAP API

Callbacks

This section describes callbacks that are sent from XTM Cloud. Callbacks are sent in a JSON format as POST parameters.

  • Analysis finished callback

    For example: QUERY STRINGS

    xtmProjectId: 140667

    xtmCustomerId: 6095FORM VALUES

    {
      "projectManager": {
        "name": "TestPM",
        "id": 18
      },
      "creator": {
        "name": "TestPM",
        "id": 18
      },
      "activity": "ACTIVE",
      "jobs": [
        {
          "fileName": "simple.xml",
          "targetLanguage": "pl_PL",
          "jobDescriptor": {
            "id": 87173
          },
          "status": "FINISHED"
        }
      ],
      "targetLanguages": [
        "pl_PL"
      ],
      "projectDescriptor": {
        "id": 87167
      },
      "name": "TestProject",
      "tmCustomers": [
        {
          "idStr": "21",
          "name": "TestCustomer",
          "id": 21
        }
      ],
      "sourceLanguage": "en_GB",
      "createDate": {
        "date": 4,
        "hours": 10,
        "seconds": 4,
        "month": 7,
        "nanos": 575000000,
        "timezoneOffset": 0,
        "year": 115,
        "minutes": 0,
        "time": 1438682404575,
        "day": 2
      },
      "customer": {
        "idStr": "21",
        "name": "TestCustomer",
        "id": 21
      },
      "status": "NOT_STARTED"
    }
  • Workflow transition callback

    For example: QUERY STRINGS

    xtmProjectId: 140667

    xtmCustomerId: 6095FORM VALUES

    {
      "projectDescriptor": {
        "id": 87167
      },
      "events": [
        {
          "type": "FINISHED",
          "tasks": [
            {
              "currentUser": {
                "name": "TestLinguist",
                "id": 29268,
                "type": "INTERNALLINGUIST"
              },
              "fileName": "sample.xml",
              "targetLanguage": "pl_PL",
              "step": {
                "workflowStepName": "translate1",
                "workflowStep": "TRANSLATE1"
              },
          "job": {
             "id": 547047
           },
              "bundle": {
                "from": 1,
                "to": 70
              }
            }
          ]
        }
      ]
    }