I am learning the ins & outs of groovy and have a couple device types of my own running and successfully muddled together some other peoples apps. I’m trying to write a SmartApp that calls an outside REST API ( http://thisfancyapi.com/query?key=MYKEY¶m1=yes¶m2=no ) which gives me a JSON response.
I have poured through the forums and the documentation. Being new to REST and groovy I’m hitting a big hurdle on how to call my httpPost handler (based on time of day) and how to parse the JSON elements from the response.
Here is the git to what I have so far
Any fork/pull requests are welcome!