You are here

protected function ContextApi::getDefaultRequestData 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::getDefaultRequestData()
  2. 8.2 vendor/smartling/api-sdk-php/src/Context/ContextApi.php \Smartling\Context\ContextApi::getDefaultRequestData()
  3. 8.3 vendor/smartling/api-sdk-php/src/Context/ContextApi.php \Smartling\Context\ContextApi::getDefaultRequestData()

Overrides BaseApiAbstract::getDefaultRequestData

7 calls to ContextApi::getDefaultRequestData()
ContextApi::getMatchStatus in vendor/smartling/api-sdk-php/src/Context/ContextApi.php
Get context match status.
ContextApi::getMissingResources in vendor/smartling/api-sdk-php/src/Context/ContextApi.php
Get missing resources.
ContextApi::matchContext in vendor/smartling/api-sdk-php/src/Context/ContextApi.php
Match context async.
ContextApi::renderContext in vendor/smartling/api-sdk-php/src/Context/ContextApi.php
Render context.
ContextApi::uploadAndMatchContext in vendor/smartling/api-sdk-php/src/Context/ContextApi.php
Upload and match async.

... See full list

File

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

Class

ContextApi
Class ContextApi

Namespace

Smartling\Context

Code

protected function getDefaultRequestData($parametersType, $parameters, $auth = true, $httpErrors = false) {
  $requestData = parent::getDefaultRequestData($parametersType, $parameters, $auth = true, $httpErrors = false);
  $requestData['headers']['X-SL-Context-Source'] = $this
    ->getXSLContextSourceHeader();
  return $requestData;
}