You are here

public function TranslationRequestsApi::searchTranslationRequests in TMGMT Translator Smartling 8.3

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

Parameters

string $bucketName:

SearchTranslationRequestParams $searchParams:

Return value

array

Throws

SmartlingApiException

File

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

Class

TranslationRequestsApi
Class TranslationRequestsApi @package Smartling\TranslationRequests

Namespace

Smartling\TranslationRequests

Code

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