Экспортировать переводы

Build ZIP archive with the latest translations.

Please note that this method can be invoked only once per 30 minutes (there is no such restriction for organization plans). Also API call will be ignored if there were no changes in the project since previous export. You can see whether ZIP archive with latest translations was actually build by status attribute ("built" or "skipped") returned in response.


GET https://api.crowdin.com/api/project/{идентификатор-проекта}/export?key={ключ-проекта}


Название Значение Описание
branch необязательный строка The name of related version branch (Versions Management).
async optional булево Defines whether the call will be executed asynchronously – 1 or not – 0. Default is 0. This means that the product APIs can be invoked and get an immediate response that the request was accepted.
json необязательный строка Может не содержать значение. Указывает, что ответ должен быть в формате JSON.
jsonp необязательный строка Callback function name. Defines that response should be in JSONP format.
project-identifier обязательный строка Должен содержать идентификатор проекта.
project-key обязательный строка API-ключ проекта.


If successful, this method returns a XML structure, as it is shown below.
<?xml version="1.0" encoding="ISO-8859-1"?>
<success status="built">
<?xml version="1.0" encoding="ISO-8859-1"?>
<success status="skipped">
Образец ответа при неудавшемся запросе:
<?xml version="1.0" encoding="ISO-8859-1"?>
  <message>API key is not valid</message>


curl \
$request_url = 'https://api.crowdin.com/api/project/{project-identifier}/export?key={project-key}';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $request_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$result = curl_exec($ch);

echo $result;

Была ли эта статья полезной?