获取通讯录授权范围
GET
https://open.feishu.cn/open-apis/contact/v3/scopes
字段权限要求:该接口返回体中存在下列敏感字段,仅当开启对应的权限后才会返回;如果无需获取这些字段,则不建议申请.
错误码
HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
400 | 40011 | page size is invalid | 无效的分页参数 |
400 | 40012 | page token is invalid error | page token无效。 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://open.feishu.cn/open-apis/contact/v3/scopes' \
--header 'Authorization;'
响应示例响应示例
{
"code": 0,
"data": {
"department_ids": [
"75217143312g9842"
],
"group_ids": [
"4bgga762"
],
"has_more": true,
"page_token": "AQD9/Rn9eij9Pm39ED40/e4EuQbBea/ybCE7/PQ1yzQXAVoq7bxTVC%2BI1oJqeoRY",
"user_ids": [
"9b2fabg6"
]
},
"msg": "success"
}
请求参数
Query 参数
user_id_type
string
可选
department_id_type
string
可选
page_token
string
可选
page_size
integer
可选
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Content-Type
string
必需
默认值:
application/json; charset=utf-8