GET api/chatlist/{sessionID}/{corrType}

Получает часть последних сообщений из переписок (чатов) данного пользователя (сообщения урезаны до 200-х символов)

Request Information

URI Parameters

NameDescriptionTypeAdditional information
sessionID

ID сессии (получается при логине)

string

Required

corrType

Тип корреспондента ("support", "admin", "user", "buyer", "visitor", "anonym")

string

Required

Body Parameters

None.

Response Information

Resource Description

ChatListResponse
NameDescriptionTypeAdditional information
retval

Код возврата (0 - ок, иначе - ошибка)

integer

None.

desc

Текстовая расшифровка кода возврата (описание ошибки)

string

None.

chats

Список последних сообщений из переписок пользователя

Collection of Chat

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Error getting value from 'DateWriteUtc' on 'DigiAPI.Models.Chat'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Error getting value from 'DateWriteUtc' on 'DigiAPI.Models.Chat'.

application/xml

Sample:

An exception has occurred while using the formatter 'CustomNamespaceXmlFormatter' to generate sample for media type 'application/xml'. Exception message: There was an error generating the XML document.

text/xml

Sample:

An exception has occurred while using the formatter 'CustomNamespaceXmlFormatter' to generate sample for media type 'text/xml'. Exception message: There was an error generating the XML document.