Skip to content

获取单个用户信息 ​

历史版本 ​

请求路径 ​

  • 请求方式:POST
  • 请求头:Content-Type:application/json
  • 接口地址:/Third/User/getWechatUserInfo

请求参数 ​

参数必选类型描述
wechat_user_space_id是number用户ID

请求示例 ​

json
{
  "wechat_user_space_id": 1699526333
}

响应参数 ​

参数必选类型描述
code是integer状态码:200-成功,400-失败
msg是string提示信息
data是object消息内容

data 参数结构

参数必选类型描述
wechat_user_space_id是integer用户ID
shut_up是integer禁言:0-无,1-全部
forbid是integer拉黑:0-无,1-全部
shield是integer屏蔽:0-无,1-全部
first_visit_time是integer首次访问时间
last_visit_time是integer最近访问时间
openid是stringopenid
unionid是stringunionid
name是string用户昵称
photo是string用户头像
third_uuid是string第三方UUID
third_wechat_info是object第三方微信信息

third_wechat_info 参数结构

参数必选类型描述
authorizer_appid是string第三方公众号appid
openid是string第三方openid
unionid是string第三方unionid

响应示例 ​

json
{
    "code": 200,
    "msg": "",
    "data": {
        "wechat_user_space_id": 2040277,
        "shut_up": 0,
        "forbid": 0,
        "shield": 0,
        "first_visit_time": 1652066284,
        "last_visit_time": 1712826409,
        "openid": "oKFTf0aXfWULYpQtnkqIwHPBLv18",
        "unionid": "o8-ysv5Ae8C86CwYtfH8Rnkxi9uw",
        "name": "Demonは",
        "photo": "https://nyfs-alpha.oss-cn-hangzhou.aliyuncs.com/Uploads/WxHeadImg2023/5FD3/168F3CDDB8CAACC6DADF01958B865FD3.jpg",
        "third_uuid": "user_12345",
        "third_wechat_info": {
            "authorizer_appid": "wx447d9db7c8735c11",
            "openid": "oDTJJtxNk_qwSZVGMZvpdZsW2ITY",
            "unionid": "o3-0h6dCmGhBpj6oSYNyN6gzgROo"
        }
    }
}