Skip to content

获取单个用户信息

历史版本

请求路径

  • 请求方式:POST
  • 请求头:Content-Type:application/json
  • 接口地址:https://gateway.nuoyunapi.com/Api/User/getWechatUserInfo/2.0.0
  • 频率限制:10秒1000次

请求参数

参数必选类型描述
wechat_user_space_idinteger用户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用户头像
last_mobilestring最近采集用户电话号码
third_uuidstring第三方UUID
third_wechat_infoobject第三方微信信息

third_wechat_info 参数结构

参数必选类型描述
authorizer_appidstring第三方公众号appid
openidstring第三方openid
unionidstring第三方unionid

响应示例

json
{
  "code": 200,
  "data": {
    "wechat_user_space_id": 8756,
    "shut_up": 0,
    "forbid": 0,
    "shield": 0,
    "first_visit_time": 0,
    "last_visit_time": 1749983580,
    "openid": "odpIu67CFfUNK0nDY1keB6J_RppY",
    "unionid": "o8-ysv5ZOoPyY5hBrHRi6jjgsHbo",
    "name": "CLANNAD",
    "photo": "https://nyfs-alpha.oss-cn-hangzhou.aliyuncs.com/Uploads/WxHeadImg2023/3CAD/57A998C176490971D21A71DE1CE83CAD.jpg",
    "last_mobile":"18312231313",
    "third_uuid": "",
    "third_wechat_info": {
      "authorizer_appid": "",
      "openid": "",
      "unionid": ""
    }
  },
  "msg": "Success"
}