trigger IFTTT maker webhook from HB vbscipt
Posted: Fri Aug 30, 2019 11:45 am
Hi all,
I'm trying to get HB to trigger IFTTT maker Webhook from Housebot. I just can't seem to get it to work.
Does anybody know how to do this.
This is the info from de IFTTT side
Results in Error 0 unexpected Responce....
And
It results in Error 0 The download of the ..... has faild
If I type the URL ("https://maker.ifttt.com/trigger/{event}/with/key/{maker code}) in my browser I get an responce in html:
I'm trying to get HB to trigger IFTTT maker Webhook from Housebot. I just can't seem to get it to work.
Does anybody know how to do this.
This is the info from de IFTTT side
I tryed (I replaced {event} and {maker code} with my own cridentialsTo trigger an Event
Make a POST or GET web request to:
https://maker.ifttt.com/trigger/{event}/with/key/{maker code}
With an optional JSON body of:
{ "value1" : "", "value2" : "", "value3" : "" }
The data is completely optional, and you can also pass value1, value2, and value3 as query parameters or form variables. This content will be passed on to the Action in your Recipe.
You can also try it with curl from a command line.
curl -X POST https://maker.ifttt.com/trigger/{event}/with/key/{maker code}
Code: Select all
Dim objXmlHttpMain , URL
strJSONToSend = "{""value1"":""test""}"
URL="https://maker.ifttt.com/trigger/{event}/with/key/{maker code}"
Set objXmlHttpMain = CreateObject("Msxml2.ServerXMLHTTP")
objXmlHttpMain.open "GET",URL, false
objXmlHttpMain.setRequestHeader "Content-Type", "application/json"
objXmlHttpMain.send strJSONToSend
msgbox objxmlHttpMain.responseText
set objJSONDoc = nothing
set objResult = nothing
And
Code: Select all
Dim objRequest
Dim URL
Set objRequest = CreateObject("MSXML2.XMLHTTP.6.0")
URL = "https://maker.ifttt.com/trigger/{event}/with/key/{maker code}"
objRequest.open "GET", URL , false
objRequest.Send ()
Set objRequest = Nothing
If I type the URL ("https://maker.ifttt.com/trigger/{event}/with/key/{maker code}) in my browser I get an responce in html:
Does anybody know the sollution?Congratulations! You've fired the {event} event