You are here

public function ContextApi::uploadAndMatchContext in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.2 api-sdk-php/src/Context/ContextApi.php \Smartling\Context\ContextApi::uploadAndMatchContext()
  2. 8.2 vendor/smartling/api-sdk-php/src/Context/ContextApi.php \Smartling\Context\ContextApi::uploadAndMatchContext()
  3. 8.3 vendor/smartling/api-sdk-php/src/Context/ContextApi.php \Smartling\Context\ContextApi::uploadAndMatchContext()

Upload and match async.

Parameters

\Smartling\Context\Params\UploadContextParameters $params:

Return value

array

Throws

\Smartling\Exceptions\SmartlingApiException

1 call to ContextApi::uploadAndMatchContext()
ContextApi::uploadAndMatchContextSync in vendor/smartling/api-sdk-php/src/Context/ContextApi.php
Upload and match sync.

File

vendor/smartling/api-sdk-php/src/Context/ContextApi.php, line 169

Class

ContextApi
Class ContextApi

Namespace

Smartling\Context

Code

public function uploadAndMatchContext(UploadContextParameters $params) {
  $requestData = $this
    ->getDefaultRequestData('multipart', $params
    ->exportToArray());
  return $this
    ->sendRequest('contexts/upload-and-match-async', $requestData, self::HTTP_METHOD_POST);
}