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.
Név | Érték | Leírás |
---|---|---|
hash szükséges | string | Meghatározza a korábbi Fordítási költségjelentés módszere exportálásakor kapott hash értéket. |
Változók | ||
project-identifier | string | Projekt azonosítója. |
login | string | A felhasználóneve a Crowdinban. |
account-key | string | A fiókja API kulcsa. |
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'));