订阅内容。
Request
HTTP request
POST https://www.featapi.com/api/subscription/user-subscription/
BODY
Key | Type | Required? | Description | Notes |
followed_user_uid | uid | No | 被订阅者的uid | 订阅类型为用户时必填 |
followed_category_id | integer | No | 分类id | 订阅类型为分类时必填 |
apply_scene | string | No | 应用场景 | 如果订阅类型不是应用场景时无效 |
subscription_type | enum | Yes | 订阅类型 | Subscription.Type |
entity_type | enum | Yes | 内容类型 | 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
订阅失败。可能是输入参数错误或者已经存在订阅关系等情况。