Обновление подписок пользователей на обновления объекта.

URL ресурса

https://Your project.userecho.com/api/v2/users/[user_id]/subscriptions.json

Параметры

Параметр Значение Обязательный? По умолчанию Опции Описание
object_type String yes "forum", "topic", "tag_or_category" A type of object you change subscription to.
object_id Integer yes An object ID you change subscription to.
subscription_status Integer yes -1, 0, 1 Update subscription to status provided.
1 - subcsribed,
0 - unsubscribed (block notifications),
-1 - remove information about subscription.

Пример запроса #1

{
  "object_type":"forum",
  "object_id":1,
  "subscription_status":1
}

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

{
    "status": "success",
    "data": {
        "object_type": "forum",
        "user_id": 1,
        "object_id": 1,
        "subscription_status": 1
    }
}

© 2020 UserEcho, LLC. All rights reserved.