Вопрос

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