POST api/comment/{sessionID}
Отправка комментария (работает только для покупателей)
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| sessionID |
ID сессии (получается при логине) |
string |
Required |
Body Parameters
Comment| Name | Description | Type | Additional information |
|---|---|---|---|
| CorrID |
ID корреспондента |
integer |
None. |
| Text |
Текст сообщения |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"CorrID": 1,
"Text": "sample string 2"
}
application/x-www-form-urlencoded
Sample:
application/xml, text/xml
Sample:
<Comment> <corrID>1</corrID> <text>sample string 2</text> </Comment>
Response Information
Resource Description
CommentResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| retval |
Код возврата (0 - ок, иначе - ошибка) |
integer |
None. |
| desc |
Текстовая расшифровка кода возврата (описание ошибки) |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"retval": 1,
"desc": "sample string 2"
}
application/xml, text/xml
Sample:
<comment.response> <retval>1</retval> <desc>sample string 2</desc> </comment.response>