You are here

public function AuditLogApi::createProjectLevelLogRecord 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::createProjectLevelLogRecord()

File

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

Class

AuditLogApi

Namespace

Smartling\AuditLog

Code

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