rdzar / node-moneybird

🚅 Easy & fast promised based API-wrapper around the Moneybird.com API
MIT License
8 stars 4 forks source link

Feature/query #3

Closed rickvdl closed 5 years ago

rickvdl commented 6 years ago

I've added the option to supply optional GET query parameters. For this to work I had to rewrite part of the argument parsing logic, since the last argument won't always be a POST data object anymore.

All current tests pass and I've added some new tests, no dependencies were added. Please take a look at the example call in the README. Using the new argument you can now query contacts by name, or select sales invoices from a specific period for example.

Cheers.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-3.1%) to 96.899% when pulling 2903e2e177bf619efbf6f2a3598bb674c3a5e2ef on rickvdl:feature/query into 8d19687e33eeda7903183d247f761cde6d07eed7 on renedx:master.