dingtalk.oapi.card.intelligent.empgroup.send (发送小钉卡片到全员群)

提供给isv,发送全员群的小钉卡片接口。其中发送模版msgkey是我们这边配置,有管控,发送方isv,代码中也进行了管控

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
receiver_list String [] 可选 ["12312","12312"]
  • 默认值:null
  • 最大列表长度:999
  • 卡片接收成员列表,不填写为全部接收
    param_json String 可选 {"haha":"enene"}
  • 默认值:null
  • 卡片中需要填充的参数
    msg_key String 必须 "test_key" 模版卡片注册的key
    uuid String 可选 adhfahfuoadfqe
  • 默认值:null
  • 卡片消息去重复,长度不能大于64

    响应参数

    名称 类型 示例值 描述
    errcode Number 1001 错误码
    success Boolean true 调用接口是否成功
    result Boolean true 业务结果
    errmsg String 系统错误 接口调用错误信息

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/card/intelligent/empgroup/send");
    OapiCardIntelligentEmpgroupSendRequest req = new OapiCardIntelligentEmpgroupSendRequest();
    req.setReceiverList(""12312","12312"");
    req.setParamJson("{\"haha\":\"enene\"}");
    req.setMsgKey("\"test_key\"");
    req.setUuid("adhfahfuoadfqe");
    OapiCardIntelligentEmpgroupSendResponse rsp = client.execute(req, access_token);
    System.out.println(rsp.getBody());

    响应示例

    • JSON示例
    {
        "errcode":1001,
        "success":true,
        "result":true,
        "errmsg":"系统错误"
    }

    异常示例

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

    错误码解释

    错误码 错误描述 解决方案

    API工具

    如何获得此API

    FAQ

    返回
    顶部