pyhton client for Eventbrite's HTTP-based API
Project description
Description
A simple python-based http client for the Eventbrite API
For the latest information on this project, take a look at:
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/userkeyapii
eb_auth_tokens = {'app_key': 'YOUR_API_KEY', 'user_key': 'YOUR_USER_KEY'} eb_client = eventbrite.EventbriteClient(eb_auth_tokens)
Calling API methods
See Eventbrite’s API method documentation for more information about the list of available client methods.
Here is an example using the API’s user_list_events method:
response = eb_client.user_list_events()
The event_get API call should look like this:
response = eb_client.event_get({'id':1848891083})
Widgets
Rendering an event in html as a ticketWidget 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.40 source - http://github.com/eventbrite/eventbrite-client-py
0.3x source - http://github.com/eventbrite/eventbrite-client-py
0.2x 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
Built Distribution
File details
Details for the file eventbrite-0.44.tar.gz
.
File metadata
- Download URL: eventbrite-0.44.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6329b1de1d1d85e14ece7d579869b2cf1d5ab47b5ccde1b0368b9d3604f4a26b |
|
MD5 | 22f59568b4ccbf31916c426a4aca1df5 |
|
BLAKE2b-256 | a6e860a6643a886dfe7ac21a614d562693b050d098ef68d6f0a5e61bd7bc7819 |
File details
Details for the file eventbrite-0.44-py2.6.egg
.
File metadata
- Download URL: eventbrite-0.44-py2.6.egg
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f974e79f13f4ba9f55309496b19f6d7dd2f7a0bcfef2238e50b079e116e55300 |
|
MD5 | d8369d8487891962cc5b84deb74b9956 |
|
BLAKE2b-256 | 932d660ced3dd53f0dc6710e62096331619067811c8d7434590e5439e37da8cd |