获取用户信息

简要描述
  • 获取用户信息接口
请求URL
  • http://zhibo.cookiegeeks.com/user/get-info
请求方式
  • POST
参数
参数名 必选 类型 说明
token string token
user_id string 要查看信息的用户id,不传则查看自己的信息
返回示例
  {
    "code": 200,
    "msg": "操作成功",
    "data": {
        "id": "11",
        "udid": "456789",
        "code_name": "2",
        "gender": "0",
        "like_gender": "1",
        "age": "18",
        "nickname": "草木灰",
        "invite_code": null,
        "avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic21.nipic.com%2F20120606%2F5137861_093119370162_2.jpg&refer=http%3A%2F%2Fpic21.nipic.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1636269563&t=f2ae4c8003808a6d66f1447b844c1204",
        "is_vip": "0",
        "vip_expire_time": null,
        "coins": "99985",
        "status": "1",
        "is_authentication": "2",
        "online_status": "1",
        "agora_user_id": "10",
        "create_time": "1632999124",
        "update_time": "1634202114",
        "country": null,
        "city": null,
        "introduction": null,
        "agora": {
            "id": "10",
            "user_id": "11",
            "uuid": "620e60b0-2ccd-11ec-bfc8-115e9e85c160",
            "type": "user",
            "created": "1634202116673",
            "modified": "1634202116673",
            "username": "traynor_11",
            "activated": "1",
            "nickname": "草木灰",
            "password": "123456",
            "create_time": "1634202117"
        }
    }
}
返回参数说明
参数名 类型 说明
备注
  • 更多返回错误代码请看首页的错误代码描述