list files/folders in owncloud with php curl -
This is a strange question, but with some self-adhering APIs and working with curls, I can get an XML output of and lt; Url & gt; /cs/v1.php/apps/files_sharing/api/v1/shares/c>
If files_sharing is the only app that works or is for example files The app has other parameters which are not documents.
Thanks in advance.
There is only one API specific to get information about sharing files / folders and to share them. .
To obtain the list of files / folders you must use the access via webdive interface that is locked under your server's remote remote.fp / webdiv /.
For example, you can use this command to get the list of files in the root folder:
curl -X PROPFIND -U user: password "http : Http://yourserver.com/owncloud/remote.php/webdav/ "
In addition to this you have more HTTP to create more things:
- Get the list of files / folders
- Make mkkol = folder
- Upload a file or rename folder
- PUT = upload file
- GET = D Download File / Ul>
Comments
Post a Comment