用户

Get User by name

Changed on

获取用户信息

get/v0/users/{username}

Request

  • The document declares no server URL.
  • Auth: none declared

Path parameters

usernamestring required

设置了用户名之后无法使用 UID。

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

个人签名

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

    • ●

      removed the optional property from the response with the status

    • ●

      removed the optional property from the response with the status

    • ○

      added the optional property to the response with the status

    • ○

      added the optional property to the response with the status

    • ▲

      removed the required property from the response with the status