public function FileApi::getAuthorizedLocales in TMGMT Translator Smartling 8.3
Same name and namespace in other branches
- 8.4 vendor/smartling/api-sdk-php/src/File/FileApi.php \Smartling\File\FileApi::getAuthorizedLocales()
- 8.2 api-sdk-php/src/File/FileApi.php \Smartling\File\FileApi::getAuthorizedLocales()
- 8.2 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
File
- vendor/
smartling/ api-sdk-php/ src/ File/ FileApi.php, line 365
Class
- FileApi
- Class FileApi
Namespace
Smartling\FileCode
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);
}