3

I am sure this is a very easy conversion but I just can't make this

curl --user secret_key: https://api.chargeio.com/v1/transactions?page=1&page_size=5&order_by=-created

work in RestClient because can't figure out what is the equivalent of --user in RestClient. Tried addParameter and addHeader but didn't work. Any help?

Allen King
  • 2,372
  • 4
  • 34
  • 52

1 Answers1

0

Try to pass credentials with -d option

-d '{"username":"user","password":"password" }'

(this is also acceptable) -d @credentials.json or with -X option which adds header to your request

dawidklos
  • 902
  • 1
  • 9
  • 32