Skip to main content

python 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

Project details


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.45.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

eventbrite-0.45-py2.7.egg (11.8 kB view details)

Uploaded Source

File details

Details for the file eventbrite-0.45.tar.gz.

File metadata

  • Download URL: eventbrite-0.45.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for eventbrite-0.45.tar.gz
Algorithm Hash digest
SHA256 df7b5476ebbb85db2b43e17d4e231717e4c6cecd7348805897e156ac416f0d36
MD5 d4c4ad3beeab76bff3faca9c6db17f36
BLAKE2b-256 e958ba0e4863e2f8b6158e04adce5bbe4cfdceaa09ffa29c683aca0a2087473c

See more details on using hashes here.

File details

Details for the file eventbrite-0.45-py2.7.egg.

File metadata

File hashes

Hashes for eventbrite-0.45-py2.7.egg
Algorithm Hash digest
SHA256 82d14a4eac59dcb06871486106575a4df21dc86cb69f67db3f0b6f374fe3cfa0
MD5 8278f242f7f591b79c17a558bd3c27dd
BLAKE2b-256 65a3815aeaa16863b3ef703247bd4c137753b4452aa92ac92be4d4dac7e9123b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page