- Overview of OpenAPI
- SlackOpenAPI
- ShopifyOpenAPI
- GithubAPI
- DiscordOpenAPI
- 历史文档(不推荐)
- 开发钉钉应用
- 服务端API
- 新版服务端API(DingTalk OpenAPI)
- 生态伙伴API
获取企业授权信息
POST
http://127.0.0.1/cgi-bin/service/get_auth_info
智慧硬件开发/应用授权/接口调用
最后修改时间:2022-08-30 03:03:36
责任人:未设置
请求参数
Query 参数
suite_access_token
string
必需
示例值:
suite_access_token
Body 参数application/json
auth_corpid
string
授权方corpid
permanent_code
string
必需
示例
{
"auth_corpid": "auth_corpid_value",
"permanent_code": "code_value"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://127.0.0.1/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"
}'
返回响应
🟢200成功
application/json
Body
errcode
integer <int32>
可选
auth_corp_info
object
授权方企业信息
corp_type
string
可选
corp_full_name
string
可选
corpid
string
可选
subject_type
integer <int32>
可选
corp_sub_industry
string
可选
corp_scale
string
可选
verified_end_time
integer <int32>
可选
corp_name
string
可选
corp_wxqrcode
string
可选
corp_square_logo_url
string
可选
corp_agent_max
integer <int32>
可选
corp_user_max
integer <int32>
可选
corp_industry
string
可选
dealer_corp_info
object
代理服务商企业信息
corpid
string
可选
corp_name
string
可选
errmsg
string
可选
auth_info
object
可选
agent
array [object {6}]
可选
示例
{
"errcode": 0,
"auth_corp_info": {
"corp_type": "string",
"corp_full_name": "string",
"corpid": "string",
"subject_type": 0,
"corp_sub_industry": "string",
"corp_scale": "string",
"verified_end_time": 0,
"corp_name": "string",
"corp_wxqrcode": "string",
"corp_square_logo_url": "string",
"corp_agent_max": 0,
"corp_user_max": 0,
"corp_industry": "string"
},
"dealer_corp_info": {
"corpid": "string",
"corp_name": "string"
},
"errmsg": "string",
"auth_info": {
"agent": [
{
"square_logo_url": "string",
"round_logo_url": "string",
"agentid": 0,
"appid": 0,
"name": "string",
"shared_from": {
"corpid": "string"
}
}
]
}
}
