Bitte beachten Sie, dass API 2.0 jetzt die bevorzugte Version ist. Die alte API bleibt bis Ende 2021 voll funktionsfähig.
Name | Wert | Beschreibung |
---|---|---|
type optional | String | Definiert den Problemtyp. Zulässige Werte sind:
|
status optional | String | Defines the issue resolution status. Zulässige Werte sind:
|
file optional | String | Defines the path of the file issues are associated with. If the file path is not specified the method will get issues associated with all the project files. |
language optional | String | Defines the language issues are associated with. If the language is not specified the method will get issues associated with all the project languages. Crowdin-Sprachcodes. |
date_from optional | String | Problem hinzugefügt von. Use the following ISO 8601 format: YYYY-MM-DD±hh:mm |
date_to optional | String | Problem hinzugefügt zu. Use the following ISO 8601 format: YYYY-MM-DD±hh:mm |
json optional | String | Könnten keinen Wert enthalten. Gibt an, ob die Antwort in JSON sein soll. |
jsonp optional | String | Name der Rückruffunktion. Gibt an, ob die Antwort in JSONP sein soll. |
Variablen | ||
project-identifier | String | Projekt-ID. |
login | String | Ihr Nutzername auf Crowdin. |
account-key | String | Ihr Konto-API-Schlüssel. |
<?xml version="1.0" encoding="UTF-8"?>
<issues>
<issue>
<source_string>Projekt-Name</source_string>
<context>Überschrift 3 XPath: /html/body/div/div/h3</context>
<comment>Source string mistake</comment>
<created>2017-12-18T14:19:05+0000</created>
<type>source_mistake</type>
<status>unresolved</status>
<file>/crowdin_sample_webpage.html</file>
<language>
<name>French</name>
<code>fr</code>
</language>
<string_url>https://crowdin.com/translate/project-issues/3624/en-uk#14342648</string_url>
<user>John Doe</user>
</issue>
<issue>
<source_string>Aktuelles Passwort</source_string>
<context>current_password</context>
<comment>wrong translation</comment>
<created>2017-12-18T14:18:29+0000</created>
<type>translation_mistake</type>
<status>unresolved</status>
<file>/crowdin_sample_android.xml</file>
<language>
<name>French</name>
<code>fr</code>
</language>
<string_url>https://crowdin.com/translate/project-issues/3625/en-uk#14342682</string_url>
<user>John Doe</user>
</issue>
<issue>
<source_string>Schnellstart</source_string>
<context>quick_start</context>
<comment>Need more context</comment>
<created>2017-12-18T14:18:01+0000</created>
<type>context_request</type>
<status>unresolved</status>
<file>/crowdin_sample_android.xml</file>
<language>
<name>French</name>
<code>fr</code>
</language>
<string_url>https://crowdin.com/translate/project-issues/3625/en-uk#14342693</string_url>
<user>John Doe</user>
</issue>
</issues>
<?xml version="1.0" encoding="UTF-8"?>
<error>
<code>1</code>
<message>Das angeforderte Projekt existiert nicht oder der API-Schlüssel ist nicht gültig.</message>
</error>
curl \
-F "type=general_question" \
-F "status=unresolved" \
-F "date_from=2017-01-01" \
https://api.crowdin.com/api/project/{project-identifier}/issues?login={username}&account-key={account-key}
<?php
$post_params = array();
$request_url = 'https://api.crowdin.com/api/project/{project-identifier}/issues?login={username}&account-key={account-key}';
$post_params['type'] = 'general_question';
$post_params['status'] = 'unresolved';
$post_params['date_from'] = '2017-01-01';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $request_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_params);
$result = curl_exec($ch);
curl_close($ch);
echo $result;