https://github.com/eventbrite/eventbrite-client-py
Client for Eventbrite's HTTP-based API
https://github.com/eventbrite/eventbrite-client-py
Last synced: 3 months ago
JSON representation
Client for Eventbrite's HTTP-based API
- Host: GitHub
- URL: https://github.com/eventbrite/eventbrite-client-py
- Owner: eventbrite
- License: other
- Created: 2011-08-11T23:37:53.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2023-05-17T19:07:07.000Z (about 2 years ago)
- Last Synced: 2023-05-17T19:27:54.581Z (about 2 years ago)
- Language: Python
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 18
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
#eventbrite-client.py#
## This project has been deprecated
This project has been deprecate in favor of our newer version. Please begin using the [eventbrite-sdk-python](https://github.com/eventbrite/eventbrite-sdk-python) instead.
##Description##
A simple python-based http client for the Eventbrite APIFor the latest information on this project, take a look at:
* [This project's source code repo](http://github.com/eventbrite/eventbrite-client-py/)
* [The Eventbrite API documentation](http://developer.eventbrite.com/doc/)##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/keySet your user_key if you want to access private data - http://eventbrite.com/userkeyapi
eb_auth_tokens = {'app_key': 'YOUR_APP_KEY',
'user_key': 'YOUR_USER_KEY'}
eb_client = eventbrite.EventbriteClient(eb_auth_tokens)### Initializing the client with an OAuth2.0 access_token ###
eb_client = eventbrite.EventbriteClient({'access_code': 'YOUR_OAUTH2_ACCESS_TOKEN'})
###Calling API methods###
See [Eventbrite's API method documentation](http://developer.eventbrite.com/doc/) for more information about the list of available client methods.Here is an example using the API's [user_list_events](http://developer.eventbrite.com/doc/users/user_list_events/) method:
response = eb_client.user_list_events()
The [event_get](http://developer.eventbrite.com/doc/events/event_get/) API call should look like this:
response = eb_client.event_get({'id':1848891083})
### Widgets ###
Rendering an event in html as a [ticketWidget](http://www.eventbrite.com/t/how-to-use-ticket-widget) is easy:response = eb_client.event_get({'id':1848891083})
widget_html = eventbrite.EventbriteWidgets.ticketWidget(response['event'])##Resources##
* API Documentation -
* API QuickStart Guide -
* Eventbrite Open Source -
* Eventbrite App Showcase -
* 0.40 source -
* 0.3x source -
* 0.2x source -