<?php // load the API Client library include "../Eventbrite.php"; // Initialize the API client // Eventbrite API / Application key (REQUIRED) // http://www.eventbrite.com/api/key/ // Eventbrite user_key (OPTIONAL, only needed for reading/writing private user data) // http://www.eventbrite.com/userkeyapi $authentication_tokens = array('app_key' => 'YOUR_APP_KEY', 'user_key' => 'YOUR_USER_KEY'); $eb_client = new Eventbrite($authentication_tokens); try { // For more information about the functions that are available through the Eventbrite API, see http://developer.eventbrite.com/doc/ $attendees = $eb_client->event_list_attendees(array('id' => 'YOUR_EVENT_ID')); } catch (Exception $e) { // Be sure to plan for potential error cases // so that your application can respond appropriately //var_dump($e); $attendees = array(); } function attendee_to_html($attendee) { if ($attendee->first_name) { return "<div class='eb_attendee_list_item'>" . $attendee->first_name . ' ' . $attendee->last_name . "</div>\n"; } else { return ''; } } function sort_attendees_by_created_date($x, $y) { if ($x->attendee->created == $y->attendee->created) {