You are here

public function BatchApi::getBatchStatus in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.3 vendor/smartling/api-sdk-php/src/Batch/BatchApi.php \Smartling\Batch\BatchApi::getBatchStatus()

Returns batch status.

Parameters

$batchUid:

Return value

array

Throws

SmartlingApiException

File

vendor/smartling/api-sdk-php/src/Batch/BatchApi.php, line 137

Class

BatchApi
Class JobsFacadeApi

Namespace

Smartling\Batch

Code

public function getBatchStatus($batchUid) {
  $endpoint = vsprintf('batches/%s', [
    $batchUid,
  ]);
  $requestData = $this
    ->getDefaultRequestData('query', []);
  return $this
    ->sendRequest($endpoint, $requestData, self::HTTP_METHOD_GET);
}