Creating public share link by API, occ, or programatically


#1

I am using the occ command-line tool in a bash script to do some recurring tasks at my organization. I am looking for a method to generate public share links programmatically. Ideally, there might be a share command as part of occ that could work like this:

occ share [-kind link|user|group] [-sharewith target] path/to/resource.zip

Is there any existing method of accomplishing this?


#2

https://doc.owncloud.org/server/10.0/developer_manual/core/ocs-share-api.html#create-a-new-share