3
votes

I need to make a web request to an external service (Twilio), with multiple values specified for the same parameter, e.g.

GET /some-url?status=1&status=2&status=3

How do I tell clj-http to encode the request like this?

1

1 Answers

4
votes

You can put multiple values for your :query-param value inside of sequential:

(client/get
  "http://yoursite.com/some-url"
  {:query-params {"status" [1 2 3]}
   :debug true})