Skip to content

获取单个用户信息

历史版本

请求路径

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

请求参数

参数必选类型描述
wechat_user_space_idnumber用户ID

请求示例

json
{
  "wechat_user_space_id": 1699526333
}

响应参数

参数必选类型描述
codeinteger状态码:200-成功,400-失败
msgstring提示信息
dataobject消息内容

data 参数结构

参数必选类型描述
wechat_user_space_idinteger用户ID
shut_upinteger禁言:0-无,1-全部
forbidinteger拉黑:0-无,1-全部
shieldinteger屏蔽:0-无,1-全部
first_visit_timeinteger首次访问时间
last_visit_timeinteger最近访问时间
openidstringopenid
unionidstringunionid
namestring用户昵称
photostring用户头像
third_uuidstring第三方UUID
third_wechat_infoobject第三方微信信息

third_wechat_info 参数结构

参数必选类型描述
authorizer_appidstring第三方公众号appid
openidstring第三方openid
unionidstring第三方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"
        }
    }
}