I’m trying to use a custom webhook to send data to my website. Currently, I have used “webhook.site” to test if JSON data can be sent, which was successful.
However, I’m having a bit of trouble with my own site. Say if my website was called “www.website.com” and my php script was simply “test.php”. Would I input the base URL as “www.website.com/” and the UPLINK MESSAGE as “test.php”? I can’t really tell if I’m receiving the data at the moment.
I’m also having trouble parsing through data in the JSON file. For example, how would I store the application id as a variable to output?
At the moment, its very simple, but this is what I have.
$data = file_get_contents("php://input");
$json = json_decode($data, true);
echo $data->device_ids[2];
I’d appreciate any advice.