public function BatchApi::createBatch in TMGMT Translator Smartling 8.4
Same name and namespace in other branches
- 8.3 vendor/smartling/api-sdk-php/src/Batch/BatchApi.php \Smartling\Batch\BatchApi::createBatch()
Creates a batch.
Parameters
CreateBatchParameters $parameters:
Return value
array
Throws
File
- vendor/
smartling/ api-sdk-php/ src/ Batch/ BatchApi.php, line 70
Class
- BatchApi
- Class JobsFacadeApi
Namespace
Smartling\BatchCode
public function createBatch(CreateBatchParameters $parameters) {
$requestData = $this
->getDefaultRequestData('json', $parameters
->exportToArray());
return $this
->sendRequest('batches', $requestData, self::HTTP_METHOD_POST);
}