开发者社区> 问答> 正文

钉消息接口url问题

dd.biz.ding. post({
     users : [ ''] , //用户列表,工号
     corpId: '' , //企业id
     type: 2 , //钉类型 1:image  2:link
     alertType: 2 , //钉提醒类型 0:电话, 1:短信, 2:应用内
     attachment: {
         title: ‘’ ,
         url: 'http://www.baidu.com' ,
         image: '' ,
         text: ‘’
    } , //附件信息
     text: '' , //消息
     onSuccess : function() {} ,
     onFail : function() {}
}) ;
在url中传入地址时接收人获取钉消息后列表上只有确认收到,无法点击跳转到该url
请问url该怎么用?

展开
收起
被抓住curry 2016-07-28 10:02:07 2964 0
2 条回答
写回答
取消 提交回答
  • 回 1楼竹梅的帖子
    原来要加个图片地址,谢谢大神了
    2016-07-30 15:40:15
    赞同 展开评论 打赏
  • 回 楼主(被抓住curry) 的帖子
    使用下面方式试下
    attachment: {
                    title: 'title',
                    url: 'http://open.dingtalk.com',
                    image: 'http://static.dingtalk.com/media/lADOEXsI8c0DwM0FAA_1280_960.jpg',
                    text: 'text'
                },
    2016-07-28 11:06:06
    赞同 展开评论 打赏
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载