eventbrite-client 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -16,7 +16,7 @@ For the latest information on this project, take a look at:
16
16
 
17
17
  ###Loading the Eventbrite API Client library code###
18
18
 
19
- require eventbrite-client
19
+ require 'eventbrite-client'
20
20
 
21
21
  ###Initializing the client###
22
22
  Your API / Application key is required to initialize the client - http://eventbrite.com/api/key
@@ -24,9 +24,14 @@ Your API / Application key is required to initialize the client - http://eventbr
24
24
  Set your user_key if you want to access private data - http://eventbrite.com/userkeyapi
25
25
 
26
26
  eb_auth_tokens = { app_key: 'YOUR_APP_KEY',
27
- user_key: 'YOU_USER_KEY'}
27
+ user_key: 'YOUR_USER_KEY'}
28
28
  eb_client = EventbriteClient.new(eb_auth_tokens)
29
29
 
30
+ ###Initializing the client using an OAuth2.0 access_token###
31
+ You can also initialize our API client using an OAuth2.0 `access_token`, like this:
32
+
33
+ eb_client = EventbriteClient.new({ access_token: 'YOUR_USER_ACCESS_TOKEN'})
34
+
30
35
  ###Calling API methods###
31
36
  See [Eventbrite's API method documentation](http://developer.eventbrite.com/doc/) for more information about the list of available client methods.
32
37
 
@@ -36,12 +41,12 @@ Here is an example using the API's [user_list_events](http://developer.eventbrit
36
41
 
37
42
  The [event_get](http://developer.eventbrite.com/doc/events/event_get/) API call should look like this:
38
43
 
39
- response = eb_client.event_get({id: 1848891083})
44
+ response = eb_client.event_get({ id: 1848891083})
40
45
 
41
46
  ### Widgets ###
42
47
  Rendering an event in html as a [ticketWidget](http://www.eventbrite.com/t/how-to-use-ticket-widget) is easy:
43
48
 
44
- response = eb_client.event_get({id: 1848891083})
49
+ response = eb_client.event_get({ id: 1848891083})
45
50
  widget_html = EventbriteWidgets::ticketWidget(response['event'])
46
51
 
47
52
  ##Resources##
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{eventbrite-client}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ryan Jarvinen"]
@@ -61,7 +61,7 @@ class EventbriteWidgets
61
61
  end
62
62
 
63
63
  def self.buttonWidget(evnt)
64
- "<a href='http://www.eventbrite.com/event/#{evnt['id']}?ref=ebtn' target='_blank'><img border='0' src='http://www.eventbrite.com/registerbutton?eid=#{evnt['id']}' alt='Register for #{evnt['title']} on Eventbrite' /></a>"
64
+ "<a href='http://www.eventbrite.com/event/#{evnt['id']}?ref=ebtn' target='_blank'><img border='0' src='http://www.eventbrite.com/custombutton?eid=#{evnt['id']}' alt='Register for #{evnt['title']} on Eventbrite' /></a>"
65
65
  end
66
66
 
67
67
  def self.linkWidget(evnt, text=nil, color='#000000')
metadata CHANGED
@@ -1,60 +1,72 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: eventbrite-client
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
4
5
  prerelease:
5
- version: 0.1.0
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Ryan Jarvinen
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-08-28 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2011-08-28 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: rspec
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
19
17
  none: false
20
- requirements:
18
+ requirements:
21
19
  - - ~>
22
- - !ruby/object:Gem::Version
20
+ - !ruby/object:Gem::Version
23
21
  version: 1.3.0
24
22
  type: :development
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
27
- name: httparty
28
23
  prerelease: false
29
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 1.3.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: httparty
32
+ requirement: !ruby/object:Gem::Requirement
30
33
  none: false
31
- requirements:
34
+ requirements:
32
35
  - - ~>
33
- - !ruby/object:Gem::Version
36
+ - !ruby/object:Gem::Version
34
37
  version: 0.7.0
35
38
  type: :runtime
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
38
- name: tzinfo
39
39
  prerelease: false
40
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
41
41
  none: false
42
- requirements:
42
+ requirements:
43
43
  - - ~>
44
- - !ruby/object:Gem::Version
44
+ - !ruby/object:Gem::Version
45
+ version: 0.7.0
46
+ - !ruby/object:Gem::Dependency
47
+ name: tzinfo
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
45
53
  version: 0.3.22
46
54
  type: :runtime
47
- version_requirements: *id003
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 0.3.22
48
62
  description: A tiny EventBrite API client. (http://developer.eventbrite.com)
49
63
  email: ryan.jarvinen@gmail.com
50
64
  executables: []
51
-
52
65
  extensions: []
53
-
54
- extra_rdoc_files:
66
+ extra_rdoc_files:
55
67
  - LICENSE
56
68
  - README.md
57
- files:
69
+ files:
58
70
  - .document
59
71
  - LICENSE
60
72
  - README.md
@@ -64,30 +76,26 @@ files:
64
76
  - lib/eventbrite-client.rb
65
77
  homepage: http://github.com/ryanjarvinen/eventbrite-client.rb
66
78
  licenses: []
67
-
68
79
  post_install_message:
69
80
  rdoc_options: []
70
-
71
- require_paths:
81
+ require_paths:
72
82
  - lib
73
- required_ruby_version: !ruby/object:Gem::Requirement
83
+ required_ruby_version: !ruby/object:Gem::Requirement
74
84
  none: false
75
- requirements:
76
- - - ">="
77
- - !ruby/object:Gem::Version
78
- version: "0"
79
- required_rubygems_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ! '>='
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ required_rubygems_version: !ruby/object:Gem::Requirement
80
90
  none: false
81
- requirements:
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- version: "0"
91
+ requirements:
92
+ - - ! '>='
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
85
95
  requirements: []
86
-
87
96
  rubyforge_project:
88
- rubygems_version: 1.8.10
97
+ rubygems_version: 1.8.24
89
98
  signing_key:
90
99
  specification_version: 3
91
100
  summary: A tiny EventBrite API client
92
101
  test_files: []
93
-