Scarica il Report dei costi traduzione

Please consider that API 2.0 is now the preferred version to be used. The old API will remain fully functional until the end of 2021.

Crowdin API v2
Download previously generated Translation Costs report.

Richiesta

Note: Use the combination of project identifier, username, and account key to pass to this endpoint.

GET https://api.crowdin.com/api/project/{project-identifier}/reports/translation-costs/download?login={username}&account-key={account-key}

Parametri

Nome Valore Descrizione
hash required nella stringa Defines hash previously received from the export of Translation Costs report method.
Variabili
identificatore-progetto nella stringa Identificatore progetto.
accesso nella stringa Il tuo nome utente su Crowdin.
chiave-profilo nella stringa La chiave API del tuo profilo.

Esempi

wget -O translation_costs.csv "https://api.crowdin.com/api/project/{project-identifier}/reports/translation-costs/download?login={username}&account-key={account-key}&hash=098f6bcd4621d373cade4e832627b4f6"
<?php
ini_set('auto_detect_line_endings', 1); // allows file support for macintosh
ini_set('default_socket_timeout', 5); // socket timeout, just in case

file_put_contents('translation_costs.csv', file_get_contents('https://api.crowdin.com/api/project/{project-identifier}/reports/translation-costs/download?login={username}&account-key={account-key}&hash=098f6bcd4621d373cade4e832627b4f6'));

Questo articolo è stato utile?