pyhton client for Eventbrite's HTTP-based API
Project description
#eventbrite-client.py#
##Description##
A simple python-based http client for the Eventbrite API
For the latest information on this project, take a look at:
* [This project's source code repo](http://github.com/eventbrite/eventbrite-client-py/)
* [The Eventbrite API documentation](http://developer.eventbrite.com/doc/)
##Usage Examples##
###Installation###
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+
####Installation using easy_install####
easy_install eventbrite
####Installation using pip####
pip install eventbrite
###Loading the Eventbrite API Client library code###
import eventbrite
###Initializing the client###
Your API / Application key is required to initialize the client - http://eventbrite.com/api/key
Set your user_key if you want to access private data - http://eventbrite.com/userkeyapi
eb_auth_tokens = {'app_key': 'N2EzOTZjY2RmNTQz',
'user_key': '130080046812762479921'}
eb_client = eventbrite.EventbriteClient(eb_auth_tokens)
###Calling API methods###
See [Eventbrite's API method documentation](http://developer.eventbrite.com/doc/) for more information about the list of available client methods.
Here is an example using the API's [user_list_events](http://developer.eventbrite.com/doc/users/user_list_events/) method:
response = eb_client.user_list_events()
The [event_get](http://developer.eventbrite.com/doc/events/event_get/) API call should look like this:
response = eb_client.event_get({'id':1848891083})
### Widgets ###
Rendering an event in html as a [ticketWidget](http://www.eventbrite.com/t/how-to-use-ticket-widget) is easy:
response = eb_client.event_get({'id':1848891083})
widget_html = eventbrite.EventbriteWidgets.ticketWidget(response['event'])
##Resources##
* API Documentation - <http://developer.eventbrite.com/doc/>
* API QuickStart Guide - <http://developer.eventbrite.com/doc/getting-started/>
* Eventbrite Open Source - <http://eventbrite.github.com/>
* Eventbrite App Showcase - <http://eventbrite.appstores.com/>
* 0.3.x source - <http://github.com/eventbrite/eventbrite-client-py/>
* 0.2.x source - <http://github.com/mtai/eventbrite/>
##Description##
A simple python-based http client for the Eventbrite API
For the latest information on this project, take a look at:
* [This project's source code repo](http://github.com/eventbrite/eventbrite-client-py/)
* [The Eventbrite API documentation](http://developer.eventbrite.com/doc/)
##Usage Examples##
###Installation###
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+
####Installation using easy_install####
easy_install eventbrite
####Installation using pip####
pip install eventbrite
###Loading the Eventbrite API Client library code###
import eventbrite
###Initializing the client###
Your API / Application key is required to initialize the client - http://eventbrite.com/api/key
Set your user_key if you want to access private data - http://eventbrite.com/userkeyapi
eb_auth_tokens = {'app_key': 'N2EzOTZjY2RmNTQz',
'user_key': '130080046812762479921'}
eb_client = eventbrite.EventbriteClient(eb_auth_tokens)
###Calling API methods###
See [Eventbrite's API method documentation](http://developer.eventbrite.com/doc/) for more information about the list of available client methods.
Here is an example using the API's [user_list_events](http://developer.eventbrite.com/doc/users/user_list_events/) method:
response = eb_client.user_list_events()
The [event_get](http://developer.eventbrite.com/doc/events/event_get/) API call should look like this:
response = eb_client.event_get({'id':1848891083})
### Widgets ###
Rendering an event in html as a [ticketWidget](http://www.eventbrite.com/t/how-to-use-ticket-widget) is easy:
response = eb_client.event_get({'id':1848891083})
widget_html = eventbrite.EventbriteWidgets.ticketWidget(response['event'])
##Resources##
* API Documentation - <http://developer.eventbrite.com/doc/>
* API QuickStart Guide - <http://developer.eventbrite.com/doc/getting-started/>
* Eventbrite Open Source - <http://eventbrite.github.com/>
* Eventbrite App Showcase - <http://eventbrite.appstores.com/>
* 0.3.x source - <http://github.com/eventbrite/eventbrite-client-py/>
* 0.2.x source - <http://github.com/mtai/eventbrite/>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
eventbrite-0.3.0.tar.gz
(5.7 kB
view details)
Built Distributions
eventbrite-0.3.0-py2.6.egg
(9.7 kB
view details)
File details
Details for the file eventbrite-0.3.0.tar.gz
.
File metadata
- Download URL: eventbrite-0.3.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54f3e6e930fa75a54929c73a0dee8ae6cc465020db53a8ff34c8482bf1e6d6c2 |
|
MD5 | 87d3b3b4ccf989aeea3a3f2292b47613 |
|
BLAKE2b-256 | 46f8ef96e8607e8e89e7fbdde87361b5c487878293043b1608e5e732ee6b0cfb |
File details
Details for the file eventbrite-0.3.0.linux-i686.tar.gz
.
File metadata
- Download URL: eventbrite-0.3.0.linux-i686.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff1c51cad964aeeb82d435284fc812586b357328ae6eb5ca041f95904fc8fc6d |
|
MD5 | 95f07539372421680f57bad3eac7540f |
|
BLAKE2b-256 | 73e14f1d965b5653ed6a80078e38cef715b292a357a72392f3de419ed7229e41 |
File details
Details for the file eventbrite-0.3.0-py2.6.egg
.
File metadata
- Download URL: eventbrite-0.3.0-py2.6.egg
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8569dbf08965821798d0a21a4cb7683e69a93fc82dadb1943b6b7f010e80d5b |
|
MD5 | 4c002712fbbf9f410641fcfc9ed71041 |
|
BLAKE2b-256 | b0f7cfcc6cf3ed30803b3f28223071e644cd385a63fdf30bc4cf1bf93d5215ad |