论坛 RESTful Api 接口
自身信息
接口地址: https://3yya.com/u/{rel_key}/bbs/app/self/user
请求方式: get
请求消息头:
协议头 | 必填 | 描述 |
---|---|---|
Authorization | 是 | 登录时返回的 token。 |
返回参数:
参数名 | 类型 | 描述 |
---|---|---|
user_id | int | 用户的 id。 |
username | string | 用户名。 |
bio | string | 个性签名。 |
registration_time | int | 账号注册时间戳。 |
post_amount | int | 已发布的帖子数。 |
thumb_amount | int | 发布帖子共获得的点赞数。 |
JSON 返回示例:
{
"user_id": 7,
"username": "西瓜lalavilaxxww",
"bio":"爱天下~",
"registration_time": 1634739241,
"posts_amount": 3,
"thumb_amount": 6
}