# 拉取所有已授权的账号信息
使用本 API 拉取当前所有已授权的账号基本信息。使用过程中如遇到问题,可在开放平台服务商专区发帖交流。
# 请求地址
POST https://api.weixin.qq.com/cgi-bin/component/api_get_authorizer_list?component_access_token=COMPONENT_ACCESS_TOKEN
# 请求参数说明
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
component_access_token | string | 是 | 第三方平台component_access_token,不是authorizer_access_token |
component_appid | string | 是 | 第三方平台 APPID |
offset | number | 是 | 偏移位置/起始位置 |
count | number | 是 | 拉取数量,最大为 500 |
POST 数据示例:
{
"component_appid": "appid_value",
"offset": 0,
"count": 100
}
# 返回参数说明
参数 | 类型 | 说明 |
---|---|---|
total_count | number | 授权的账号总数 |
list | object array | 当前查询的账号基本信息列表 |
# 账号基本信息
参数 | 类型 | 说明 |
---|---|---|
authorizer_appid | string | 已授权的 appid |
refresh_token | string | 刷新令牌authorizer_access_token |
auth_time | number | 授权的时间 |
返回结果示例:
{
"total_count": 33,
"list": [
{
"authorizer_appid": "authorizer_appid_1",
"refresh_token": "refresh_token_1",
"auth_time": 1558000607
},
{
"authorizer_appid": "authorizer_appid_2",
"refresh_token": "refresh_token_2",
"auth_time": 1558000607
}
]
}
# 返回码说明
错误码 | 英文描述 | 中文描述 |
---|---|---|
0 | ok | 成功 |
其他错误码 | 请查看全局错误码 |