ryanj / eventbrite-client.rb Goto Github PK
View Code? Open in Web Editor NEWA tiny EventBrite API client for ruby
Home Page: http://eventbrite.github.com
License: MIT License
A tiny EventBrite API client for ruby
Home Page: http://eventbrite.github.com
License: MIT License
Added the following line to Gemfile
gem 'eventbrite'
but bundle install
failed with:
Bundler could not find compatible versions for gem "tzinfo":
In Gemfile:
eventbrite-client (>= 0) ruby depends on
tzinfo (~> 0.3.22) ruby
.
.
activesupport (>= 3.0.0) ruby depends on
tzinfo (1.2.2)
To make it work, I cloned this repo and changed required tzinfo version into >= 0.3.22 (instead of ~> 0.3.22)
What is the best solution?
I keep getting this error
eventbrite.rb:6:in `<main>': Please provide your Application Key in the URL as "?app_key=<APP_KEY>". (RuntimeError)
require 'eventbrite-client'
eb_auth_tokens = { 'app_key' => '<RETRACTED>',
'user_key'=> '<RETRACTED>'}
eb_client = EventbriteClient.new(eb_auth_tokens)
response = eb_client.event_get({'id' => '3350085195'})
puts response
ruby --version
ruby 1.9.2p320 (2012-04-20 revision 35421) [x86_64-darwin11.4.0]
When I run "response = client.user_list_events()" an error is thrown because Crack::JSON.parse can not parse string values like "2012-04-02 07:20:42" that have colons in them. To work around this, I first require the standard json gem and replace HTTParty's JSON parse method like this:
module HTTParty
class Parser
def json
# Replace Crack::JSON with JSON because Crack::JSON barfs on the JSON
# returned by Eventbrite (for example, values that are strings with
# colons in them such as datetimes like "2012-04-02 07:20:42").
JSON.parse(body)
end
end
end
I'm running Ruby 1.9.4, eventbrite-client 0.1.0, httparty 0.7.8, and crack 0.1.8.
I am trying to install eventbrite-client
.
I added this gem in Gemfile as gem 'eventbrite-client',:git => 'https://github.com/ryanjarvinen/eventbrite-client.rb'
.
But while trying to run bundle install
. Getting a below issue.
Bundler could not find compatible versions for gem "tzinfo":
In Gemfile:
eventbrite-client (>= 0) ruby depends on
tzinfo (~> 0.3.22) ruby
rails (= 4.1.0) ruby depends on
railties (= 4.1.0) ruby depends on
activesupport (= 4.1.0) ruby depends on
tzinfo (~> 1.1) ruby
I tried many solution to fix this issue like removing my gemfile.lock,bundle update,removing tzinfo and reinstalling, but unable to fix it.
I am using rails 4.1.0 version on ruby 2.0.0
Any help to resolve this issue would be appreciated.
Hi,
Would you consider merging this jlsync@70a9226 in?
Versions are very inconsistent.
VERSION says 0.1.0.
gemspec says 0.1.3.
rubygems has 0.1.4 listed.
I have submitted a PR to the eventbrite repo to update HTTParty, but I have no idea if the code there is the latest, because of this confusion. Who is maintaining this project now?
Hi,
require 'eventbrite-client'
eb_auth_tokens = { app_key: 'my-app-key',
user_key: 'my-user-key'}
eb_client = EventbriteClient.new(eb_auth_tokens)
response = eb_client.user_list_events()
I keep getting the following error.
/home/svaish3/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:203:in parse': (<unknown>): found unexpected ':' while scanning a plain scalar at line 1 column 547 (Psych::SyntaxError) from /home/svaish3/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:203:in
parse_stream'
from /home/svaish3/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:151:in parse' from /home/svaish3/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:127:in
load'
from /home/svaish3/.rvm/gems/ruby-1.9.3-p194/gems/crack-0.1.8/lib/crack/json.rb:12:in parse' from /home/svaish3/.rvm/gems/ruby-1.9.3-p194/gems/httparty-0.7.8/lib/httparty/parser.rb:116:in
json'
from /home/svaish3/.rvm/gems/ruby-1.9.3-p194/gems/httparty-0.7.8/lib/httparty/parser.rb:136:in parse_supported_format' from /home/svaish3/.rvm/gems/ruby-1.9.3-p194/gems/httparty-0.7.8/lib/httparty/parser.rb:103:in
parse'
from /home/svaish3/.rvm/gems/ruby-1.9.3-p194/gems/httparty-0.7.8/lib/httparty/parser.rb:66:in call' from /home/svaish3/.rvm/gems/ruby-1.9.3-p194/gems/httparty-0.7.8/lib/httparty/request.rb:217:in
parse_response'
from /home/svaish3/.rvm/gems/ruby-1.9.3-p194/gems/httparty-0.7.8/lib/httparty/request.rb:189:in handle_response' from /home/svaish3/.rvm/gems/ruby-1.9.3-p194/gems/httparty-0.7.8/lib/httparty/request.rb:71:in
perform'
from /home/svaish3/.rvm/gems/ruby-1.9.3-p194/gems/httparty-0.7.8/lib/httparty.rb:390:in perform_request' from /home/svaish3/.rvm/gems/ruby-1.9.3-p194/gems/httparty-0.7.8/lib/httparty.rb:342:in
get'
from /home/svaish3/.rvm/gems/ruby-1.9.3-p194/gems/eventbrite-client-0.1.0/lib/eventbrite-client.rb:34:in method_request' from /home/svaish3/.rvm/gems/ruby-1.9.3-p194/gems/eventbrite-client-0.1.0/lib/eventbrite-client.rb:42:in
method_missing'
from EventBriteScraper.rb:9:in `
This API client library targets an older (unavailable) version of Eventbrite's API.
See https://developer.eventbrite.com/ for updated API usage information regarding Eventbrite's new (current) "v3" APIs.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.