dingtalk.oapi.industry.organization.get (获取企业信息)

获取行业通讯录的企业信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述

响应参数

名称 类型 示例值 描述
result OpenIndustryOrgInfo result result
  • └ region_location
  • String
  • 西红柿省_西红柿_西红柿区_西红柿小镇5_西红柿村815
  • 区域信息
  • └ region_id
  • String
  • 990101005815
  • 区域id信息
  • └ region_type
  • String
  • VILLAGE
  • 区域类型,区/镇/村
success Boolean 1 成功
errcode Number 0 dingOpenErrcode
errmsg String 成功 errorMsg

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/industry/organization/get");
OapiIndustryOrganizationGetRequest req = new OapiIndustryOrganizationGetRequest();
OapiIndustryOrganizationGetResponse rsp = client.execute(req, access_token);
System.out.println(rsp.getBody());

响应示例

  • JSON示例
{
    "result":{
        "region_location":"西红柿省_西红柿_西红柿区_西红柿小镇5_西红柿村815",
        "region_id":"990101005815",
        "region_type":"VILLAGE"
    },
    "success":1,
    "errcode":0,
    "errmsg":"成功"
}

异常示例

  • JSON示例
{
	"errcode":88,
	"errmsg":"ding talk error"
}

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部