node-oauth
node-oauth copied to clipboard
Feature request: Passing custom headers
Please allow passing custom headers when doing OAuth.get, OAuth.post, OAuth.put & OAuth.delete
Some servers need (for example) {"Accept":"application/json"} in order to respond properly...
Check:
- https://github.com/ciaranj/node-oauth/blob/0.9.12/lib/oauth.js#L486 (OAuth.prototype.get)
- https://github.com/ciaranj/node-oauth/blob/0.9.12/lib/oauth.js#L505 (OAuth.prototype.put)
- https://github.com/ciaranj/node-oauth/blob/0.9.12/lib/oauth.js#L509 (OAuth.prototype.post)
- https://github.com/ciaranj/node-oauth/blob/0.9.12/lib/oauth.js#L482 (OAuth.prototype.delete)
Any news about this feature?
Stagnated I guess? We need this to talk to Xero because XML is so not 2017.