Comments 6João started the conversationJune 27, 2022 at 3:23pmHi,I'm trying to setup a webhook for "Booking completed". Can you help me extract the data from the webhook using php?So I got my data in $object using:$json = file_get_contents('php://input'); // decode json $object = json_decode($json);and I want to extract, for example, email, so I'm doing:$email = $object[appointment][bookings][0][customer][email];but this is not actually returning anything.Can you please help?Thanks,João 6João repliedJune 27, 2022 at 4:15pmsorted, can close this.Thanks1 Like 1,614Marko repliedJune 28, 2022 at 7:22amHello João, We are glad that everything has been sorted out. If you have any more questions please open another ticket and we will gladly help you there.We wish you all the best.Kind Regards, Marko Davidovic [email protected] Rate my support Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/ wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community You can try wpDataTables add-ons before purchasing on these sandbox sites: Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables Sign in to reply ...
Hi,
I'm trying to setup a webhook for "Booking completed". Can you help me extract the data from the webhook using php?
So I got my data in $object using:
$json = file_get_contents('php://input');
// decode json
$object = json_decode($json);
and I want to extract, for example, email, so I'm doing:
$email = $object[appointment][bookings][0][customer][email];
but this is not actually returning anything.
Can you please help?
Thanks,
João
sorted, can close this.
Thanks
Hello João,
We are glad that everything has been sorted out. If you have any more questions please open another ticket and we will gladly help you there.
We wish you all the best.
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables