You are here

public function ContextApi::uploadAndMatchContext in TMGMT Translator Smartling 8.2

Same name in this branch
  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()
Same name and namespace in other branches
  1. 8.4 vendor/smartling/api-sdk-php/src/Context/ContextApi.php \Smartling\Context\ContextApi::uploadAndMatchContext()
  2. 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

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

File

api-sdk-php/src/Context/ContextApi.php, line 159

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);
}