A tiny EventBrite API client for ruby
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 5 commits ahead, 12 commits behind ryanj:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.document
.gitignore
.yardopts
LICENSE
README.md
Rakefile
VERSION
eventbrite-client.gemspec

README.md

#eventbrite-client.rb#

##Description## A tiny ruby-based http client for the Eventbrite API

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

##Usage Examples##

###Installation via rubygems ###

gem install eventbrite-client

###Loading the Eventbrite API Client library code###

require 'eventbrite-client'

###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 = EventbriteClient.new(eb_auth_tokens)

###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 = EventbriteWidgets::ticketWidget(response['event'])

##Resources##