Closed Quintasan closed 3 years ago
Creating a public share with URL using https://github.com/dachinat/nextcloud/blob/master/lib/nextcloud/ocs/file_sharing_api.rb#L76 doesn't get you the share URL back. With the current behavior if I create 100 shares then I'll have to make additional 100 API calls to get all the URLs.
If I recall correctly, when you create a public share the URL should be available under ocs.data.url.
ocs.data.url
Welp, I did it myself - see #17
Thanks a lot, PR accepted
Creating a public share with URL using https://github.com/dachinat/nextcloud/blob/master/lib/nextcloud/ocs/file_sharing_api.rb#L76 doesn't get you the share URL back. With the current behavior if I create 100 shares then I'll have to make additional 100 API calls to get all the URLs.
If I recall correctly, when you create a public share the URL should be available under
ocs.data.url
.