I am trying to get a response from a simple web service and want to trigger an item based on the input. The url “http://localhost:8080/RESTfulWebServiceExample/rest/IotWebService/get” in my browser gives me the output {“Trigger”:“yes”}. I want to read this “yes” .
I have created a java script file in transform folder iot.js
I am not sure what should be line of code in this java script file.
The code in items is:
String iot “Video” { http="<[http://localhost:8080/RESTfulWebServiceExample/rest/IotWebService/get:JS(iot.js)]" }
The error which I get this
Any help is appreciated.
Thanks,
Sujata.