You are here

public function FileApi::getAuthorizedLocales in TMGMT Translator Smartling 8.2

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

Get list of authorized locales for given file.

Parameters

string $fileUri:

ParameterInterface $params:

Return value

array

Throws

SmartlingApiException

File

api-sdk-php/src/File/FileApi.php, line 407

Class

FileApi
Class FileApi

Namespace

Smartling\File

Code

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