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