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