Fork me on GitHub
#clj-http
<
2021-09-05
>
zendevil.eth04:09:33

@dharrigan I tried that but it still gives “{\“message\“:\“API KEY missing from x-api-key header\“}”

jumar05:09:00

@ps it seems you are concatenating the map containing headers inside str - perhaps it should be this instead?

(client/get (str ""
                      (-> req :params :contract-address)                   
                      "/owners?chain=eth&format=decimal")
            {:headers {:accept "application/json" "X-API-Key" "myapikey"}})

zendevil.eth05:09:08

yes that fixed it