You are here

public function FileApi::getAuthorizedLocales in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  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()
  3. 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

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

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);
}