dingtalk.oapi.org.union.trunk.get (获取主干组织列表)

获取主干组织列表

公共参数

请求参数

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

响应参数

名称 类型 示例值 描述
result OpenOrgUnion [] openOrgUnion OpenOrgUnion
  • └ org_name
  • String
  • 胜利教育局
  • 主干组织的名称
  • └ corpid
  • String
  • dingfdiuoljarsg
  • 主干组织的corpid
success Boolean true 是否成功
errcode Number -1 错误code
errmsg String sys error 错误msg

请求示例

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

响应示例

  • JSON示例
{
    "result":[
        {
                "org_name":"胜利教育局",
                "corpid":"dingfdiuoljarsg"
        }
    ],
    "success":true,
    "errcode":-1,
    "errmsg":"sys error"
}

异常示例

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

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部