komola / paymill-node

Node.JS wrapper for the Paymill v2 API
MIT License
24 stars 11 forks source link

GET request requires data as the actual query string instead of request body #5

Closed jtillmann closed 11 years ago

jtillmann commented 11 years ago

When providing data to a GET request (most likely to filter a list request) this data can not be sent as the request body, but instead has to be appended to the path as a query string.

var paymill = require("paymill-node")("privateKey")

paymill.transactions.list({client: "clientId"}, function (err, result) {
  // …
});

Currently, when issueing such a request, all transactions are returned due to the client parameter being ignored. When providing the client parameter via the query string I retrieve only the transactions belonging to that client.

sebastianhoitz commented 11 years ago

Excellent. Thank you very much!