dachinat / nextcloud

Nextcloud OCS and WebDAV API wrapper for Ruby.
https://rubygems.org/gems/nextcloud
MIT License
17 stars 17 forks source link

Make FileSharingApi#create save share URL if possible #16

Closed Quintasan closed 3 years ago

Quintasan commented 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.

Quintasan commented 3 years ago

Welp, I did it myself - see #17

dachinat commented 3 years ago

Thanks a lot, PR accepted