You are here

public function AuditLogApi::createAccountLevelLogRecord in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.3 vendor/smartling/api-sdk-php/src/AuditLog/AuditLogApi.php \Smartling\AuditLog\AuditLogApi::createAccountLevelLogRecord()

File

vendor/smartling/api-sdk-php/src/AuditLog/AuditLogApi.php, line 52

Class

AuditLogApi

Namespace

Smartling\AuditLog

Code

public function createAccountLevelLogRecord($accountUid, CreateRecordParameters $createRecordRecommendedParameters) {
  $requestData = $this
    ->getDefaultRequestData('json', $createRecordRecommendedParameters
    ->exportToArray());
  $endpoint = vsprintf(self::ACCOUNT_LEVEL_URL, [
    $accountUid,
  ]);
  return $this
    ->sendRequest($endpoint, $requestData, static::HTTP_METHOD_POST);
}