可通过此接口获取成员授权空间列表。
请求方式: POST(HTTPS)
请求地址: https://qyapi.weixin.qq.com/cgi-bin/security/wedrive/get_auth_space_list?access_token=ACCESS_TOKEN
请求包体
{
"userid":"woxxxxxxx",
"is_resigned":0
}
参数说明:
| 参数 | 是否必须 | 类型 | 说明 |
|---|---|---|---|
| access_token | 是 | String | 调用接口凭证 |
| userid | 是 | String | 成员userid |
| is_resigned | 否 | Interger | 查询已离职或在职的userid,默认查询在职。0:在职 1:已离职 |
权限说明:
调用的应用需要满足如下的权限:
| 应用类型 | 权限要求 |
|---|---|
| 自建应用 | 配置到「文件内容存档 - 可调用接口的应用」中 |
| 代开发应用 | 暂不支持 |
| 第三方应用 | 暂不支持 |
返回结果:
{
"errcode": 0,
"errmsg": "ok",
"auth_space_list": [
{
"spaceid": "spxxxxxxxxxx",
"space_name": "空间名1",
"is_space_superadmin": 0
},
{
"spaceid": "spxxxxxxxxxx",
"space_name": "空间名2",
"is_space_superadmin": 1
}
]
}
参数说明:
| 参数 | 类型 | 说明 |
|---|---|---|
| errcode | Integer | 错误码 |
| errmsg | String | 错误码说明 |
| auth_space_list | Object数组 | 生效成员列表,详见AuthSpace |
AuthSpace
| 参数 | 类型 | 说明 |
|---|---|---|
| spaceid | String | 空间ID |
| space_name | String | 空间名 |
| is_space_superadmin | Interger | 指定的userid是否为空间的超级管理员。0:否 1:是 |
