stream.comment rest api

Позволяет комментировать события ленты Что Нового.

Параметры

Имя Тип Описание
tread_idstringthread_id события
textstringтекст комментария

Результат

Возвращает флаг comment=1 в случае успеха, ошибку в противном случае.

Формат ответа для json-выдачи (результат для xml аналогичен):

{
  "comment": "1",
}

Коды ошибок

КодОписание
1Unknown error: Please resubmit the request.
2Unknown method called.
3Service Unavailable. Please try again later.
4Method is deprecated.
100One of the parameters specified is missing or invalid.
102User authorization failed: the session key or uid is incorrect.
103Application lookup failed: the application id is not correct.
104Incorrect signature.
105Application is not installed for this user.
200Permission error: the application does not have permission to perform this action.

Пример вызова

http://www.appsmail.ru/platform/api?method=stream.comment&
app_id=123456&session_key=551fd0e4779e35859dfccd03397dc8a0&
sig=95a393ed7639184a52f7a17b6771a92&
thread_id=0089ee0ee3130000b867000401000000&text=hello

Пример ответа в формате JSON

{
  "comment": "1",
}

Пример ответа в формате XML

 
  1

См. также

Использование REST API

Функции REST API