Git Product home page Git Product logo

eventbrite-client-py's Introduction

#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 instead.

##Description## A simple python-based http client for the Eventbrite API

For the latest information on this project, take a look at:

##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/key

Set 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 for more information about the list of available client methods.

Here is an example using the API's user_list_events method:

response = eb_client.user_list_events()

The event_get API call should look like this:

response = eb_client.event_get({'id':1848891083})

Widgets

Rendering an event in html as a ticketWidget is easy:

response = eb_client.event_get({'id':1848891083})
widget_html = eventbrite.EventbriteWidgets.ticketWidget(response['event'])

##Resources##

eventbrite-client-py's People

Contributors

ryanj avatar mtai avatar dcrosta avatar pydanny avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.