eventbrite-python is an API wrapper for Eventbrite, written in Python.
This library uses Oauth2 for authentication.
pip install eventbrite-python
# if you have an access token:
from eventbrite.client import Client
client = Client(access_token=access_token)
# Or if you are using Oauth2 to get an access_token:
from eventbrite.client import Client
client = Client(api_key, client_secret, redirect_uri)
To obtain and set an access token:
- Build authorization URL
url = client.authorization_url(state="123456")
- Get access token
token = client.get_access_token(code)
- Set token
client.set_token(access_token)
me = client.get_current_user()
organizations = client.get_user_organizations()
categories = client.list_categories()
subcategories = client.list_subcategories()
formats = client.list_formats()
venues = client.list_venues(organization_id)
organizers = client.list_organizers(organization_id)
events = client.list_events(organization_id)
event = client.get_event(event_id)
event = client.create_event(organization_id, data)
order = client.get_order(order_id)
webhooks = client.list_webhooks(organization_id)
webhook = client.create_webhook(organization_id, endpoint_url, actions, event_id="")
deleted = client.delete_webhook(webhook_id)