GET api/getnotifications/{sessionID}/{notifID}
Получает полные нотификации от Digiseller
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| sessionID |
ID сессии (получается при логине) |
string |
Required |
| notifID |
ID нотификации (0 - последние 10) |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
NotificationsResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| retval |
Код возврата (0 - ок, иначе - ошибка) |
integer |
None. |
| desc |
Текстовая расшифровка кода возврата (описание ошибки) |
string |
None. |
| notifications |
Список последних сообщений из переписок пользователя |
Collection of Notification |
None. |
Response Formats
application/json, text/json
Sample:
{
"retval": 1,
"desc": "sample string 2",
"notifications": [
{
"NotifID": 1,
"Subj": "sample string 2",
"Text": "sample string 3",
"DateEvent": "sample string 4"
},
{
"NotifID": 1,
"Subj": "sample string 2",
"Text": "sample string 3",
"DateEvent": "sample string 4"
}
]
}
application/xml, text/xml
Sample:
<notifications.response>
<retval>1</retval>
<desc>sample string 2</desc>
<notification>
<notifID>1</notifID>
<subj>sample string 2</subj>
<text>sample string 3</text>
<date_event>sample string 4</date_event>
</notification>
<notification>
<notifID>1</notifID>
<subj>sample string 2</subj>
<text>sample string 3</text>
<date_event>sample string 4</date_event>
</notification>
</notifications.response>