跳转协议 - 钉钉开放平台
source link: https://open.dingtalk.com/document/isvapp/webapp-unified-routing-protocol
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
更新于 2023-10-12统一跳转协议指第三方应用可通过客户端协议,实现打开钉钉客户端,并跳转到指定的URL。
Android端统一跳转协议
代码示例:
url后面参数 (即希望在钉钉内打开的url页面地址) 必须做urlencode。
iOS端统一跳转协议
代码示例:
对于iOS端,若期望在钉钉内打开H5页面时通过Present方式进行转场,可在跳转链接中拼接参数dd_mode=present实现:
url后面参数(即希望在钉钉内打开的url页面地址)必须做urlencode。
PC端统一跳转协议
HTML页面填写钉钉PC端指定链接,当用户点击链接时,唤起PC客户端,并执行相应操作。
例如打开个人profile页链接:
打开个人profile页,在站点挂个人钉钉联系方式,点击打开个人profile页,步骤如下:
确认钉钉号:在钉钉移动客户端我的,打开我的信息页面下查看。
替换{id},替换后链接为dingtalk://dingtalkclient/action/sendmsg?dingtalk_id=your_dingtalk_id。
打开个人profile页示例:PC端打开个人profile页,点击钉钉联系我。
重要PC端统一跳转协议暂时不支持服务端获取dingtalk_id,若页面在钉钉PC端容器内执行,可尝试使用 openPageInMicroApp 客户端 API 打开个人资料页。
统一页面链接
统一跳转页面链接如下:
打开个人资料页 |
| |||
| ||||
桌面端打开URL |
| 侧边栏:参考link协议,并增加pc_slide=true 大容器(类似工作台容器):增加参数ddtab=true 说明
| ||
| ||||
发起DING |
| |||
服务窗小助手 |
| |||
我的信息页面 |
| |||
账号与安全 |
| |||
特别关注列表 |
| |||
| ||||
| ||||
创建团队页面 |
| |||
| ||||
团队申请列表页 |
| |||
搜索企业主页 |
| |||
团队邀请二维码页面 |
| |||
| ||||
DingTalk ID设置 |
| |||
选择联系人发起办公电话 |
| title:选人组件的标题 | ||
| ||||
| ||||
跳转浏览器 |
| url:需要进行urlencode | ||
|
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK