문제

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