Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Client for Eventbrite's HTTP-based API
Python
branch: development

This branch is 21 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
eventbrite.egg-info
eventbrite
.gitignore
AUTHORS.txt
CHANGES.txt
LICENSE.txt
MANIFEST.in
README.md
setup.cfg
setup.py

README.md

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:

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 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

Something went wrong with that request. Please try again.