客户端 | Android | iOS | PC |
---|---|---|---|
支持说明 | 不支持 | 不支持 | 支持 |
dd.biz.ding.post({
users : ['100', '101'],//用户列表,userid
corpId: 'dingb4ff1079f84f8d54', //加密的企业id
type: 1, //钉类型 1:image 2:link
alertType: 2,
alertDate: {"format":"yyyy-MM-dd HH:mm","value":"2015-05-09 08:00"},
attachment: {
images: [''], //只取第一个image
}, //附件信息
text: '', //消息体
onSuccess : function() {},
onFail : function() {}
})
参数 | 类型 | 说明 |
---|---|---|
users | Array[String] | 用户的userid列表。 |
corpId | String | 企业的corpid。 |
type | Number | Number为整数。附件类型: |
| ||
alertType | Number | 钉提醒类型: |
| ||
alertDate | Object | 钉提醒时间。 |
attachment | Object | 附件信息。 |
text | String | 消息体。 |
dd.biz.ding.post({
users : ['100', '101'],//用户列表,userid
corpId: 'dingb4ff1079fxxxx', //企业id
type: 2, //钉类型 1:image 2:link
alertType: 2,
alertDate: {"format":"yyyy-MM-dd HH:mm","value":"2015-05-09 08:00"},
attachment: {
title: '', //附件的标题
url: '', //附件点击后跳转url
image: '', //附件显示时的图片 【可选】
text: '', //附件显示时的消息体 【可选】
showInApp: false, // 跳转url在PC客户端上的打开方式,true:从PC容器内打开,false:跳转到浏览器打开 【可选】
}
text: '', //消息体
onSuccess : function() {},
onFail : function() {}
})
参数 | 类型 | 说明 |
---|---|---|
users | Array[String] | 用户的userid列表。 |
corpId | String | 企业的corpid。 |
type | Number | Number为整数。钉类型 1:image 2:link |
alertType | Number | 钉提醒类型: |
| ||
alertDate | Object | 钉提醒时间。 |
attachment | Object | 附件信息。 |
text | String | 消息体。 |
【钉钉】API开发者 微信交流群
用微信扫右侧二维码,加入【钉钉】API开发者 交流群,互助沟通