I am using this in my project to allow streaming of the Dropbox API response to the client. This is especially useful for streaming responses from GET /files. For example (with the 0.3.x API):
var stream = dbox.get("/dropbox/file.ext", opts, function(status, fileBuffer){
// Handle error here
});
// Write each chunk of the Dropbox API to the client connection as it comes in
stream.on("data", function(chunk){
res.write(chunk);
});
stream.on("end", function(){
res.end();
});
I am using this in my project to allow streaming of the Dropbox API response to the client. This is especially useful for streaming responses from
GET /files
. For example (with the 0.3.x API):