You are here

public function ContextApi::renderContext in TMGMT Translator Smartling 8.2

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

Render context.

Parameters

$contextUid:

Return value

array

Throws

\Smartling\Exceptions\SmartlingApiException

File

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

Class

ContextApi
Class ContextApi

Namespace

Smartling\Context

Code

public function renderContext($contextUid) {
  $endpoint = vsprintf('contexts/%s/render', $contextUid);
  $requestData = $this
    ->getDefaultRequestData('form_params', []);
  return $this
    ->sendRequest($endpoint, $requestData, self::HTTP_METHOD_POST);
}