Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 49 lines (33 sloc) 1.618 kb
d8d33a5 @ryanj updating readme, adding more usage instructions
ryanj authored
1 #eventbrite-client.py#
b612833 @mtai Initial release of v0.2.0-alpha
mtai authored
2
d8d33a5 @ryanj updating readme, adding more usage instructions
ryanj authored
3 ##Description##
6f8ee8e @ryanj updating README description
ryanj authored
4 A simple python-based http client for the Eventbrite API
5 For the latest information on this project, take a look at:
6 * [This project's source code repo](http://github.com/eventbrite/eventbrite-client-py/)
7 * [The Eventbrite API documentation](http://developer.eventbrite.com/doc/)
b612833 @mtai Initial release of v0.2.0-alpha
mtai authored
8
d8d33a5 @ryanj updating readme, adding more usage instructions
ryanj authored
9 ##Usage Examples##
501f65b @ryanj moving readme file
ryanj authored
10
d8d33a5 @ryanj updating readme, adding more usage instructions
ryanj authored
11 ###Installation###
b41e8ea @ryanj updating readme, adding more usage instructions
ryanj authored
12
b7d2204 @mtai Cleaning up the client before an official PyPi release
mtai authored
13 NOTE: This package requires a JSON library - by default we check for "simplejson" or use the built-in "json" library provided in python 2.6+
14
56b9c9e @ryanj updating usage instructions
ryanj authored
15 ####Installation using easy_install####
16
17 easy_install eventbrite
18
19 ####Installation using pip####
20
21 pip install eventbrite
22
97f6108 @ryanj updating usage instructions
ryanj authored
23 ###Loading the Eventbrite API Client###
56b9c9e @ryanj updating usage instructions
ryanj authored
24
25 import eventbrite
501f65b @ryanj moving readme file
ryanj authored
26
97f6108 @ryanj updating usage instructions
ryanj authored
27 ###Initializing the Client###
501f65b @ryanj moving readme file
ryanj authored
28
56b9c9e @ryanj updating usage instructions
ryanj authored
29 # Set your API / Application key - http://eventbrite.com/api/key
0358a5c @ryanj updating readme, adding more usage instructions
ryanj authored
30 app_key = 'YOUR_APP_KEY'
56b9c9e @ryanj updating usage instructions
ryanj authored
31 # Set your user_key - http://eventbrite.com/userkeyapi
0358a5c @ryanj updating readme, adding more usage instructions
ryanj authored
32 user_key = 'YOUR_USER_KEY'
56b9c9e @ryanj updating usage instructions
ryanj authored
33 # Initialize the API Client
0358a5c @ryanj updating readme, adding more usage instructions
ryanj authored
34 eb_client = eventbrite.EventbriteClient(app_key, user_key)
35
d8d33a5 @ryanj updating readme, adding more usage instructions
ryanj authored
36 ###Calling API methods###
0358a5c @ryanj updating readme, adding more usage instructions
ryanj authored
37
56b9c9e @ryanj updating usage instructions
ryanj authored
38 # try running dir(eb_client) to see the list of available methods
39 # Here is an example for calling the API's user_list_events method
0358a5c @ryanj updating readme, adding more usage instructions
ryanj authored
40 eb_client.list_user_events()
b612833 @mtai Initial release of v0.2.0-alpha
mtai authored
41
01f7f5b @ryanj prepping for the 0.3.0 release of the Eventbrite python API client
ryanj authored
42 ##Resources##
43 * API Documentation - <http://developer.eventbrite.com/doc/>
44 * API QuickStart Guide - <http://developer.eventbrite.com/doc/getting-started/>
45 * Eventbrite Open Source - <http://eventbrite.github.com/>
46 * Eventbrite App Showcase - <http://eventbrite.appstores.com/>
47 * 0.3.x source - <http://github.com/eventbrite/eventbrite-client-py/>
48 * 0.2.x source - <http://github.com/mtai/eventbrite/>
Something went wrong with that request. Please try again.