evnm/dropbox-node — pull request #28 by fent (2012-04-03 16:35:41+00:00)
Title: New features, few API changes, less code, and docs

Hello, I've added some new methods to this module, `search()` and `delta()`. Read more about the in the [dropbox API docs](https://www.dropbox.com/developers/reference/api). Also added a cool `changesStream()` method, it returns an event emitter that emits `data` event on changes to the client's dropbox.

```js
var stream = dropbox.changesStream();
stream.on('data', function(path, metadata) {
console.log('file changed', path);
});
```

I replaced the oauth module with request. Request handles oauth, and it provides realy convenient APIs like streaming. With it, `getFile()` and `putFile()` are much nicer.

```js
dropbox.getFile('yourfile.zip').pipe(fs.createWriteStream('localfile.zip');
```

`putFile()` can't be streamed into because Dropbox doesn't support it :(. But its code looks much nicer. And #9 and #10 are now fixed due to this.

I also made some small changes to some methods, allowing the optional parameters in the API. Such as on `getFile()`, it now supports ranged requests. Cool.

Plus I added API docs to the readme. Enjoy!