Skip to content

eventbrite-python is an API wrapper for Eventbrite, written in Python.

License

Notifications You must be signed in to change notification settings

hactar-is/eventbrite-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eventbrite-python

eventbrite-python is an API wrapper for Eventbrite, written in Python.
This library uses Oauth2 for authentication.

Installing

pip install eventbrite-python

Usage

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

  1. Build authorization URL
url = client.authorization_url(state="123456")
  1. Get access token
token = client.get_access_token(code)
  1. Set token
client.set_token(access_token)

Info

Get current user

me = client.get_current_user()

Get user organizations

organizations = client.get_user_organizations()

List categories

categories = client.list_categories()

List subcategories

subcategories = client.list_subcategories()

List formats

formats = client.list_formats()

List venues

venues = client.list_formats(organization_id)

List organizers

organizers = client.list_organizers(organization_id)

Events

List events

events = client.list_events(organization_id)

Get event

event = client.get_event(event_id)

Create event

event = client.create_event(organization_id, data)

Orders

Get order

order = client.get_order(order_id)

Webhooks

List webhooks

webhooks = client.list_webhooks(organization_id)

Create webhook

webhook = client.create_webhook(organization_id,  endpoint_url, actions, event_id="")

Delete webhook

deleted = client.delete_webhook(webhook_id)

About

eventbrite-python is an API wrapper for Eventbrite, written in Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%