B3rt
January 22, 2023, 12:48am
1
Is there a way to send a webhook to Homey with mulitple values?
I now use http://ip.homey/api/manager/logic/webhook/event?tag=value and this works fine, but i want to send 1 one call more values something like:
http://ip.homey/api/manager/logic/webhook/event?tag=value&tag2=value2 etc
I know this does not work, but are there other methods to receive and process multiple values in 1 call?
This one can send 3 values at a time to Homey:
Support topic for the app Webhook Manager
After installing the app, go to the āSettingsā page and see the Webhook Manager settings. It shows the URL you can POST to and example code in PHP with the correct URL for your installation.
For example, in PHP using CURL:
<?php
$data = array("event" => "MyEvent", "data1" => "test1", "data2" => "test2", "data3" => "test3");
$data_string = json_encode($data);
$ch = curl_init('httpā¦
You can send any amount of parameters with a Webhook. You just need to add a āseparatorā between the values, and then use a HomeyScript with a split function to create those multiple values again.
ā¦?tag=firstvalue_secondvalue_thirdvalue
_ is the separator
It is included in the app: MiniWebserver