用户

返回当前 Access Token 对应的用户信息

get/v0/me

Request

  • The document declares no server URL.
  • Auth: HTTP bearer

Response

Successful Response

idinteger required
usernamestring required

唯一用户名,初始与 UID 相同,可修改一次

nicknamestring required
user_group1 | 2 | 3 | 4 | 5 | 8 | 9 | 10 | 11 required

用户组 - 1 = 管理员 - 2 = Bangumi 管理猿 - 3 = 天窗管理猿 - 4 = 禁言用户 - 5 = 禁止访问用户 - 8 = 人物管理猿 - 9 = 维基条目管理猿 - 10 = 用户 - 11 = 维基人

signstring required

个人签名

emailstring email required

用户绑定的邮箱地址

reg_timestring date-time required

用户注册时间。比如 2017-12-03T08:51:16+08:00

time_offsetinteger

用户设置的时区偏移,以小时为单位。比如 GMT+8(shanghai/beijing)为 8

Example response

{
  "avatar": {
    "large": "https://lain.bgm.tv/pic/user/l/000/00/00/1.jpg?r=1391790456",
    "medium": "https://lain.bgm.tv/pic/user/m/000/00/00/1.jpg?r=1391790456",
    "small": "https://lain.bgm.tv/pic/user/s/000/00/00/1.jpg?r=1391790456"
  },
  "sign": "Awesome!",
  "username": "sai",
  "nickname": "Sai🖖",
  "id": 1,
  "user_group": 1
}

Changes

    • ○

      added the non-success response with the status

    • ○

      removed the non-success response with the status

    • ○

      added subschema #2 subschema #3 to the response body allOf list for the response status

    • ○

      removed subschema #2 from the response body allOf list for the response status