Pergunta

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.

Foi útil?

Solução

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);
}
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top