thallium205 / xero

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

Correct the API calls so it supports adding multiple records at once. #9

Closed jesucarr closed 9 years ago

jesucarr commented 9 years ago

The current version adds 'Request' as rootElement, and we can't add for example as rootElement, followed by multiple , as detailed in Xero API docs.

This fixes it being able to send a single object or an array of objects with the properties for the given API call path.