質問

I'm trying to make a custom Core API call that dropbox.js doesn't wrap around -- specifically to get a link to streamable media.

How can I use dropbox.js's provided Dropbox.Util.Xhr to make this request? I'm not sure on how to include the access token or set up the request at all.

役に立ちましたか?

解決

You can probably do that, but based on the docs, I think this will work to make a /media call (completely untested code):

var path = '/path/to/file';
client.makeUrl(path, { download: true }, function (error, link) {
    alert('Got back URL: ' + link.url);
}
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top