红小豆数字   ->   API

获取文档公开链接【publicView】


通过这个API,用户可以对在线电子表格、在线文档生成一个公开链接。

请求示例:

https://app.redbeandata.cn/cubedrive/documentFile/publicView

参数:

http方法: GET

步骤


下面是使用步骤

@baseuri = http://localhost:8080/cubedrive-webapp
@username= admin
@password= abcabc
@xAuthToken=bbb6c793-832c-4733-9601-a023366d918f

###
GET {{baseuri}}/getLogin?j_username={{username}}&j_password={{password}}

###
GET {{baseuri}}/documentFile/publicView?id=xxxxxx
X-Auth-Token: {{xAuthToken}}

    

查询结果


{
  "success": true,
  "info":"更改已保存"
}    
    

文档公开链接


在线电子表格 (xxxxxx是文档id)

    {{baseuri}}/sheetPublic?viewFileId=xxxxxx
    

在线文档编辑 (xxxxxx是文档id)

    {{baseuri}}/editorV2Public?fileId=xxxxxx