Progetti dell'account

Get projects list.

Richiesta

POST https://api.crowdin.com/api/account/get-projects?account-key={account-key}&login={username}

Parametri

Nome Value Descrizione
login required nella stringa Your Crowdin Account login name.
json optional nella stringa May not contain value. Defines that response should be in JSON format.
jsonp optional nella stringa Callback function name. Defines that response should be in JSONP format.
Variables
chiave-profilo nella stringa Account API key (profile settings -> "API & SSO" tab).

Response

If successful, this method returns a XML structure, as it is shown below.
<?xml version="1.0" encoding="UTF-8"?>
<success>
  <project>
    <name>My Project</name>
    <identifier>my-project</identifier>
    <key>d8e8fca2dc0f896fd7cb4cb0031ba249</key>
  </project>
</success>
Unsuccessful response sample:
<?xml version="1.0" encoding="UTF-8"?>
<error>
  <code>12</code>
  <message>Account key is invalid</message>
</error>

Examples

curl -F "login={crowdin-login-name}" https://api.crowdin.com/api/account/get-projects?account-key={account-key}
<?php
$request_url = 'https://api.crowdin.com/api/account/get-projects?account-key={account-key}';

$post_params['login'] = '{crowdin-login-name}';


$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;

Questo articolo è stato utile?