dingtalk.oapi.service.get_auth_info (获取企业基本信息)

获取企业基本信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
suite_key String 可选 key 套件key
auth_corpid String 可选 ding1234 授权方corpid

响应参数

名称 类型 示例值 描述
auth_info AuthInfo auth_info
  • agent
  • Agent []
  • agent
  • └ agentid
  • Number
  • agentid
  • └ logo_url
  • String
  • logo_url
  • └ appid
  • Number
  • appid
  • └ admin_list
  • String []
  • admin_list
  • └ agent_name
  • String
  • agent_name
auth_user_info AuthUserInfo auth_user_info
  • └ userId
  • String
  • userId
auth_corp_info AuthCorpInfo auth_corp_info
  • └ corpid
  • String
  • corpid
  • └ invite_code
  • String
  • invite_code
  • └ industry
  • String
  • industry
  • └ corp_name
  • String
  • corp_name
  • └ license_code
  • String
  • license_code
  • └ auth_channel
  • String
  • auth_channel
  • └ auth_channel_type
  • String
  • auth_channel_type
  • └ is_authenticated
  • Boolean
  • is_authenticated
  • └ auth_level
  • Number
  • auth_level
  • └ invite_url
  • String
  • invite_url
  • └ corp_logo_url
  • String
  • corp_logo_url
  • └ belong_corp_id
  • String
  • belong_corp_id
  • └ unifiedSocialCredit
  • String
  • unifiedSocialCredit
  • └ full_corp_name
  • String
  • full_corp_name
errmsg String errmsg
errcode Number errcode
channel_auth_info ChannelAuthInfo channel_auth_info
  • channelAgent
  • Channelagent []
  • channelAgent
  • └ agent_name
  • String
  • agent_name
  • └ agentid
  • Number
  • agentid
  • └ logo_url
  • String
  • logo_url
  • └ appid
  • Number
  • appid

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/service/get_auth_info");
OapiServiceGetAuthInfoRequest req = new OapiServiceGetAuthInfoRequest();
req.setSuiteKey("key");
req.setAuthCorpid("ding1234");
OapiServiceGetAuthInfoResponse rsp = client.execute(req, access_token);
System.out.println(rsp.getBody());

响应示例

  • JSON示例
{
    "auth_info":{
        "agent":[
            {
                    "agentid":,
                    "logo_url":"",
                    "appid":,
                    "admin_list":{
                        "string":[
                            ""
                        ]
                    },
                    "agent_name":""
            }
        ]
    },
    "auth_user_info":{
        "userId":""
    },
    "auth_corp_info":{
        "corpid":"",
        "invite_code":"",
        "industry":"",
        "corp_name":"",
        "license_code":"",
        "auth_channel":"",
        "auth_channel_type":"",
        "is_authenticated":,
        "auth_level":,
        "invite_url":"",
        "corp_logo_url":"",
        "belong_corp_id":"",
        "unifiedSocialCredit":"",
        "full_corp_name":""
    },
    "errmsg":"",
    "errcode":,
    "channel_auth_info":{
        "channelAgent":[
            {
                    "agent_name":"",
                    "agentid":,
                    "logo_url":"",
                    "appid":
            }
        ]
    }
}

异常示例

  • JSON示例
{
	"error_response":{
		"msg":"Remote service error",
		"code":50,
		"sub_msg":"非法参数",
		"sub_code":"isv.invalid-parameter"
	}
}

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部