I am trying to make a sck api query from inside an Arduino sketch.
If I just enter this api query in a browser window menu bar:
http://api.smartcitizen.me//v0.0.1/6e0428e19cf2bff1a9c05d14d0400bf4/me.json
Then I get the proper sck api response in the browser window:
But if I make the same query from within an Arduino sketch like this (Based on the Arduino WifiWebClient example:
Then I get back a strange response like this:
Which is nothing like the response that I am looking for (the first response from above). It is strange for two reasons. First it looks like HTML code instead of the text response I am looking for (I can kind of understand how that is happening). Second, it is saying the requested URL was not found. I am pretty sure that I broke apart the URL into the “host” and “get” statements properly.
Any idea what I might be doing wrong? How can I get back the nice sck API response from such a query?
Thank you,
Drew