cozy / cozy-browser-sdk

Cozy Data System client for the browser
http://dev.cozy.io
MIT License
7 stars 12 forks source link

Add Files API support #8

Closed flyingrub closed 8 years ago

flyingrub commented 8 years ago

Provide a file url with a token allowing us to attach or download the file.

cozysdk.getFileURL(id, 'file', (err, resp) => {
    console.log(resp);
})

return (in the dev environement) for exemple "http://Cozic-v2:test@localhost:9104/ds-api/data/5a0613ca19f0162112b79a7b0a00564f/binaries/file"