Try the fastest and simplest way to install ONLYOFFICE

API Sharing

Integration questions/issues

API Sharing

Postby aboudin » Thu Oct 06, 2016 1:06 pm

Hi,
I'm using the API and I would generate documents shared by default.
Currently, I can create automatically files in a directory and get back the URL for Sharing...

https://api.onlyoffice.com/portals/meth ... sharedlink
I try different settings for the parameter "share" :
'Read', 'ReadWrite', 1, 2, 3...

But when I use the URL with another count, Onlyoffice say me that I don't have access to this document.
When I read info of the file, there is a parameters "sharedByMe" always set to false. I can get in the document by the application to set it to true.
But I would to set it automatically via API...
Is there a way? Is what I'm doing wrong?

Thanks.
aboudin
 
Posts: 6
Joined: Wed Oct 05, 2016 2:06 pm

Re: API Sharing

Postby aboudin » Thu Oct 06, 2016 3:22 pm

I come back to you, i would excuse me, the problem was coming from my PUT request who doesn't send datas.
No error return, i thinked all was OK.Using the curl debug mode, I have see the content-length to 0...
Thx.
aboudin
 
Posts: 6
Joined: Wed Oct 05, 2016 2:06 pm

Re: API Sharing

Postby Eugenie » Fri Oct 07, 2016 2:47 pm

We are glad to hear that the issue is solved. If you have any other questions, please feel free to contact us at once.
Eugenie
 
Posts: 134
Joined: Mon Aug 25, 2014 10:11 am


Return to API

Who is online

Users browsing this forum: No registered users and 2 guests

cron