Coder Social home page Coder Social logo

ryanj / brite-banana-client.rb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from therabidbanana/eventbrite

3.0 4.0 0.0 563 KB

Library for interacting with Eventbrite (renamed from Eventbright)

Home Page: http://github.com/therabidbanana/eventbrite

License: MIT License

Ruby 82.58% JavaScript 17.42%

brite-banana-client.rb's Introduction

eventbrite

This gem is no longer actively maintained, though I do try to fix any reported bugs. For a more official gem, see: https://github.com/ryanjarvinen/eventbrite-client.rb

A simple library for integrating with EventBrite's API. Requires the "httparty" gem for connecting and doing XML parsing, and "tzinfo" gem for getting back and forth between timezone names and GMT offsets.

The gem was recently renamed from Eventbright - since that was a confusing name.

Usage

require 'eventbrite'
Eventbrite.setup("APP_KEY")
user = Eventbrite::User.new("USER_KEY") #=> <Eventbrite::User >
user.venues #=> [<Eventbrite::Venue>,...] # Venues the user has defined

Some basic (yardoc generated) documentation availabe at: http://therabidbanana.github.com/eventbrite/

This library attempts to create an almost ActiveResource like wrapper around the Eventbrite api. The following objects are available:

  • Attendee (can only be viewed, not edited)
  • Discount
  • Event (has many Tickets, Attendees, Discounts, has one Venue and one Organizer)
  • Organizer (has many Events)
  • Ticket
  • User (has many Events, Organizers, Venues)
  • Venue

Authentication

Many methods require user authentication. For these methods, you can pass a user object as an authentication token, and the user's api_key will automatically be used for the request.

Example:

Eventbrite::Event.new({"x" => "y"... , "user" => user})

Known Issues

  1. This library's testing coverage is almost zero.
  2. There is no subuser support.

A Note About App Keys

This gem has an application key for accessing EventBrite, but each app key is limited to 30,000 requests a day. To make sure your limits aren't affected by others, you should register for your own app key specific to the application you're adding the gem to.

If you just want to give the gem a whirl (you have to wait for approval to get your own) just don't call setup. The app key for the gem will be used.

Learn more about EventBrite's App Key policy here: Terms of Service

Register for your own app key here: Request a Key

API Gotchas

I've compiled a list of issues developers may encounter with the poorly designed Eventbrite API (in case you're writing your own integration from scratch in Ruby or any other language).

There are many places where variable names are misspelled, or format is changed, and many places where the API documentation is flat out wrong (dates are not ISO8601 anywhere in the eventbrite api, though they claim they are).

Read the details at: http://therabidbanana.github.com/eventbrite/file.ImplementationGotchas.html

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don't break it in a future version unintentionally.
  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.

Copyright

Copyright (c) 2010 David Haslem. See LICENSE for details.

brite-banana-client.rb's People

Contributors

kimsan1 avatar therabidbanana avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.