Clone wiki

point-tools / API

Методы API

Получение лога подписчиков пользователя

Описание

GET /api/v1/user/id/%user_id%/events/subscribers

Параметры:

  • %user_id% - id пользователя на point.im

Возвращаемое значение:

До 20 последних событий в подписчиках указанного пользователя.

Примеры

Запрос: GET /api/v1/user/id/230/events/subscribers

Ответ:

[{"user":"dlebedev","action":"unsubscribe","datetime":"15.07.2015 00:10:20"},{"user":"Kxepal","action":"subscribe","datetime":"18.06.2015 16:20:06"},{"user":"dtulepov","action":"subscribe","datetime":"14.06.2015 09:40:04"},{"user":"ViolentOr","action":"subscribe","datetime":"02.07.2015 15:20:20"},{"user":"rpu6-pacTeT","action":"subscribe","datetime":"17.07.2015 10:40:20"},{"user":"rbdc9","action":"subscribe","datetime":"22.08.2015 19:50:19"},{"user":"0xd43df00d","action":"subscribe","datetime":"01.10.2015 22:16:00"}]

Запрос: GET /api/v1/user/id/99999/events/subscribers

Ответ:

{"error":{"code":404,"message":"Not Found"}}

Updated