You are here

public function TranslationRequestsApi::getTranslationRequest in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.3 vendor/smartling/api-sdk-php/src/TranslationRequests/TranslationRequestsApi.php \Smartling\TranslationRequests\TranslationRequestsApi::getTranslationRequest()

Parameters

string $bucketName:

string $translationRequestUid:

Return value

array

Throws

SmartlingApiException

File

vendor/smartling/api-sdk-php/src/TranslationRequests/TranslationRequestsApi.php, line 58

Class

TranslationRequestsApi
Class TranslationRequestsApi @package Smartling\TranslationRequests

Namespace

Smartling\TranslationRequests

Code

public function getTranslationRequest($bucketName, $translationRequestUid) {
  $requestData = $this
    ->getDefaultRequestData('query', []);
  $requestUri = vsprintf('buckets/%s/translation-requests/%s', [
    $bucketName,
    $translationRequestUid,
  ]);
  return $this
    ->sendRequest($requestUri, $requestData, static::HTTP_METHOD_GET);
}