Hi everyone I seem to be having an issue with the put request type.
I get this compliation error
Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\Lifx.vb: 'information' is a type and cannot be used as an expression.
Dec-17 10:13:41 PM Error Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\Lifx.vb: Expression expected.
Dec-17 10:13:41 PM Error Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\Lifx.vb: Namespace or type specified in the Imports 'System.Core' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
EDIT: I can now confirm with testing from http://requestb.in that HomeSeer does not make any put requests.
HTML Code:
Sub Main(Parm As Object) dim result as String dim website as String = "https://api.lifx.com/v1/lights/group:XXXXX's Room/state" dim request as String = "PUT" dim information as String = '{"power" : "on", "brightness" : "1"}' dim header as String = "Authorization:Bearer XXXXX(FILLED IN)XXXXX" result = hs.URLAction(website, request, information, header) End Sub
Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\Lifx.vb: 'information' is a type and cannot be used as an expression.
Dec-17 10:13:41 PM Error Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\Lifx.vb: Expression expected.
Dec-17 10:13:41 PM Error Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\Lifx.vb: Namespace or type specified in the Imports 'System.Core' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
EDIT: I can now confirm with testing from http://requestb.in that HomeSeer does not make any put requests.
Comment