- download Touch Portal desktop and install it on the Indigo Server machine.
- download Touch Portal client -- on iOS in my case.
- create a new button in Touch Portal with an HTTP GET action.
- enter the RESTful API call in the GET Url field. In my case:
- Code: Select all
http://10.0.1.XXX:8176/devices/Living%20Room%20%2D%20Vase?toggle=1&_method=put
- here's where it gets a little trickier.
- enable developer tools in safari.
- open a tab and enter the RESTful API call.
- open the safari web inspector and refresh the page.
- in the web inspector, select the Network tab and locate the Authorization information under the Request section. It'll start with 'Digest'
- copy the entire authorization string.
- enter the authorization string in the Authorization Header field in Touch Portal
- save the settings and complete the other settings as needed (title, colors, etc.)
I was able to reuse the digest authorization string on another control with success, but I can't guarantee that this will always be the case, or how long they remain valid.