Open butonic opened 2 years ago
also supported by oc10:
$ curl https://demo.owncloud.com/ocs/v1.php/apps/files_sharing/api/v1/shares\?include_tags\=false\&state\=all\&shared_with_me\=true\&format\=json -u demo:demo
{"ocs":{"meta":{"status":"ok","statuscode":100,"message":null,"totalitems":"","itemsperpage":""},"data":[]}}
Would need to add a format
param to https://github.com/owncloud/owncloud-sdk/blob/1fa10b001dc47b7116f41646352961eb3a879113/src/helperFunctions.js#L215 , use it in that function for the request and the parsing preference. Then use it in getShares
and getShare
of the shareManagement.js
file. Very straightforward.
We should use JSON to fetch shares instead of XML. With hundreds of shares (in this case 500) the savings become noticeable:
roughly 1/3 the size...