Official Eventbrite SDK for Python
Project description
Official Eventbrite SDK for Python
Free software: Apache 2 license
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 ""
History
3.0.0 (2014-01-28)
Initial release of 3.0.0 client
3.0.0-alpha (2014-12-05)
Inception
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
eventbrite-3.0.0.tar.gz
(24.5 kB
view details)
File details
Details for the file eventbrite-3.0.0.tar.gz
.
File metadata
- Download URL: eventbrite-3.0.0.tar.gz
- Upload date:
- Size: 24.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4630f26e2fed95be96ae06dd235f18f1f56921845ac67ab1b0d54d746fd9b103 |
|
MD5 | 5378d7c840faddcdaf094dd5764f7c5f |
|
BLAKE2b-256 | 8bf798b0c768fd6a1e6f4f2ecf6ffdbf97c58455fc9a9558af1ca890247bd174 |