public function addFileToJobSync($jobId, AddFileToJobParameters $parameters)
    {
        $endpoint = vsprintf('jobs/%s/file/add', [$jobId]);
        $requestData = $this->getDefaultRequestData('json', $parameters->exportToArray());
        $this->wait($this->sendRequest($endpoint, $requestData, self::HTTP_METHOD_POST));
    }
public function addFileToJobSync($jobId, AddFileToJobParameters $parameters)
    {
        $endpoint = vsprintf('jobs/%s/file/add', [$jobId]);
        $requestData = $this->getDefaultRequestData('json', $parameters->exportToArray());
        $this->wait($this->sendRequest($endpoint, $requestData, self::HTTP_METHOD_POST));
    }
public function addFileToJobSync ( $ jobId , AddFileToJobParameters $ parameters ) { $ endpoint = vsprintf ( 'jobs/%s/file/add' , [ $ jobId ] ) ; $ requestData = $ this -> getDefaultRequestData ( 'json' , $ parameters -> exportToArray ( ) ) ; $ this -> wait ( $ this -> sendRequest ( $ endpoint , $ requestData , self :: HTTP_METHOD_POST ) ) ; }
Adds file to a job synchronously.

@param $jobId
@param AddFileToJobParameters $parameters
@throws SmartlingApiException
Adds file to a job synchronously .