• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/classes/general/im_rest.php
  • Класс: CIMRestService
  • Вызов: CIMRestService::chatSignGet
static function chatSignGet($arParams, $n, CRestServer $server)
{
	$arParams = array_change_key_case($arParams, CASE_UPPER);
	return [
		'list' => [
			[
				'id' => 1,
				'messageId' => 2345,
				'chatId' => 92,
				'authorId' => 1,
				'dateCreate' => '2022-08-22T12:37:10+02:00',
				'sign' => [
					'id' => 1,
					'title' => 'Important document #1',
					'status' => 'signed',
					'from' => [
						'company' => 'Bitrix',
						'userId' => 1
					],
					'to' => [
						'company' => null,
						'userId' => 1
					],
					'links' => [
						'detail' => 'https://...'
					]
				],
			],
			[
				'id' => 2,
				'messageId' => 2346,
				'chatId' => 92,
				'authorId' => 1,
				'dateCreate' => '2022-08-24T12:37:10+02:00',
				'sign' => [
					'id' => 1,
					'title' => 'Important document #2',
					'status' => 'signed',
					'from' => [
						'company' => 'Bitrix',
						'userId' => 1
					],
					'to' => [
						'company' => null,
						'userId' => 1
					],
					'links' => [
						'detail' => 'https://...'
					]
				],
			]
		],
		'users' => [BitrixImUser::getInstance(1)->getArray(['JSON' => 'Y'])]
	];
}