You are here

public function TranslationRequestsApiV3::searchTranslationRequests in TMGMT Translator Smartling 8.4

Parameters

string $bucketName:

SearchTranslationRequestParams $searchParams:

Return value

array

Throws

SmartlingApiException

Overrides TranslationRequestsApi::searchTranslationRequests

File

src/Smartling/Submission/TranslationRequestsApiV3.php, line 27

Class

TranslationRequestsApiV3
Class TranslationRequestsApiV3 @package Smartling\TranslationRequests

Namespace

Drupal\tmgmt_smartling\Smartling\Submission

Code

public function searchTranslationRequests($bucketName, SearchTranslationRequestParams $searchParams) {
  $requestData = $this
    ->getDefaultRequestData('json', $searchParams
    ->exportToArray());
  $requestUri = vsprintf('buckets/%s/search/translation-requests', [
    $bucketName,
  ]);
  return $this
    ->sendRequest($requestUri, $requestData, static::HTTP_METHOD_POST);
}