<?php require_once 'html.php'; require_once 'settings.php'; require_once '../src/Attendly.php'; $api = new Attendly(API_USER, API_KEY); // To work out which event to get, get a list of all the events and then get the // first one. $all = $api->event_list('active'); // Get the event ID $eventId = $all['Result'][0]['ID']; // Get the events teams $out = $api->event_teams($eventId); echo head(); echo '<h1>Event teams for event: <small>' . $all['Result'][0]['Name'] . '</small></h1><pre><code class="JSON">'; echo print_r($out, TRUE); echo '</code></pre>' . footer();
<?php require_once 'html.php'; require_once 'settings.php'; require_once '../src/Attendly.php'; $api = new Attendly(API_USER, API_KEY); // Get a group $groups = $api->group_list(); // Get the events in that group $out = $api->event_list('group', $groups['Result'][0]['ID']); echo head(); echo '<h1>Event list for group <small>' . $groups['Result'][0]['Name'] . '</small></h1><pre><code class="JSON">'; echo print_r($out, TRUE); echo '</code></pre>' . footer();
<?php require_once 'html.php'; require_once 'settings.php'; require_once '../src/Attendly.php'; $api = new Attendly(API_USER, API_KEY); // To work out which event to get, get a list of all the events and then get the // first one. $all = $api->event_list('active'); // Get the event ID $eventId = $all['Result'][0]['ID']; // Get the events tickets $out = $api->event_tickets($eventId); echo head(); echo '<h1>Event tickets for event: <small>' . $all['Result'][0]['Name'] . '</small></h1><pre><code class="JSON">'; echo print_r($out, TRUE); echo '</code></pre>' . footer();
<?php require_once 'html.php'; require_once 'settings.php'; require_once '../src/Attendly.php'; $api = new Attendly(API_USER, API_KEY); // To work out which group to get, get a list of all the groups and then get the // first one. $all = $api->group_list('active'); // Get the group ID $groupId = $all['Result'][0]['ID']; // Get the group $group = $api->group_get($groupId); // Make a change to the group $group['Result']['Name'] = 'Edited group... ' . rand(1, 1000); // Update the group $out = $api->group_update($group['Result']); echo head(); echo '<h1>Group update <span class="label label-success">A 204 means success</span></h1><pre><code class="JSON">'; echo print_r($out, TRUE); echo '</code></pre>' . footer();
<?php require_once 'html.php'; require_once 'settings.php'; require_once '../src/Attendly.php'; $api = new Attendly(API_USER, API_KEY); // Get the groups $out = $api->group_list(); echo head(); echo '<h1>Group list</h1><pre><code class="JSON">'; echo print_r($out, TRUE); echo '</code></pre>' . footer();
<?php require_once 'html.php'; require_once 'settings.php'; require_once '../src/Attendly.php'; $api = new Attendly(API_USER, API_KEY); // To work out which group to get, get a list of all the groups and then get the // first one. $all = $api->group_list('active'); // Get the group ID $groupId = $all['Result'][0]['ID']; // Get the group $out = $api->group_get($groupId); echo head(); echo '<h1>Group get</h1><pre><code class="JSON">'; echo print_r($out, TRUE); echo '</code></pre>' . footer();
<?php require_once 'html.php'; require_once 'settings.php'; require_once '../src/Attendly.php'; $api = new Attendly(API_USER, API_KEY); // To work out which event to get, get a list of all the events and then get the // first one. $all = $api->event_list('active'); // Get the event ID $eventId = $all['Result'][0]['ID']; // Get the event $event = $api->event_get($eventId); // Make a change to the event $event['Result']['Name'] = 'Edited event... ' . rand(1, 1000); // Update the event $out = $api->event_update($event['Result']); echo head(); echo '<h1>Event update <span class="label label-success">A 204 means success</span></h1><pre><code class="JSON">'; echo print_r($out, TRUE); echo '</code></pre>' . footer();
<?php require_once 'html.php'; require_once 'settings.php'; require_once '../src/Attendly.php'; $api = new Attendly(API_USER, API_KEY); // To work out which event to get, get a list of all the events and then get the // first one. $all = $api->event_list('active'); // Get the event ID $eventId = $all['Result'][0]['ID']; // Get the event $out = $api->event_get($eventId); echo head(); echo '<h1>Event get</h1><pre><code class="JSON">'; echo print_r($out, TRUE); echo '</code></pre>' . footer();
<?php require_once 'html.php'; require_once 'settings.php'; require_once '../src/Attendly.php'; $api = new Attendly(API_USER, API_KEY); // Get the events $out = $api->event_list('active'); echo head(); echo '<h1>Event list</h1><pre><code class="JSON">'; echo print_r($out, TRUE); echo '</code></pre>' . footer();