Reported Issues

Get a list of issues reported in the Editor.




Название Значение Описание
type необязательный строка Defines the issue type.
Допустимые значения:
  • "general_question" — general question
  • "translation_mistake" — current translation is wrong
  • "context_request" — lack of contextual information
  • "source_mistake" — mistake in the source string
  • "all" — all the issue types listed above (default value)
status optional строка Defines the issue resolution status.
Допустимые значения:
  • "unresolved" — unresolved issues
  • "resolved" — resolved issues
  • "all" — all the issue resolution statuses listed above (default value)
file optional строка 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.
date_from optional строка Issues added from. Use the following ISO 8601 format: YYYY-MM-DD±hh:mm
date_to optional строка Issues added to. Use the following ISO 8601 format: YYYY-MM-DD±hh:mm
json необязательный строка May contain no value. Defines that the response should be in JSON.
jsonp необязательный строка Callback function name. Defines that the response should be in JSONP.
project-identifier обязательный строка Должен содержать идентификатор проекта.
project-key обязательный строка API-ключ проекта.


If the method is successful it returns an XML structure, as it's shown below:
<?xml version="1.0" encoding="ISO-8859-1"?>
        <source_string>Project name</source_string>
        <context>Headline 3 XPath: /html/body/div/div/h3</context>
        <comment>Source string mistake</comment>
        <user>John Doe</user>
        <source_string>Current Password</source_string>
        <comment>wrong translation</comment>
        <user>John Doe</user>
        <source_string>Быстрый старт</source_string>
        <comment>Need more context</comment>
        <user>John Doe</user>
Unsuccessful response example:
<?xml version="1.0" encoding="ISO-8859-1"?>
    <message>The requested project does not exist or the API key is not valid.</message>


  curl \
    -F "type=general_question" \
    -F "status=unresolved" \
    -F "date_from=2017-01-01" \{project-identifier}/issues?key={project-key}
$post_params = array();
$request_url = '{project-identifier}/issues?key={project-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);

echo $result;