thallium205 / xero

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

Added ability to provide params with GET requests #20

Open tommarmstrong opened 8 years ago

tommarmstrong commented 8 years ago

Hi @thallium205,

Thanks so much for the xero module, it's been super useful.

I made a minor change (which hopefully you'll think could be a useful addition) so that I can make GET requests and provide params in the place of the body used for POST requests.

An example of this is: xero.call('GET', "/Reports/ProfitAndLoss", {fromDate: "2016-02-14", toDate: "2016-02-19"}, function (err, json) {...})

Let me know what you think.

Thanks :)