add contentRange api

This commit is contained in:
aj 2017-11-02 22:56:53 +00:00
parent d97c6ab369
commit 4e5028dc0f
1 changed files with 15 additions and 0 deletions

View File

@ -140,6 +140,21 @@ OAUTH3._pkgs['www@daplie.com'] = {
return result; return result;
}); });
} }
, contentRange: function (opts) {
var providerUri = opts.audience;
var session = opts.session;
return OAUTH3.request({
method: 'GET'
, url: OAUTH3.url.normalize(providerUri)
+ '/api/www@daplie.com/acl/fs/' + opts.hostname
+ '?' + OAUTH3.utils.query.stringify({ tld: opts.tld, sld: opts.sld/*, sub: opts.sub*/, path: opts.path
, offset: opts.offset, length: opts.length, json: true })
, session: session
}).then(function (result) {
return result;
});
}
, remove: function (opts) { , remove: function (opts) {
var providerUri = opts.audience; var providerUri = opts.audience;
var session = opts.session; var session = opts.session;