-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathebtest.php
More file actions
47 lines (41 loc) · 1.2 KB
/
ebtest.php
File metadata and controls
47 lines (41 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
print("Hello World");
// 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' => 'Q7CJKJDPCRV6WRHAZK',
'user_key' => '134763887540851612272');
$eb_client = new Eventbrite( $authentication_tokens );
print("Hello World2");
// For more information about the features that are available through the Eventbrite API, see http://developer.eventbrite.com/doc/
$events = $eb_client->event_search($keywords="Test");
//mark-up the list of events that were requested
// render in html - ?>
<style type="text/css">
.eb_event_list_item{
padding-top: 20px;
}
.eb_event_list_title{
position: absolute;
left: 220px;
width: 300px;
overflow: hidden;
}
.eb_event_list_date{
padding-left: 20px;
}
.eb_event_list_time{
position: absolute;
left: 150px;
}
.eb_event_list_location{
position: absolute;
left: 520px;
}
</style>
<h1>My Event List:</h1>
<?= Eventbrite::eventList( $events, 'eventListRow'); ?>