Trying to adjust my volume via tuneblade's API... this string works from curl:
I want to use dimmer to set the parameter field so I was thinking this but think I have a formatting issue:
THanks in advance.
Code:
curl -X PUT -H "Content-Type: application/json" -d "{\"Status\": \"Connect\", \"Volume\": 5}" http://touchpanel:8081/Master
Code:
Sub Main(Parm As Object) Dim ParmArray() As String dim result as String dim website as String = "http://touchpanel:8081/Master" dim request as String = "PUT" dim information as String = "{""Status"" : ""Connect"",""Volume"" : ParmArray()}" dim header as String = "Content-Type: application/json" result = hs.URLAction(website, request, information, header) End Sub
Comment