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.
Navn | Parameter | Beskrivelse |
---|---|---|
branch valgfrit | string | Navnet på relateret versiongren (Versionshåndtering). |
Variabler | ||
project-identifier | string | Projektidentifikator. |
login | string | Dit brugernavn i Crowdin. |
account-key | string | Din konto API-nøgle. |
pakke | string | Sprogkode eller "alle" for at downloade et bundt med oversættelser til alle sprog. |
#Download alle oversættelser som én enkelt ZIP-fil.
wget https://api.crowdin.com/api/project/{project-identifier}/download/all.zip?login={username}&account-key={account-key}
#Download French translations.
wget https://api.crowdin.com/api/project/{project-identifier}/download/fr.zip?login={username}&account-key={account-key}
#Download all translations from the master branch.
wget https://api.crowdin.com/api/project/{project-identifier}/download/all.zip?login={username}&account-key={account-key}&branch=master
<?php
ini_set('auto_detect_line_endings', 1);
ini_set('default_socket_timeout', 5); // socket timeout, just in case
file_put_contents('translations.zip', file_get_contents('https://api.crowdin.com/api/project/{project-identifier}/download/all.zip?login={username}&account-key={account-key}'));