dingtalk.oapi.impaas.group.getbydeptid (新零售场景下,获取企业全员群id)

新零售场景下,获取企业全员群id

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
dept_id Number 必须 1 1企业全员群

响应参数

名称 类型 示例值 描述
result BaseGroupInfo result
  • └ owner
  • Number
  • owner
  • └ tag
  • Number
  • tag
  • └ icon
  • String
  • icon
  • └ title
  • String
  • title
  • └ open_conversation_id
  • String
  • open_conversation_id
  • └ conversation_id
  • String
  • conversation_id
errcode Number dingOpenErrcode
errmsg String errorMsg
success Boolean success

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/impaas/group/getbydeptid");
OapiImpaasGroupGetbydeptidRequest req = new OapiImpaasGroupGetbydeptidRequest();
req.setDeptId(1L);
OapiImpaasGroupGetbydeptidResponse rsp = client.execute(req, access_token);
System.out.println(rsp.getBody());

响应示例

  • JSON示例
{
    "result":{
        "owner":,
        "tag":,
        "icon":"",
        "title":"",
        "open_conversation_id":"",
        "conversation_id":""
    },
    "errcode":,
    "errmsg":"",
    "success":
}

异常示例

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

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部