Hello,
I want to integrate my project with OnlyOffice docs web. I have download API in my Spring project, and I want to perform the following operations when the download API is called:
- Upload a file to OnlyOffice web.
- Generate a file shareable link with edit permission. This link will be accessible only to the person whose email ID is provided.
Regarding file upload, I found the API endpoint “/api/2.0/files/{folderID}/upload”. I want to confirm one thing: Is the folderID fixed, or will it change dynamically over time? If it’s not fixed, how can I obtain the folderID dynamically?
For generating a shareable link for a specific user, I found two API endpoints, but they don’t seem to be working as expected:
- “/api/2.0/people/email?email=%22useremail%22” (to get the user ID).
- “/api/2.0/files/file/{fileId}/share)” (to get the file shareable link).
Could you please provide guidance on how to correct these API calls?
Additionally, I would like to know how to build a plugin that will upload the current document to my own server’s API.