Skip to main content

Official Eventbrite SDK for Python

Project description

https://badge.fury.io/py/eventbrite.png https://travis-ci.org/eventbrite/eventbrite-sdk-python.svg?branch=master https://pypip.in/d/eventbrite/badge.png

Official Eventbrite SDK for Python

Usage

The Eventbrite Python SDK makes it trivial to interact with the Eventbrite API:

>>> from eventbrite import Eventbrite
>>> eventbrite = Eventbrite('my-oauth-token')
>>> user = eventbrite.get_user()  # Not passing an argument returns yourself
>>> user['id']
1234567890
>>> user['name']
Daniel Roy Greenfeld

You can also specify API endpoints manually:

>>> user = eventbrite.get('/users/me')
>>> user['id']
1234567890
>>> user['name']
Daniel Roy Greenfeld

Usage with Frameworks

When using Flask, you can convert incoming webhook requests into Eventbrite API objects using the webhook_to_object() method:

@app.route('/webhook', methods=['POST'])
def webhook():


    # Use the API client to convert from a webhook to an API object
    api_object = eventbrite.webhook_to_object(request)

    # Process the API object
    if api_object.type == 'User':
        do_user_process(api_object)

    if api_object.type == 'Event':
        do_event_process(api_object)

    return ""

TODOS

Abstract the HTTP calls so they can work with all of the below:

  • requests

  • Google’s HTTP client

  • Tornado

Calling different HTTP libraries:

Eventbrite(OAUTH_TOKEN, "requests")
Eventbrite(OAUTH_TOKEN, "google")
Eventbrite(OAUTH_TOKEN, "tornado")

History

3.0.0-alpha{%d} (2014-12-04)

Alpha series for initial development

  • Inception

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

workthing-3.0.0.tar.gz (23.2 kB view details)

Uploaded Source

File details

Details for the file workthing-3.0.0.tar.gz.

File metadata

  • Download URL: workthing-3.0.0.tar.gz
  • Upload date:
  • Size: 23.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for workthing-3.0.0.tar.gz
Algorithm Hash digest
SHA256 b84e60cbe66b4e1d320775e50acaf25d84feb7a0633c1dc8ba94dd580e042c8a
MD5 4443eaa83d254e8c8601d9982a23443f
BLAKE2b-256 05d032847f5fc9c33a9fb001cc4195f337203fa851ff6d85bba133b45d14dead

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