node-oauth icon indicating copy to clipboard operation
node-oauth copied to clipboard

Feature request: Passing custom headers

Open boustanihani opened this issue 10 years ago • 2 comments

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)

boustanihani avatar Mar 01 '15 23:03 boustanihani

Any news about this feature?

yeiniel avatar Mar 27 '15 20:03 yeiniel

Stagnated I guess? We need this to talk to Xero because XML is so not 2017.

Roam-Cooper avatar Apr 27 '17 11:04 Roam-Cooper