dingtalk.oapi.message.mass.recall (服务号消息撤回)

互动服务窗消息撤回接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
unionid String 必须 jYdrJoCmTo0iE
  • 最大长度:128
  • 服务号的unionid
    task_id String 必须 pushW1YOkyX5RDV5a2rjeI2SswiEiE
  • 最大长度:128
  • 消息发送任务id

    响应参数

    名称 类型 示例值 描述
    errmsg String ok 错误信息
    errcode Number 0 错误码

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    1
    2
    3
    4
    5
    6
    DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/message/mass/recall");
    OapiMessageMassRecallRequest req = new OapiMessageMassRecallRequest();
    req.setUnionid("jYdrJoCmTo0iE");
    req.setTaskId("pushW1YOkyX5RDV5a2rjeI2SswiEiE");
    OapiMessageMassRecallResponse rsp = client.execute(req, access_token);
    System.out.println(rsp.getBody());

    响应示例

    • JSON示例
    1
    2
    3
    4
    {
        "errmsg":"ok",
        "errcode":0
    }

    异常示例

    • JSON示例
    1
    2
    3
    4
    {
        "errcode":88,
        "errmsg":"ding talk error"
    }

    错误码解释

    错误码 错误描述 解决方案

    API工具

    如何获得此API

    FAQ

    返回
    顶部