CubeDrive   ->   API

Get public link 【publicView】


With this API, users can generate a public link for the online sheet and online document

Name:

{{baseuri}}/documentFile/publicView

Parameter:

http method: GET

Steps


Here lists the steps

@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}}

    

Result


{
  "success": true,
  "info":"Change saved"
}    
    

File public link


Online sheet (xxxxxx is document id)

    {{baseuri}}/sheetPublic?viewFileId=xxxxxx
    

Online document (xxxxxx is document id)

    {{baseuri}}/editorV2Public?fileId=xxxxxx