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