public function createBatch(CreateBatchParameters $parameters)
    {
        $requestData = $this->getDefaultRequestData('json', $parameters->exportToArray());

        return $this->sendRequest('batches', $requestData, self::HTTP_METHOD_POST);
    }
public function createBatch(CreateBatchParameters $parameters)
    {
        $requestData = $this->getDefaultRequestData('json', $parameters->exportToArray());

        return $this->sendRequest('batches', $requestData, self::HTTP_METHOD_POST);
    }
public function createBatch ( CreateBatchParameters $ parameters ) { $ requestData = $ this -> getDefaultRequestData ( 'json' , $ parameters -> exportToArray ( ) ) ; return $ this -> sendRequest ( 'batches' , $ requestData , self :: HTTP_METHOD_POST ) ; }
Creates a batch.

@param CreateBatchParameters $parameters

@return array

@throws SmartlingApiException
Creates a batch .