{
"text": {
"content":"hello world"
}
}{
"link":{
"messageUrl":"http://dingtalk.com",
"picUrl":"http://****.png",
"title":"钉钉",
"text":"钉钉客联"
}
}{
"action_card":{
"title":"钉钉",
"markdown":"# 支持markdown格式文本",
"single_title":"查看详情",
"single_url":"http://dingtalk.com"
}
}{
"action_card":{
"title":"是透出话列表和通知的文案",
"markdown":"支持markdown格式的正文测试",
"btn_orientation":"0",
"btn_json_list":[
{
"title":"一11个按钮",
"action_url":"https://www.taobao.com"
},
{
"title":"两22个按钮",
"action_url":"https://www.tmall.com"
}
]
}
}| 应用类型 | 是否支持 | 权限 | API Explorer调试 |
|---|---|---|---|
| 企业内部应用 | 支持 | 钉钉客联基础数据读写权限 | API Explorer |
| 第三方企业应用 | 支持 | 钉钉客联基础数据读写权限 | API Explorer |
| 第三方个人应用 | 暂不支持 | 钉钉客联基础数据读写权限 | 暂不支持 |
| HttpCode | 错误码 | 错误信息 | 说明 |
|---|---|---|---|
| 400 | general.parameterError | 输入参数有误,请检查是否同时传了会话id和接收者id或都没传 | 输入参数有误,请检查是否同时传了会话id和接收者id或都没传 |
| 400 | aim.nonexist | 您尚未开通钉钉客联服务,请联系钉钉官方客服咨询开通 | 您尚未开通钉钉客联服务,请联系钉钉官方 客服咨询开通 |
| 400 | client.nonexist | 钉外账号不存在,请检查 | 钉外账号不存在,请检查 |
| 400 | service.nonexist | 钉内账号不存在,请检查 | 钉内账号不存在,请检查 |
| 400 | group.nonexist | 群不存在,请检查 | 群不存在,请检查 |
| 400 | group.notReady | 群会话仍在创建中,请稍后重试 | 群会话仍在创建中,请稍后重试 |
| 400 | member.nonexist | 发送者不在群里,请检查 | 发送者不在群里,请检查 |
| 500 | message.send.error | 发送消息失败 | 发送消息失败 |
| 500 | system.error | 系统异常 | 系统异常 |
{
"senderId" : "String",
"receiverId" : "String",
"openConversationId" : "String",
"messageType" : "String",
"message" : "String"
}curl --location --request POST '/v1.0/im/interconnections/messages/send' \
--header 'x-acs-dingtalk-access-token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"senderId" : "String",
"receiverId" : "String",
"openConversationId" : "String",
"messageType" : "String",
"message" : "String"
}'{
"requestId": "string"
}