Subscription API概述

Subscription API概述

用户可订阅某一类资源。

资源

UserSubscription

{
            "id": 47,
            "user": 7815769374283,
            "followed_user": 3120595892220,
            "followed_category": null,
            "apply_scene": null,
            "subscription_type": "follow_user",
            "created_at": "2022-01-10T08:52:58.425956Z",
            "updated_at": "2022-01-10T08:52:58.425387Z",
            "entity_type": 100
}
Property nameValueDescriptionNotes
idinteger订阅的ID
useruid订阅者的uid
followed_useruid被订阅者的uid如果订阅类型不是用户时无效
followed_categoryinteger分类id如果订阅类型不是分类时无效
apply_scenestring应用场景如果订阅类型不是应用场景时无效
subscription_typeenum订阅类型Subscription.Type
created_atISO8601 string创建时间
updated_atISO8601 string更新时间
entity_typeenum内容类型Subscription.EntityType

Enums

Subscription.Type

enum SubscriptionType {
  FOLLOW_USER = "follow_user",
  FOLLOW_CATEGORY = "follow_category",
  APPLY_SCENE = "apply_scene"
}

Subscription.EntityType

enum EntityType {
  FILEX = 0,
  DIMZOU = 100
}

Methods

subscribe

unsubscribe

unsubscribe (deprecated)

subscription-list

follower-list

fetch

发表评论

您的电子邮箱地址不会被公开。

您可以使用以下 HTML标签和属性:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Captcha Code