Subscription: subscribe

Subscription: subscribe

订阅内容。

Request

HTTP request

POST https://www.featapi.com/api/subscription/user-subscription/

BODY

KeyTypeRequired?DescriptionNotes
followed_user_uiduidNo被订阅者的uid订阅类型为用户时必填
followed_category_idintegerNo分类id订阅类型为分类时必填
apply_scenestringNo应用场景如果订阅类型不是应用场景时无效
subscription_typeenumYes订阅类型Subscription.Type
entity_typeenumYes内容类型Subscription.EntityType

Response

201

订阅成功

{
            "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
}

400

订阅失败。可能是输入参数错误或者已经存在订阅关系等情况。

发表评论

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

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

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

Captcha Code