# 查询用户绑定列表

调试诊断

接口应在服务器端调用,不可在前端(小程序、网页、APP等)直接调用,具体可参考接口调用指南

接口英文名:weDataQueryBindList

查询用户绑定列表

# 1. 调用方式

# HTTPS 调用

POST https://api.weixin.qq.com/wedata/wedata_query_bind_list?access_token=ACCESS_TOKEN

# 云调用

  • 本接口不支持云调用

# 第三方调用

  • 本接口支持第三方平台代商家调用。

  • 该接口所属的权限集 id 为:18

  • 服务商获得其中之一权限集授权后,可通过使用 authorizer_access_token 代商家进行调用,具体可查看 第三方调用 说明文档。

# 2. 请求参数

# 查询参数 Query String parameters

参数名类型必填说明
access_tokenstring接口调用凭证,可使用 authorizer_access_token

# 请求体 Request Payload

# 3. 返回参数

# 返回体 Response Payload

参数名类型说明
errcodenumber错误码
errmsgstring错误信息
infoobjarray用户绑定信息

# Res.info(Array) Object Payload

用户绑定信息

参数名类型说明
uidstring用户在服务商系统的唯一标识,可以是手机号、邮箱、员工ID 等等。
create_timenumber创建时间(uinx时间戳,单位为秒)
update_timenumber更新时间(uinx时间戳,单位为秒)
nicknamestring用户微信昵称
head_urlstring用户微信头像url
is_bindnumberuid是否绑定了微信号
permobjarray用户权限集

# Res.info(Array).permObject Payload

用户权限集

参数名类型说明
perm_idstring权限集id
namestring权限集名称
descstring权限集描述

# 4. 注意事项

本接口无特殊注意事项

# 5. 代码示例

请求示例

POST https://api.weixin.qq.com/wedata/wedata_query_bind_list?access_token=ACCESS_TOKEN

返回示例

{
  "errcode": 0,
  "errmsg": "OK",
  "info": [
    {
      "uid": "test",
      "create_time": 1663728070,
      "update_time": 1663728119,
      "nickname": "xxx",
      "head_url": "http://wx.qlogo.cn/mmhead/xxxxxxxxxxxxxxxxxxxxxxx",
      "is_bind": 1,
      "perm": [
        {
          "perm_id": "10001",
          "name": "全站只读权限",
          "desc": "具备所有模块的“查看”权限。但没有“创建”、“编辑”、“下载”、“删除”的权限"
        }
      ]
    },
    {
      "uid": "example",
      "create_time": 1663664719,
      "update_time": 1663664941,
      "is_bind": 0
    }
  ]
}

# 6. 错误码

以下是本接口的错误码列表,其他错误码可参考 通用错误码;调用接口遇到报错,可使用官方提供的 API 诊断工具 辅助定位和分析问题。

错误码错误描述解决方案
-1system error系统繁忙,此时请开发者稍候再试

# 7. 适用范围

本接口支持「第三方平台」账号类型代调用,权限集请参考「调用方式」部分。其他账号类型如无特殊说明,均不可调用。