public function JobsApi::addLocaleToJobSync in TMGMT Translator Smartling 8.3
Same name and namespace in other branches
- 8.4 vendor/smartling/api-sdk-php/src/Jobs/JobsApi.php \Smartling\Jobs\JobsApi::addLocaleToJobSync()
Adds locale to a job synchronously.
Parameters
string $jobId:
string $localeId:
AddLocaleToJobParameters $parameters:
Throws
File
- vendor/
smartling/ api-sdk-php/ src/ Jobs/ JobsApi.php, line 213
Class
- JobsApi
- Class JobsApi
Namespace
Smartling\JobsCode
public function addLocaleToJobSync($jobId, $localeId, AddLocaleToJobParameters $parameters) {
$endpoint = vsprintf('jobs/%s/locales/%s', [
$jobId,
$localeId,
]);
$requestData = $this
->getDefaultRequestData('json', $parameters
->exportToArray());
$this
->wait($this
->sendRequest($endpoint, $requestData, self::HTTP_METHOD_POST));
}