获取企业授权信息
POST
/cgi-bin/service/get_auth_info
服务端API智慧硬件开发第三方应用开发
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://qyapi.weixin.qq.com/cgi-bin/service/get_auth_info?suite_access_token=suite_access_token' \
--header 'Content-Type: application/json' \
--data-raw '{"auth_corpid":"auth_corpid_value","permanent_code":"code_value"}'
响应示例响应示例
{
"errcode": 0,
"errmsg": "ok",
"dealer_corp_info": {
"corpid": "xxxx",
"corp_name": "name"
},
"auth_corp_info": {
"corpid": "xxxx",
"corp_name": "name",
"corp_type": "verified",
"corp_square_logo_url": "yyyyy",
"corp_user_max": 50,
"corp_full_name": "full_name",
"verified_end_time": 1431775834,
"subject_type": 1,
"corp_wxqrcode": "zzzzz",
"corp_scale": "1-50人",
"corp_industry": "IT服务",
"corp_sub_industry": "计算机软件/硬件/信息服务"
},
"auth_info": {
"agent": [
{
"agentid": 1,
"name": "NAME",
"round_logo_url": "xxxxxx",
"square_logo_url": "yyyyyy",
"appid": 1,
"auth_mode": 1,
"is_customized_app": false,
"auth_from_thirdapp": false,
"privilege": {
"level": 1,
"allow_party": [
1,
2,
3
],
"allow_user": [
"zhansan",
"lisi"
],
"allow_tag": [
1,
2,
3
],
"extra_party": [
4,
5,
6
],
"extra_user": [
"wangwu"
],
"extra_tag": [
4,
5,
6
]
},
"shared_from": {
"corpid": "wwyyyyy",
"share_type": 1
}
},
{
"agentid": 2,
"name": "NAME2",
"round_logo_url": "xxxxxx",
"square_logo_url": "yyyyyy",
"appid": 5,
"shared_from": {
"corpid": "wwyyyyy",
"share_type": 0
}
}
]
}
}
请求参数
Query 参数
suite_access_token
必需
示例值:
suite_access_token
Body 参数application/json
返回响应
修改于 2022-12-05 04:13:03