Skip to main content

Asynchronously translate Contacts IDs

API call description

  1. Construct the document to be translated, as shown in the following figure.

Note

Only files in xlsx, xls, csv, and txt formats are supported.
  1. Call the Single-step file upload API to obtain the media_id.
  2. Call this API to obtain the translation job ID.

Note

After this API is called, if the file is translated successfully, an asynchronous job callback notification is triggered. 4. Call the Obtain the results of an asynchronous translation task API to obtain the download link of the translated file.

Note

It is recommended to reference the returned file download link with the <a> tag. Do not specify the download attribute (due to browser compatibility issues). 5. The file content downloaded by the user is shown in the following figure. When calling this API, you may encounter the following issue:
  • Issue: An excel file generated with the NodeJs third-party library exceljs looks fine in content, but the translation fails.
  • Cause: When sharedString is not enabled, exceljs writes file content using formula string by default. This behavior is non-standard and causes translation to fail.
  • Solution: Refer to the exceljs documentation and force-enable the useSharedStrings option.

Request

Basic information

Request header

Request body

Request example

HTTP
Java
Python
PHP
Go
Node.js
C#

Response

Response body

Response body example

Error codes

If an error is returned when calling this API, look up the error message in the Global error codes document for a solution.