This curl command works:
$ curl -L "https://developer-api.nest.com/devices?auth=ACCESS_TOKEN"
But when I try to do a read, I'm not sure what to use for "db-name":
(taika/read "developer-api.nest.com" "/devices" ACCESS_TOKEN)
#=> ExceptionInfo clj-http: status 422 clj-http.client/wrap-exceptions/fn--4348 (client.clj:111)
(taika/read "https://developer-api.nest.com" "/devices" ACCESS_TOKEN)
#=> UnknownHostException https: unknown error java.net.Inet6AddressImpl.lookupAllHostAddr (Inet6AddressImpl.java:-2)
(taika/read "firebase-apiserver06-tah01-iad01.dapi.production.nest.com" "/devices" token) # after redirect
#=> ExceptionInfo clj-http: status 422 clj-http.client/wrap-exceptions/fn--4348 (client.clj:111)
(taika/read "wss://developer-api.nest.com" token) # tried because of javascript documentation
#=> UnknownHostException wss: unknown error java.net.Inet6AddressImpl.lookupAllHostAddr (Inet6AddressImpl.java:-2)
The 422s imply that I'm hitting an (the?) endpoint, but with invalid data. I'd appreciate any suggestions.
This
curlcommand works:$ curl -L "https://developer-api.nest.com/devices?auth=ACCESS_TOKEN"But when I try to do a read, I'm not sure what to use for "db-name":
The 422s imply that I'm hitting an (the?) endpoint, but with invalid data. I'd appreciate any suggestions.