You are here

public function FileApi::getStatus in TMGMT Translator Smartling 8.3

Same name and namespace in other branches
  1. 8.4 vendor/smartling/api-sdk-php/src/File/FileApi.php \Smartling\File\FileApi::getStatus()
  2. 8.2 api-sdk-php/src/File/FileApi.php \Smartling\File\FileApi::getStatus()
  3. 8.2 vendor/smartling/api-sdk-php/src/File/FileApi.php \Smartling\File\FileApi::getStatus()

Retrieves status about file translation progress.

Parameters

string $fileUri: Value that uniquely identifies the file.

string $locale: A locale identifier as specified in project setup.

ParameterInterface $params: Additional parameters that might be added later

Return value

array Data about request file. Data about request file.

Throws

SmartlingApiException

See also

http://docs.smartling.com/pages/API/FileAPI/Status/

File

vendor/smartling/api-sdk-php/src/File/FileApi.php, line 171

Class

FileApi
Class FileApi

Namespace

Smartling\File

Code

public function getStatus($fileUri, $locale, ParameterInterface $params = null) {
  $params = is_null($params) ? [] : $params
    ->exportToArray();
  $params['fileUri'] = $fileUri;
  $requestData = $this
    ->getDefaultRequestData('query', $params);
  return $this
    ->sendRequest("locales/{$locale}/file/status", $requestData, self::HTTP_METHOD_GET);
}