thallium205 / xero

Xero Library for Private Applications in Node
48 stars 55 forks source link

make callback optional to be able to download pdfs #2

Closed oroce closed 10 years ago

oroce commented 10 years ago

If we dont provide a callback for _performSecureRequest it will return the raw unsent request object: https://github.com/ciaranj/node-oauth/blob/0.9.10/lib/oauth.js#L405-L410

This allows to override such things like the Accept header.

Also added an example to the README.

oroce commented 10 years ago

thanks for merging, could you republish to npm?

thallium205 commented 10 years ago

All published!

oroce commented 10 years ago

thanks