dingtalk.oapi.message.corpconversation.getsendprogress (获取异步发送企业会话消息的发送进度)

获取异步发送企业会话消息的进度

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
agent_id Number 必须 123 发送消息时使用的微应用的id
task_id Number 必须 456 发送消息时钉钉返回的任务id

响应参数

名称 类型 示例值 描述
errcode Number 0 errcode
errmsg String ok errmsg
progress AsyncSendProgress {} result
  • └ progress_in_percent
  • Number
  • 100
  • 取值 0-100,表示处理的百分比
  • └ status
  • Number
  • 2
  • 任务执行状态,0=未开始,1=处理中,2=处理完毕

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/message/corpconversation/getsendprogress");
OapiMessageCorpconversationGetsendprogressRequest req = new OapiMessageCorpconversationGetsendprogressRequest();
req.setAgentId(123L);
req.setTaskId(456L);
OapiMessageCorpconversationGetsendprogressResponse rsp = client.execute(req, access_token);
System.out.println(rsp.getBody());

响应示例

  • JSON示例
{
    "errcode":0,
    "errmsg":"ok",
    "progress":{
        "progress_in_percent":100,
        "status":2
    }
}

异常示例

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

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部