Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save amirhabibzadeh/3ddafbf3dd95523fba9736cf2735ba10 to your computer and use it in GitHub Desktop.
Save amirhabibzadeh/3ddafbf3dd95523fba9736cf2735ba10 to your computer and use it in GitHub Desktop.
Evand webhook php client example
<?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.
*/
@khalooei
Copy link

khalooei commented Aug 1, 2017

Thanks :)

@mosiQari
Copy link

mosiQari commented Feb 12, 2018

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