Created
June 17, 2017 09:17
-
-
Save amirhabibzadeh/3ddafbf3dd95523fba9736cf2735ba10 to your computer and use it in GitHub Desktop.
Evand webhook php client example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* After every ticket purchased, Attendee data will send with POST request to added url in evand panel. | |
* Add your settings in evand->event panel->webhook section | |
*/ | |
$attendee = $_POST['data']; //attendee data | |
$ticket = $attendee['ticket']['data']; //ticket that attendee buyed | |
$questions = $ticket['questions']['data']; //questions of ticket | |
$order = $attendee['order']['data']; //order for this attendee | |
$answers = $attendee['answers']['data']; //answers of attendee | |
$discount = $attendee['discount']['data']; //attendee discount | |
/* | |
* Logic of your program goes here | |
* Do what you want with your attendee data. | |
*/ |
very useful :)
i've never known any iranian startup uses WEBHOOK!
i guess you're first!
be successful
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks :)