You are here

public function FileApi::getLastModified in TMGMT Translator Smartling 8.3

Same name and namespace in other branches
  1. 8.4 vendor/smartling/api-sdk-php/src/File/FileApi.php \Smartling\File\FileApi::getLastModified()
  2. 8.2 api-sdk-php/src/File/FileApi.php \Smartling\File\FileApi::getLastModified()
  3. 8.2 vendor/smartling/api-sdk-php/src/File/FileApi.php \Smartling\File\FileApi::getLastModified()

retrieve all statuses about file translations progress

Parameters

string $fileUri:

ParameterInterface $params:

Return value

array

Throws

SmartlingApiException

1 call to FileApi::getLastModified()
FileApi::lastModified in vendor/smartling/api-sdk-php/src/File/FileApi.php
Requests last-modified value for all locales for file

File

vendor/smartling/api-sdk-php/src/File/FileApi.php, line 404

Class

FileApi
Class FileApi

Namespace

Smartling\File

Code

public function getLastModified($fileUri, ParameterInterface $params = null) {
  $params = is_null($params) ? [] : $params
    ->exportToArray();
  $params['fileUri'] = $fileUri;
  $requestData = $this
    ->getDefaultRequestData('query', $params);
  return $this
    ->sendRequest('file/last-modified', $requestData, self::HTTP_METHOD_GET);
}