@@ 11-29 (lines=19) @@ | ||
8 | * @author Nicolas Dupont <[email protected]> |
|
9 | * @see https://crowdin.com/page/api/info |
|
10 | */ |
|
11 | class Info extends AbstractApi |
|
12 | { |
|
13 | /** |
|
14 | * {@inheritdoc} |
|
15 | */ |
|
16 | public function execute() |
|
17 | { |
|
18 | $this->addUrlParameter('key', $this->client->getProjectApiKey()); |
|
19 | ||
20 | $path = sprintf( |
|
21 | "project/%s/info?%s", |
|
22 | $this->client->getProjectIdentifier(), |
|
23 | $this->getUrlQueryString() |
|
24 | ); |
|
25 | $response = $this->client->getHttpClient()->get($path); |
|
26 | ||
27 | return $response->getBody(); |
|
28 | } |
|
29 | } |
|
30 |
@@ 11-29 (lines=19) @@ | ||
8 | * @author Nicolas Dupont <[email protected]> |
|
9 | * @see https://crowdin.com/page/api/status |
|
10 | */ |
|
11 | class Status extends AbstractApi |
|
12 | { |
|
13 | /** |
|
14 | * {@inheritdoc} |
|
15 | */ |
|
16 | public function execute() |
|
17 | { |
|
18 | $this->addUrlParameter('key', $this->client->getProjectApiKey()); |
|
19 | ||
20 | $path = sprintf( |
|
21 | "project/%s/status?%s", |
|
22 | $this->client->getProjectIdentifier(), |
|
23 | $this->getUrlQueryString() |
|
24 | ); |
|
25 | $response = $this->client->getHttpClient()->get($path); |
|
26 | ||
27 | return $response->getBody(); |
|
28 | } |
|
29 | } |
|
30 |