三、API api文档:https://docs.nextcloud.com/server/20/developer_manual/client_apis 创建目录 curl -u admin:admin 'http://218.241.204.174/yunpannew/remote.php/dav/files/admin/test2/' -X MKCOL 删除文件或目录 curl -u admin:admin 'http://218.241.204.174/yunpannew/remote.php/dav/files/admin/test2/' -X DELETE 上传文件 curl -u admin:admin 'http://218.241.204.174/yunpannew/remote.php/dav/files/admin/test/' -T /root/text.txt -X PUT 下载文件 curl -u admin:admin 'http://218.241.204.174/yunpannew/remote.php/dav/files/admin/test/1.md' -X GET -o test.md 创建用户 curl -u admin:admin -X POST "http://218.241.204.174/yunpannew/ocs/v1.php/cloud/users" -d userid="guoxianqi" -d password="guoxianqi" -H 'OCS-APIRequest: true' 删除用户 curl -u admin:admin -X DELETE "http://218.241.204.174/yunpannew/ocs/v1.php/cloud/users/guoxianqi" -H 'OCS-APIRequest: true' 查看用户信息 curl -u admin:admin -X GET "http://218.241.204.174/yunpannew/ocs/v1.php/cloud/users/admin" -H 'OCS-APIRequest: true' curl -u admin:admin 'http://172.20.10.7/remote.php/dav/files/admin/folder' -X PROPFIND --data http://192.168.2.13/yunpannew/ocs/v1.php/cloud/users/admin http://192.168.2.13/yunpannew/ocs/v2.php/apps/files_sharing/api/v1 http://192.168.2.13/yunpannew/ocs/v2.php/apps/files_sharing/api/v1/shares