public function uploadResource($resourceId, UploadResourceParameters $params)
    {
        $endpoint = vsprintf('resources/%s', $resourceId);
        $requestData = $this->getDefaultRequestData('multipart', $params->exportToArray());

        return $this->sendRequest($endpoint, $requestData, self::HTTP_METHOD_PUT);
    }
public function uploadResource($resourceId, UploadResourceParameters $params)
    {
        $endpoint = vsprintf('resources/%s', $resourceId);
        $requestData = $this->getDefaultRequestData('multipart', $params->exportToArray());

        return $this->sendRequest($endpoint, $requestData, self::HTTP_METHOD_PUT);
    }
public function uploadResource ( $ resourceId , UploadResourceParameters $ params ) { $ endpoint = vsprintf ( 'resources/%s' , $ resourceId ) ; $ requestData = $ this -> getDefaultRequestData ( 'multipart' , $ params -> exportToArray ( ) ) ; return $ this -> sendRequest ( $ endpoint , $ requestData , self :: HTTP_METHOD_PUT ) ; }
Upload resource.

@param $resourceId
@param \Smartling\Context\Params\UploadResourceParameters $params
@return bool
@throws SmartlingApiException
Upload resource .