分享 API
支持链接分享和向手机号、邮箱邀请分享。外部成员可以使用分享,不必先加入企业。管理员可限制对外分享。界面中邀请部门覆盖所有子部门成员;本版 PDF 的邀请接口只列出邮箱与手机号参数,不应自行编造部门参数。
接口目录
| 方法 | 接口 | 路径 |
|---|---|---|
GET |
获取可以关注文件的用户列表,并且标记已关注文件的用户 | /nd/api/file/user_can_focusfile |
GET |
获取关注文件的用户列表 | /nd/api/file/user_focusfile |
GET |
获取所有分享参与人 | /nd/api/share/share_participants |
GET |
获取用户对于单个文件有权设置的分享角色 | /nd/api/share/share_role_forfile |
GET |
获取分享的权限列表 | /nd/api/share/share_roles |
GET |
获取文件的分享 url | /nd/api/share/shareurl |
POST |
提醒关注 | /nd/api/file/focus_file |
POST |
删除分享参与人 | /nd/api/file/remove_share_participant |
POST |
移除某人的关注 | /nd/api/file/unfocus_file |
POST |
关闭链接分享 | /nd/api/share/close_link_share |
POST |
邀请人员参与分享 | /nd/api/share/invite_share |
POST |
创建链接分享 | /nd/api/share/open_link_share |
POST |
设置分享参与人的权限角色 | /nd/api/share/set_participant_role |
POST |
设置链接分享密码 | /nd/api/share/set_share_password |
对接说明
本文依据《Babel 开发 API》整理,单接口页面保留原始路径和字段大小写。源文档未明确或存在类型冲突的字段需在联调中确认,不应假定存在未列出的参数。使用部署方提供的 HTTPS 域名;API 密钥与访问凭证不得写入公开页面。