shernshiou / node-uber

Uber API nodejs wrapper
MIT License
188 stars 66 forks source link

Add promise support #45

Closed microsoftly closed 8 years ago

microsoftly commented 8 years ago

Add support for use of promises instead of callbacks

agraebe commented 8 years ago

We implemented this feature for release v1.0.0. You can give it a shot, it's stable! Just check out the v1.0.0 branch :)

We used Bluebird for the premises, which appends "Async" to all async promisified methods. For instance, user.getProfile becomes user.getProfileAsync. Please find more details in the updated README.md.

Let me know if that solves your request. Happy to hear about potential improvements!