Skip to content

Latest commit

 

History

History
73 lines (44 loc) · 1.54 KB

NEXTCLOUD.md

File metadata and controls

73 lines (44 loc) · 1.54 KB

NEXTCLOUD API DOCUMENTATION

Variable are written inside angular brackets < >



Download File from URL 📥

wget -O <fileName> <downloadLink>

OR

curl -o <fileName> <downloadLink>

Download M3U8 files to MP4 🔗

ffmpeg -i <downloadLink> -c copy -threads 8 <fileName>

Uploading File to DMS 📤

curl -u <userName>:<userPassword> -T <fileName> "https://dms.uom.lk/remote.php/webdav/"

Share file from the DMS 🔁

curl -u <userName>:<userPassword> -X POST -d "path=<fileName>&shareType=3&permissions=1" "https://dms.uom.lk/ocs/v2.php/apps/files_sharing/api/v1/shares?format=json" -H "OCS-APIRequest: true"

Get details of all shares in DMS Account 📢

curl -u <userName>:<userPassword> -X GET "https://dms.uom.lk/ocs/v2.php/apps/files_sharing/api/v1/shares?format=json" -H "OCS-APIRequest: true"

Delete a share with its share_ID 🗑️

curl -u <userName>:<userPassword> -X DELETE "https://dms.uom.lk/ocs/v2.php/apps/files_sharing/api/v1/shares/<share_ID>" -H "OCS-APIRequest: true"

Mount DMS WebDAV in My Computer 🖥️

To map DMS as a local disk in Windows 🪟, run this command in Command Prompt

net use Z: https://dms.uom.lk/remote.php/webdav/ /user:<userName> <userPassword>

  • Replace 'userName' and 'userPassword' with actual values

To access DMS in Linux 🐧, enter this address in the Enter server address field in your File Manager

davs://dms.uom.lk/remote.php/webdav/