Webhooking json and php

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.

Your base URL and uplink parameters are OK - I’d put a http:// at the front of the website URL just to be sure (https if it’s secure).

This just goes straight back to the TTS server.

This may help with learning JSON.

Please consider using the forum search - this repro is linked to all over the forum in the last year so would have been a quick win for you.