foursquare2 1.9.6 → 1.9.7

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -5,7 +5,7 @@ source "http://rubygems.org"
5
5
 
6
6
  gem 'faraday', '~> 0.8'
7
7
  gem 'faraday_middleware', '>= 0.8'
8
- gem 'hashie', '~> 1.0'
8
+ gem 'hashie', '>= 1.0', '< 3.0.0'
9
9
 
10
10
 
11
11
 
data/Gemfile.lock CHANGED
@@ -8,7 +8,7 @@ GEM
8
8
  faraday_middleware (0.8.7)
9
9
  faraday (>= 0.7.4, < 0.9)
10
10
  git (1.2.5)
11
- hashie (1.1.0)
11
+ hashie (2.0.4)
12
12
  jeweler (1.6.4)
13
13
  bundler (~> 1.0)
14
14
  git (>= 1.2.5)
@@ -33,7 +33,7 @@ DEPENDENCIES
33
33
  fakeweb (~> 1.3)
34
34
  faraday (~> 0.8)
35
35
  faraday_middleware (>= 0.8)
36
- hashie (~> 1.0)
36
+ hashie (>= 1.0, < 3.0.0)
37
37
  jeweler (~> 1.5)
38
38
  jnunemaker-matchy (~> 0.4)
39
39
  json_pure (~> 1.4)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.9.6
1
+ 1.9.7
data/foursquare2.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "foursquare2"
8
- s.version = "1.9.6"
8
+ s.version = "1.9.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matt Mueller", "Marco Moura"]
12
- s.date = "2013-04-14"
12
+ s.date = "2013-04-28"
13
13
  s.description = "Gives access to all endpoints in version 2 of foursquare's API with syntax that will be familiar to those who used the original foursquare gem by Jeremy Welch."
14
14
  s.email = ["muellermr@gmail.com", "email@marcomoura.com"]
15
15
  s.extra_rdoc_files = [
@@ -89,11 +89,16 @@ Gem::Specification.new do |s|
89
89
  "test/fixtures/venues/suggest_completion_venues.json",
90
90
  "test/fixtures/venues/trending_venues.json",
91
91
  "test/fixtures/venues/venue.json",
92
+ "test/fixtures/venues/venue_events.json",
92
93
  "test/fixtures/venues/venue_herenow.json",
93
94
  "test/fixtures/venues/venue_hours.json",
95
+ "test/fixtures/venues/venue_likes.json",
94
96
  "test/fixtures/venues/venue_links.json",
97
+ "test/fixtures/venues/venue_listed.json",
95
98
  "test/fixtures/venues/venue_menus.json",
99
+ "test/fixtures/venues/venue_nextvenues.json",
96
100
  "test/fixtures/venues/venue_photos.json",
101
+ "test/fixtures/venues/venue_similar.json",
97
102
  "test/fixtures/venues/venue_stats.json",
98
103
  "test/fixtures/venues/venue_tips.json",
99
104
  "test/helper.rb",
@@ -122,7 +127,7 @@ Gem::Specification.new do |s|
122
127
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
123
128
  s.add_runtime_dependency(%q<faraday>, ["~> 0.8"])
124
129
  s.add_runtime_dependency(%q<faraday_middleware>, [">= 0.8"])
125
- s.add_runtime_dependency(%q<hashie>, ["~> 1.0"])
130
+ s.add_runtime_dependency(%q<hashie>, ["< 3.0.0", ">= 1.0"])
126
131
  s.add_development_dependency(%q<awesome_print>, [">= 0"])
127
132
  s.add_development_dependency(%q<shoulda>, [">= 0"])
128
133
  s.add_development_dependency(%q<bundler>, ["~> 1.0"])
@@ -135,7 +140,7 @@ Gem::Specification.new do |s|
135
140
  else
136
141
  s.add_dependency(%q<faraday>, ["~> 0.8"])
137
142
  s.add_dependency(%q<faraday_middleware>, [">= 0.8"])
138
- s.add_dependency(%q<hashie>, ["~> 1.0"])
143
+ s.add_dependency(%q<hashie>, ["< 3.0.0", ">= 1.0"])
139
144
  s.add_dependency(%q<awesome_print>, [">= 0"])
140
145
  s.add_dependency(%q<shoulda>, [">= 0"])
141
146
  s.add_dependency(%q<bundler>, ["~> 1.0"])
@@ -149,7 +154,7 @@ Gem::Specification.new do |s|
149
154
  else
150
155
  s.add_dependency(%q<faraday>, ["~> 0.8"])
151
156
  s.add_dependency(%q<faraday_middleware>, [">= 0.8"])
152
- s.add_dependency(%q<hashie>, ["~> 1.0"])
157
+ s.add_dependency(%q<hashie>, ["< 3.0.0", ">= 1.0"])
153
158
  s.add_dependency(%q<awesome_print>, [">= 0"])
154
159
  s.add_dependency(%q<shoulda>, [">= 0"])
155
160
  s.add_dependency(%q<bundler>, ["~> 1.0"])
@@ -255,5 +255,55 @@ module Foursquare2
255
255
  response = connection.get("venues/#{venue_id}/hours")
256
256
  return_error_or_body(response, response.body.response)
257
257
  end
258
+
259
+ # Get the events currently taking place at a venue.
260
+ #
261
+ # param [String] venue_id The ID of the venue
262
+
263
+ def venue_events(venue_id)
264
+ response = connection.get("venues/#{venue_id}/events")
265
+ return_error_or_body(response, response.body.response)
266
+ end
267
+
268
+ # Returns friends and a total count of users who have liked this venue.
269
+ #
270
+ # param [String] venue_id The ID of the venue to get likes for
271
+
272
+ def venue_likes(venue_id)
273
+ response = connection.get("venues/#{venue_id}/likes")
274
+ return_error_or_body(response, response.body.response)
275
+ end
276
+
277
+ # Returns the lists that this venue appears on.
278
+ #
279
+ # param [String] venue_id ID of a venue to get lists for.
280
+ # @option options String :group - can be created, edited, followed, friends, other. If no acting user is present, only other is supported.
281
+ # @option options Integer :limit - Number of results to return, up to 200.
282
+ # @option options Integer :offset - Used to page through results. Must specify a group
283
+
284
+ def venue_listed(venue_id, options={})
285
+ response = connection.get do |req|
286
+ req.url "venues/#{venue_id}/listed", options
287
+ end
288
+ return_error_or_body(response, response.body.response)
289
+ end
290
+
291
+ # Returns venues that people often check in to after the current venue. Up to 5 venues are returned in each query, and results are sorted by how many people have visited that venue after the current one. Homes are never returned in results.
292
+ #
293
+ # param [String] venue_id Required. ID of the venue you want to see next venue information about
294
+
295
+ def venue_nextvenues(venue_id)
296
+ response = connection.get("venues/#{venue_id}/nextvenues")
297
+ return_error_or_body(response, response.body.response)
298
+ end
299
+
300
+ # Returns a list of venues similar to the specified venue.
301
+ #
302
+ # param [String] venue_id The venue you want similar venues for.
303
+
304
+ def venue_similar(venue_id)
305
+ response = connection.get("venues/#{venue_id}/similar")
306
+ return_error_or_body(response, response.body.response)
307
+ end
258
308
  end
259
309
  end
@@ -0,0 +1 @@
1
+ {"meta":{"code":200},"response":{"events":{"count":17,"summary":"17 movies","items":[{"id":"5165cf79b71b3c3cb03e6c29","name":"Nautanki Saala!","foreignIds":{"count":1,"items":[{"domain":"fandango.com","id":"5826-163816"}]},"categories":[{"id":"4dfb90c6bd413dd705e8f897","name":"Movie","pluralName":"Movies","shortName":"Movie","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/arts_entertainment\/movietheater_","suffix":".png"},"primary":true}],"hereNow":{"count":0,"groups":[{"type":"friends","name":"Friends here","count":0,"items":[]},{"type":"others","name":"Other people here","count":0,"items":[]}]},"allDay":true,"date":1365998400,"timeZone":"America\/New_York","stats":{"checkinsCount":3,"usersCount":3},"url":"https:\/\/foursquare.com\/events\/movies?theater=AAORE&movie=163816&wired=true"},{"id":"515de6265dd78775eb8855b0","name":"The Place Beyond the Pines","foreignIds":{"count":1,"items":[{"domain":"fandango.com","id":"5826-157403"}]},"categories":[{"id":"4dfb90c6bd413dd705e8f897","name":"Movie","pluralName":"Movies","shortName":"Movie","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/arts_entertainment\/movietheater_","suffix":".png"},"primary":true}],"hereNow":{"count":0,"groups":[{"type":"friends","name":"Friends here","count":0,"items":[]},{"type":"others","name":"Other people here","count":0,"items":[]}]},"allDay":true,"date":1365998400,"timeZone":"America\/New_York","stats":{"checkinsCount":78,"usersCount":78},"url":"https:\/\/foursquare.com\/events\/movies?theater=AAORE&movie=157403&wired=true"},{"id":"511e9f38d9cea7c0531c4b1a","name":"Jack the Giant Slayer","foreignIds":{"count":1,"items":[{"domain":"fandango.com","id":"5826-136672"}]},"categories":[{"id":"4dfb90c6bd413dd705e8f897","name":"Movie","pluralName":"Movies","shortName":"Movie","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/arts_entertainment\/movietheater_","suffix":".png"},"primary":true}],"hereNow":{"count":0,"groups":[{"type":"friends","name":"Friends here","count":0,"items":[]},{"type":"others","name":"Other people here","count":0,"items":[]}]},"allDay":true,"date":1365998400,"timeZone":"America\/New_York","stats":{"checkinsCount":61,"usersCount":61},"url":"https:\/\/foursquare.com\/events\/movies?theater=AAORE&movie=136672&wired=true"},{"id":"511e9f39d9cea7c0531c4b1d","name":"Jack the Giant Slayer 3D","foreignIds":{"count":1,"items":[{"domain":"fandango.com","id":"5826-136671"}]},"categories":[{"id":"4dfb90c6bd413dd705e8f897","name":"Movie","pluralName":"Movies","shortName":"Movie","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/arts_entertainment\/movietheater_","suffix":".png"},"primary":true}],"hereNow":{"count":0,"groups":[{"type":"friends","name":"Friends here","count":0,"items":[]},{"type":"others","name":"Other people here","count":0,"items":[]}]},"allDay":true,"date":1365998400,"timeZone":"America\/New_York","stats":{"checkinsCount":34,"usersCount":34},"url":"https:\/\/foursquare.com\/events\/movies?theater=AAORE&movie=136671&wired=true"},{"id":"5127db8d3d7cea9fe4cbb3b3","name":"Oz The Great and Powerful","foreignIds":{"count":1,"items":[{"domain":"fandango.com","id":"5826-145401"}]},"categories":[{"id":"4dfb90c6bd413dd705e8f897","name":"Movie","pluralName":"Movies","shortName":"Movie","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/arts_entertainment\/movietheater_","suffix":".png"},"primary":true}],"hereNow":{"count":0,"groups":[{"type":"friends","name":"Friends here","count":0,"items":[]},{"type":"others","name":"Other people here","count":0,"items":[]}]},"allDay":true,"date":1365998400,"timeZone":"America\/New_York","stats":{"checkinsCount":243,"usersCount":242},"url":"https:\/\/foursquare.com\/events\/movies?theater=AAORE&movie=145401&wired=true"},{"id":"513655daf0e4b3abad7697ab","name":"Oz The Great and Powerful An IMAX 3D Experience","foreignIds":{"count":1,"items":[{"domain":"fandango.com","id":"5826-160950"}]},"categories":[{"id":"4dfb90c6bd413dd705e8f897","name":"Movie","pluralName":"Movies","shortName":"Movie","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/arts_entertainment\/movietheater_","suffix":".png"},"primary":true}],"hereNow":{"count":0,"groups":[{"type":"friends","name":"Friends here","count":0,"items":[]},{"type":"others","name":"Other people here","count":0,"items":[]}]},"allDay":true,"date":1365998400,"timeZone":"America\/New_York","stats":{"checkinsCount":163,"usersCount":162},"url":"https:\/\/foursquare.com\/events\/movies?theater=AAORE&movie=160950&wired=true"},{"id":"5137a769f0e456ec87172372","name":"Oz The Great and Powerful 3D","foreignIds":{"count":1,"items":[{"domain":"fandango.com","id":"5826-155763"}]},"categories":[{"id":"4dfb90c6bd413dd705e8f897","name":"Movie","pluralName":"Movies","shortName":"Movie","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/arts_entertainment\/movietheater_","suffix":".png"},"primary":true}],"hereNow":{"count":0,"groups":[{"type":"friends","name":"Friends here","count":0,"items":[]},{"type":"others","name":"Other people here","count":0,"items":[]}]},"allDay":true,"date":1365998400,"timeZone":"America\/New_York","stats":{"checkinsCount":140,"usersCount":139},"url":"https:\/\/foursquare.com\/events\/movies?theater=AAORE&movie=155763&wired=true"},{"id":"5140e4314c7ff3e87ffee63c","name":"Spring Breakers","foreignIds":{"count":1,"items":[{"domain":"fandango.com","id":"5826-161842"}]},"categories":[{"id":"4dfb90c6bd413dd705e8f897","name":"Movie","pluralName":"Movies","shortName":"Movie","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/arts_entertainment\/movietheater_","suffix":".png"},"primary":true}],"hereNow":{"count":0,"groups":[{"type":"friends","name":"Friends here","count":0,"items":[]},{"type":"others","name":"Other people here","count":0,"items":[]}]},"allDay":true,"date":1365998400,"timeZone":"America\/New_York","stats":{"checkinsCount":256,"usersCount":253},"url":"https:\/\/foursquare.com\/events\/movies?theater=AAORE&movie=161842&wired=true"},{"id":"5140e4304c7ff3e87ffee639","name":"Admission","foreignIds":{"count":1,"items":[{"domain":"fandango.com","id":"5826-159264"}]},"categories":[{"id":"4dfb90c6bd413dd705e8f897","name":"Movie","pluralName":"Movies","shortName":"Movie","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/arts_entertainment\/movietheater_","suffix":".png"},"primary":true}],"hereNow":{"count":0,"groups":[{"type":"friends","name":"Friends here","count":0,"items":[]},{"type":"others","name":"Other people here","count":0,"items":[]}]},"allDay":true,"date":1365998400,"timeZone":"America\/New_York","stats":{"checkinsCount":83,"usersCount":83},"url":"https:\/\/foursquare.com\/events\/movies?theater=AAORE&movie=159264&wired=true"},{"id":"5140e4314c7ff3e87ffee63b","name":"Tyler Perry's Temptation","foreignIds":{"count":1,"items":[{"domain":"fandango.com","id":"5826-118831"}]},"categories":[{"id":"4dfb90c6bd413dd705e8f897","name":"Movie","pluralName":"Movies","shortName":"Movie","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/arts_entertainment\/movietheater_","suffix":".png"},"primary":true}],"hereNow":{"count":0,"groups":[{"type":"friends","name":"Friends here","count":0,"items":[]},{"type":"others","name":"Other people here","count":0,"items":[]}]},"allDay":true,"date":1365998400,"timeZone":"America\/New_York","stats":{"checkinsCount":92,"usersCount":92},"url":"https:\/\/foursquare.com\/events\/movies?theater=AAORE&movie=118831&wired=true"},{"id":"5155fb86f470a4e1f75f4771","name":"Evil Dead (2013)","foreignIds":{"count":1,"items":[{"domain":"fandango.com","id":"5826-155572"}]},"categories":[{"id":"4dfb90c6bd413dd705e8f897","name":"Movie","pluralName":"Movies","shortName":"Movie","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/arts_entertainment\/movietheater_","suffix":".png"},"primary":true}],"hereNow":{"count":0,"groups":[{"type":"friends","name":"Friends here","count":0,"items":[]},{"type":"others","name":"Other people here","count":0,"items":[]}]},"allDay":true,"date":1365998400,"timeZone":"America\/New_York","stats":{"checkinsCount":142,"usersCount":141},"url":"https:\/\/foursquare.com\/events\/movies?theater=AAORE&movie=155572&wired=true"},{"id":"513b9ed729af7f517004bbf8","name":"The Host (2013)","foreignIds":{"count":1,"items":[{"domain":"fandango.com","id":"5826-147092"}]},"categories":[{"id":"4dfb90c6bd413dd705e8f897","name":"Movie","pluralName":"Movies","shortName":"Movie","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/arts_entertainment\/movietheater_","suffix":".png"},"primary":true}],"hereNow":{"count":0,"groups":[{"type":"friends","name":"Friends here","count":0,"items":[]},{"type":"others","name":"Other people here","count":0,"items":[]}]},"allDay":true,"date":1365998400,"timeZone":"America\/New_York","stats":{"checkinsCount":45,"usersCount":45},"url":"https:\/\/foursquare.com\/events\/movies?theater=AAORE&movie=147092&wired=true"},{"id":"515de6245dd78775eb8855af","name":"Chashme Baddoor","foreignIds":{"count":1,"items":[{"domain":"fandango.com","id":"5826-163348"}]},"categories":[{"id":"4dfb90c6bd413dd705e8f897","name":"Movie","pluralName":"Movies","shortName":"Movie","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/arts_entertainment\/movietheater_","suffix":".png"},"primary":true}],"hereNow":{"count":0,"groups":[{"type":"friends","name":"Friends here","count":0,"items":[]},{"type":"others","name":"Other people here","count":0,"items":[]}]},"allDay":true,"date":1365998400,"timeZone":"America\/New_York","stats":{"checkinsCount":4,"usersCount":4},"url":"https:\/\/foursquare.com\/events\/movies?theater=AAORE&movie=163348&wired=true"},{"id":"5138fce6e5a7b43e7a00b048","name":"Free Angela and All Political Prisoners","foreignIds":{"count":1,"items":[{"domain":"fandango.com","id":"5826-162194"}]},"categories":[{"id":"4dfb90c6bd413dd705e8f897","name":"Movie","pluralName":"Movies","shortName":"Movie","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/arts_entertainment\/movietheater_","suffix":".png"},"primary":true}],"hereNow":{"count":0,"groups":[{"type":"friends","name":"Friends here","count":0,"items":[]},{"type":"others","name":"Other people here","count":0,"items":[]}]},"allDay":true,"date":1365998400,"timeZone":"America\/New_York","stats":{"checkinsCount":17,"usersCount":17},"url":"https:\/\/foursquare.com\/events\/movies?theater=AAORE&movie=162194&wired=true"},{"id":"514a1dac222f6b90e614fd6f","name":"Olympus Has Fallen","foreignIds":{"count":1,"items":[{"domain":"fandango.com","id":"5826-160225"}]},"categories":[{"id":"4dfb90c6bd413dd705e8f897","name":"Movie","pluralName":"Movies","shortName":"Movie","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/arts_entertainment\/movietheater_","suffix":".png"},"primary":true}],"hereNow":{"count":0,"groups":[{"type":"friends","name":"Friends here","count":0,"items":[]},{"type":"others","name":"Other people here","count":0,"items":[]}]},"allDay":true,"date":1365998400,"timeZone":"America\/New_York","stats":{"checkinsCount":203,"usersCount":201},"url":"https:\/\/foursquare.com\/events\/movies?theater=AAORE&movie=160225&wired=true"},{"id":"5165cf7db71b3c3cb03e6c2a","name":"Trance","foreignIds":{"count":1,"items":[{"domain":"fandango.com","id":"5826-162596"}]},"categories":[{"id":"4dfb90c6bd413dd705e8f897","name":"Movie","pluralName":"Movies","shortName":"Movie","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/arts_entertainment\/movietheater_","suffix":".png"},"primary":true}],"hereNow":{"count":0,"groups":[{"type":"friends","name":"Friends here","count":0,"items":[]},{"type":"others","name":"Other people here","count":0,"items":[]}]},"allDay":true,"date":1365998400,"timeZone":"America\/New_York","stats":{"checkinsCount":17,"usersCount":17},"url":"https:\/\/foursquare.com\/events\/movies?theater=AAORE&movie=162596&wired=true"},{"id":"5165cf7db71b3c3cb03e6c2b","name":"Fists of Legend (2013)","foreignIds":{"count":1,"items":[{"domain":"fandango.com","id":"5826-163671"}]},"categories":[{"id":"4dfb90c6bd413dd705e8f897","name":"Movie","pluralName":"Movies","shortName":"Movie","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/arts_entertainment\/movietheater_","suffix":".png"},"primary":true}],"hereNow":{"count":0,"groups":[{"type":"friends","name":"Friends here","count":0,"items":[]},{"type":"others","name":"Other people here","count":0,"items":[]}]},"allDay":true,"date":1365998400,"timeZone":"America\/New_York","stats":{"checkinsCount":5,"usersCount":5},"url":"https:\/\/foursquare.com\/events\/movies?theater=AAORE&movie=163671&wired=true"}]}}}
@@ -0,0 +1 @@
1
+ {"meta":{"code":200},"notifications":[{"type":"notificationTray","item":{"unreadCount":0}}],"response":{"likes":{"count":140,"groups":[{"type":"others","count":140,"items":[{"id":"53698158","firstName":"Angela","lastName":"C.","gender":"female","photo":{"prefix":"https:\/\/irs2.4sqi.net\/img\/user\/","suffix":"\/V0XJMI3EFZGWWCW4.jpg"}},{"id":"51635538","firstName":"Jed","lastName":"D.","gender":"male","photo":{"prefix":"https:\/\/irs3.4sqi.net\/img\/user\/","suffix":"\/QWWFY5T1QTDLV0D1.jpg"}},{"id":"37416093","firstName":"Brent","lastName":"B.","gender":"male","photo":{"prefix":"https:\/\/irs1.4sqi.net\/img\/user\/","suffix":"\/5CAOCV3XFYYVY23L.jpg"}}]}],"summary":"140 likes"},"like":false}}
@@ -0,0 +1 @@
1
+ {"meta":{"code":200},"notifications":[{"type":"notificationTray","item":{"unreadCount":0}}],"response":{"lists":{"count":4,"items":[{"id":"4e5b95beb61c4aaa3e182d8d","name":"A brief history of foursquare","description":"Foursquare (and it's predecessor, dodgeball.com) were designed and built in downtown NYC. Here's a walking tour of where a lot of the ideas came from.","type":"others","user":{"id":"32","firstName":"Dens","gender":"male","relationship":"pendingThem","photo":{"prefix":"https:\/\/irs0.4sqi.net\/img\/user\/","suffix":"\/32_1239135232.jpg"}},"editable":false,"public":true,"collaborative":false,"url":"https:\/\/foursquare.com\/dens\/list\/a-brief-history-of-foursquare","canonicalUrl":"https:\/\/foursquare.com\/dens\/list\/a-brief-history-of-foursquare","createdAt":1314624958,"updatedAt":1314799608,"photo":{"id":"4d3213d8c7e92da171098d8f","createdAt":1295127512,"prefix":"https:\/\/irs3.4sqi.net\/img\/general\/","suffix":"\/SGZUTVKSRTXNYTBHP0SN1SDSAMWH21CPQGEBWOURHYLDOGYE.jpg","width":540,"height":720,"user":{"id":"32","firstName":"Dens","gender":"male","relationship":"pendingThem","photo":{"prefix":"https:\/\/irs0.4sqi.net\/img\/user\/","suffix":"\/32_1239135232.jpg"}},"visibility":"public"},"followers":{"count":1126},"listItems":{"count":14,"items":[{"id":"t4e5b969ab61c4aaa3e183989","createdAt":1314624958,"tip":{"id":"4e5b969ab61c4aaa3e183989","createdAt":1314625178,"text":"Naveen and I built half of the original foursquare prototype here (pre-SXSW 2009). This was before I was drinking coffee, so I was downing like 5 hot a day here (someone's gotta pay for that wifi!)","canonicalUrl":"https:\/\/foursquare.com\/item\/4e5b969ab61c4aaa3e183989","likes":{"count":74,"groups":[{"type":"others","count":74,"items":[]}],"summary":"74 likes"},"like":false,"logView":true,"todo":{"count":9},"user":{"id":"32","firstName":"Dens","gender":"male","relationship":"pendingThem","photo":{"prefix":"https:\/\/irs0.4sqi.net\/img\/user\/","suffix":"\/32_1239135232.jpg"}},"list":{"id":"4e5b95beb61c4aaa3e182d8d","name":"A brief history of foursquare","description":"Foursquare (and it's predecessor, dodgeball.com) were designed and built in downtown NYC. Here's a walking tour of where a lot of the ideas came from.","user":{"id":"32","firstName":"Dens","gender":"male","relationship":"pendingThem","photo":{"prefix":"https:\/\/irs0.4sqi.net\/img\/user\/","suffix":"\/32_1239135232.jpg"}},"editable":false,"public":true,"collaborative":false,"url":"https:\/\/foursquare.com\/dens\/list\/a-brief-history-of-foursquare","canonicalUrl":"https:\/\/foursquare.com\/dens\/list\/a-brief-history-of-foursquare","createdAt":1314624958,"updatedAt":1314799608,"photo":{"id":"4d3213d8c7e92da171098d8f","createdAt":1295127512,"prefix":"https:\/\/irs3.4sqi.net\/img\/general\/","suffix":"\/SGZUTVKSRTXNYTBHP0SN1SDSAMWH21CPQGEBWOURHYLDOGYE.jpg","width":540,"height":720,"user":{"id":"32","firstName":"Dens","gender":"male","relationship":"pendingThem","photo":{"prefix":"https:\/\/irs0.4sqi.net\/img\/user\/","suffix":"\/32_1239135232.jpg"}},"visibility":"public"},"followers":{"count":1126},"listItems":{"count":14}}},"photo":{"id":"4d3213d8c7e92da171098d8f","createdAt":1295127512,"prefix":"https:\/\/irs3.4sqi.net\/img\/general\/","suffix":"\/SGZUTVKSRTXNYTBHP0SN1SDSAMWH21CPQGEBWOURHYLDOGYE.jpg","width":540,"height":720,"user":{"id":"32","firstName":"Dens","gender":"male","relationship":"pendingThem","photo":{"prefix":"https:\/\/irs0.4sqi.net\/img\/user\/","suffix":"\/32_1239135232.jpg"}},"visibility":"public"}}]}},{"id":"4e417e5db61cdcbed3606088","name":"Hipster Coffee Shop Explosion","description":"fingerless gloves, skinny jeans, drinks you've never heard of, know-it-all baristas and tomato sandwiches ... go these places to feel a little bit more cool \/ hipster chic.","type":"others","user":{"id":"18246","firstName":"Tristan","gender":"male","photo":{"prefix":"https:\/\/irs2.4sqi.net\/img\/user\/","suffix":"\/MALQVONNSAO0BL5Q.png"},"type":"celebrity"},"editable":false,"public":true,"collaborative":true,"url":"https:\/\/foursquare.com\/tristanwalker\/list\/hipster-coffee-shop-explosion","canonicalUrl":"https:\/\/foursquare.com\/tristanwalker\/list\/hipster-coffee-shop-explosion","createdAt":1312915037,"updatedAt":1312948863,"photo":{"id":"4d581841cd6fa3402242d4b7","createdAt":1297619009,"prefix":"https:\/\/irs3.4sqi.net\/img\/general\/","suffix":"\/AS0KGOCJLDBP10ZWOONBK5T4HEBXOLVLMWWYVC1WGGEK3JRZ.jpg","width":540,"height":709,"user":{"id":"61252","firstName":"Austin","lastName":"H.","gender":"male","photo":{"prefix":"https:\/\/irs3.4sqi.net\/img\/user\/","suffix":"\/32X4PFZ5VXPZ3NPK.jpg"}},"visibility":"public"},"followers":{"count":473},"listItems":{"count":18,"items":[{"id":"t4e0c8148b61c3274de7b3816","user":{"id":"31666","firstName":"Tim","lastName":"J.","gender":"male","photo":{"prefix":"https:\/\/irs2.4sqi.net\/img\/user\/","suffix":"\/NNN0TJJR4IQM2MFA.jpg"},"tips":{"count":47},"lists":{"groups":[{"type":"created","count":15,"items":[]}]},"homeCity":"New York, NY","bio":"","contact":{"twitter":"timjulien","facebook":"577709179"}},"createdAt":1312915037,"tip":{"id":"4e0c8148b61c3274de7b3816","createdAt":1309442376,"text":"Pro Tip: Iced Cortado in the summahtime","canonicalUrl":"https:\/\/foursquare.com\/item\/4e0c8148b61c3274de7b3816","likes":{"count":13,"groups":[{"type":"others","count":13,"items":[]}],"summary":"13 likes"},"like":false,"logView":true,"todo":{"count":9},"user":{"id":"31666","firstName":"Tim","lastName":"J.","gender":"male","photo":{"prefix":"https:\/\/irs2.4sqi.net\/img\/user\/","suffix":"\/NNN0TJJR4IQM2MFA.jpg"}}},"photo":{"id":"4dd67074fd2867d899293d7e","createdAt":1305899124,"prefix":"https:\/\/irs0.4sqi.net\/img\/general\/","suffix":"\/RJTQAH4BZD41U1JXMVZJOOGBPP5U2EWTGKEO2SDDFQOUTQ3T.jpg","width":720,"height":537,"user":{"id":"31666","firstName":"Tim","lastName":"J.","gender":"male","photo":{"prefix":"https:\/\/irs2.4sqi.net\/img\/user\/","suffix":"\/NNN0TJJR4IQM2MFA.jpg"}},"visibility":"public"}}]}},{"id":"5002dcdae4b0004dbeb53994","name":"NYC Top Winebars","description":"Winespoke's top wine bars in New York City","type":"others","user":{"id":"32541469","firstName":"Winespoke","gender":"none","photo":{"prefix":"https:\/\/irs2.4sqi.net\/img\/user\/","suffix":"\/PXAQRRKN4JFRY0VM.jpg"},"type":"page"},"editable":false,"public":true,"collaborative":false,"url":"https:\/\/foursquare.com\/winespoke\/list\/nyc-top-winebars","canonicalUrl":"https:\/\/foursquare.com\/winespoke\/list\/nyc-top-winebars","createdAt":1342364890,"updatedAt":1357405370,"photo":{"id":"4f6d0cdbe4b0725b60d17d3c","createdAt":1332546779,"prefix":"https:\/\/irs2.4sqi.net\/img\/general\/","suffix":"\/NOuGIneUWHGCHoLjHWVRCx1P59k_bwa4VJvkKPAc2V8.jpg","width":540,"height":720,"user":{"id":"19603","firstName":"jon","lastName":"a.","gender":"male","photo":{"prefix":"https:\/\/irs0.4sqi.net\/img\/user\/","suffix":"\/4a5b467e6ba24.jpg"},"type":"celebrity"},"visibility":"public"},"followers":{"count":176},"listItems":{"count":136,"items":[{"id":"v4989af90f964a5207f521fe3","createdAt":1342365658}]}},{"id":"50a1d222e4b04e11e7c37878","name":"NYC: Best Manhattan Cafes for Working","description":"It's a rare coffee shop, even in NYC, that offers great coffee\/tea, good treats, strong wifi and plugs. Sometimes we'll forgo good coffee for atmosphere, food or some other combination of criteria.","type":"others","user":{"id":"19176134","firstName":"Project Latte: a NYC cafe culture guide","gender":"none","photo":{"prefix":"https:\/\/irs0.4sqi.net\/img\/user\/","suffix":"\/042U5FJNSPBLIG1U.png"},"type":"page"},"editable":false,"public":true,"collaborative":false,"url":"https:\/\/foursquare.com\/projectlatte\/list\/nyc-best-manhattan-cafes-for-working","canonicalUrl":"https:\/\/foursquare.com\/projectlatte\/list\/nyc-best-manhattan-cafes-for-working","createdAt":1352782370,"updatedAt":1366294327,"photo":{"id":"50a327c7f2e7ce3e7a5e29d2","createdAt":1352869831,"prefix":"https:\/\/irs1.4sqi.net\/img\/general\/","suffix":"\/19176134_kmTNOScXJ4rUKTYLFCy_lGgDvVqgb6iyrUp2vh05hH8.jpg","width":640,"height":427,"user":{"id":"19176134","firstName":"Project Latte: a NYC cafe culture guide","gender":"none","photo":{"prefix":"https:\/\/irs0.4sqi.net\/img\/user\/","suffix":"\/042U5FJNSPBLIG1U.png"},"type":"page"},"visibility":"public"},"followers":{"count":133},"listItems":{"count":13,"items":[{"id":"t50a1dd9de4b0011934372887","createdAt":1352785096,"tip":{"id":"50a1dd9de4b0011934372887","createdAt":1352785309,"text":"Although they eradicated their cozy front living room area, this Ottoman Empire-influenced East Village cafe cum wine bar is still popular enough that it's hard to get a seat. Wifi, some plugs, wine.","url":"http:\/\/projectlatte.com\/cafe\/ost-cafe-east-village\/","canonicalUrl":"https:\/\/foursquare.com\/item\/50a1dd9de4b0011934372887","likes":{"count":0,"groups":[]},"like":false,"logView":true,"todo":{"count":0},"user":{"id":"19176134","firstName":"Project Latte: a NYC cafe culture guide","gender":"none","photo":{"prefix":"https:\/\/irs0.4sqi.net\/img\/user\/","suffix":"\/042U5FJNSPBLIG1U.png"},"type":"page"},"list":{"id":"50a1d222e4b04e11e7c37878","name":"NYC: Best Manhattan Cafes for Working","description":"It's a rare coffee shop, even in NYC, that offers great coffee\/tea, good treats, strong wifi and plugs. Sometimes we'll forgo good coffee for atmosphere, food or some other combination of criteria.","user":{"id":"19176134","firstName":"Project Latte: a NYC cafe culture guide","gender":"none","photo":{"prefix":"https:\/\/irs0.4sqi.net\/img\/user\/","suffix":"\/042U5FJNSPBLIG1U.png"},"type":"page"},"editable":false,"public":true,"collaborative":false,"url":"https:\/\/foursquare.com\/projectlatte\/list\/nyc-best-manhattan-cafes-for-working","canonicalUrl":"https:\/\/foursquare.com\/projectlatte\/list\/nyc-best-manhattan-cafes-for-working","createdAt":1352782370,"updatedAt":1366294327,"photo":{"id":"50a327c7f2e7ce3e7a5e29d2","createdAt":1352869831,"prefix":"https:\/\/irs1.4sqi.net\/img\/general\/","suffix":"\/19176134_kmTNOScXJ4rUKTYLFCy_lGgDvVqgb6iyrUp2vh05hH8.jpg","width":640,"height":427,"user":{"id":"19176134","firstName":"Project Latte: a NYC cafe culture guide","gender":"none","photo":{"prefix":"https:\/\/irs0.4sqi.net\/img\/user\/","suffix":"\/042U5FJNSPBLIG1U.png"},"type":"page"},"visibility":"public"},"followers":{"count":133},"listItems":{"count":13}}},"photo":{"id":"50a30f41f2e7ce3e7a5ca53d","createdAt":1352863553,"prefix":"https:\/\/irs2.4sqi.net\/img\/general\/","suffix":"\/19176134_R5xWPufPdDDswLVrO967VwGXBKzy1IucjNh5Csit_rk.jpg","width":240,"height":160,"user":{"id":"19176134","firstName":"Project Latte: a NYC cafe culture guide","gender":"none","photo":{"prefix":"https:\/\/irs0.4sqi.net\/img\/user\/","suffix":"\/042U5FJNSPBLIG1U.png"},"type":"page"},"visibility":"public"}}]}}]}}}
@@ -0,0 +1 @@
1
+ {"meta":{"code":200},"notifications":[{"type":"notificationTray","item":{"unreadCount":0}}],"response":{"nextVenues":{"count":5,"items":[{"id":"4b06a391f964a5200aee22e3","name":"Rippy's Bar & Grill","contact":{"phone":"6152447477","formattedPhone":"(615) 244-7477"},"location":{"address":"429 Broadway","crossStreet":"at 5th Ave.","lat":36.16042578761674,"lng":-86.778238150795,"postalCode":"37203","city":"Nashville","state":"TN","country":"United States","cc":"US"},"canonicalUrl":"https:\/\/foursquare.com\/v\/rippys-bar--grill\/4b06a391f964a5200aee22e3","categories":[{"id":"4bf58dd8d48988d1df931735","name":"BBQ Joint","pluralName":"BBQ Joints","shortName":"BBQ","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/food\/bbq_","suffix":".png"},"primary":true}],"verified":true,"stats":{"checkinsCount":10597,"usersCount":7381,"tipCount":73},"url":"http:\/\/www.rippysbarandgrill.com","venuePage":{"id":"45469692"}},{"id":"4b93ee94f964a520be5a34e3","name":"Patrón Platinum Club","contact":{"phone":"6157702477","formattedPhone":"(615) 770-2477"},"location":{"address":"501 Broadway","crossStreet":"On Executive Club Level","lat":36.15918404671207,"lng":-86.77720758816363,"postalCode":"37203","city":"Nashville","state":"TN","country":"United States","cc":"US"},"canonicalUrl":"https:\/\/foursquare.com\/v\/patr%C3%B3n-platinum-club\/4b93ee94f964a520be5a34e3","categories":[{"id":"4bf58dd8d48988d11e941735","name":"Cocktail Bar","pluralName":"Cocktail Bars","shortName":"Cocktail","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/nightlife\/cocktails_","suffix":".png"},"primary":true}],"verified":false,"stats":{"checkinsCount":1859,"usersCount":598,"tipCount":5}},{"id":"4b18040af964a52082cb23e3","name":"Broadway Brewhouse","contact":{"phone":"6152712838","formattedPhone":"(615) 271-2838"},"location":{"address":"317 Broadway","crossStreet":"Btw 3rd & 4th Ave. S","lat":36.161091327667236,"lng":-86.7764,"postalCode":"37201","city":"Nashville","state":"TN","country":"United States","cc":"US"},"canonicalUrl":"https:\/\/foursquare.com\/v\/broadway-brewhouse\/4b18040af964a52082cb23e3","categories":[{"id":"50327c8591d4c4b30a586d5d","name":"Brewery","pluralName":"Breweries","shortName":"Brewery","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/food\/brewery_","suffix":".png"},"primary":true}],"verified":false,"stats":{"checkinsCount":8186,"usersCount":4942,"tipCount":48},"url":"http:\/\/broadwaybrewhouse.net","menu":{"type":"foodAndBeverage","url":"https:\/\/foursquare.com\/v\/broadway-brewhouse\/4b18040af964a52082cb23e3\/menu","mobileUrl":"https:\/\/foursquare.com\/v\/4b18040af964a52082cb23e3\/device_menu"}},{"id":"4c350e1616adc928b23bc69c","name":"Margaritaville","contact":{"phone":"6152089080","formattedPhone":"(615) 208-9080","twitter":"mv_restaurants"},"location":{"address":"322 Broadway","crossStreet":"at 4th Ave N","lat":36.16106,"lng":-86.77707,"postalCode":"37201","city":"Nashville","state":"TN","country":"United States","cc":"US"},"canonicalUrl":"https:\/\/foursquare.com\/v\/margaritaville\/4c350e1616adc928b23bc69c","categories":[{"id":"4bf58dd8d48988d14e941735","name":"American Restaurant","pluralName":"American Restaurants","shortName":"American","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/food\/default_","suffix":".png"},"primary":true}],"verified":true,"stats":{"checkinsCount":7594,"usersCount":5930,"tipCount":61},"url":"http:\/\/www.margaritavillenashville.com","menu":{"type":"foodAndBeverage","url":"https:\/\/foursquare.com\/v\/margaritaville\/4c350e1616adc928b23bc69c\/menu","mobileUrl":"https:\/\/foursquare.com\/v\/4c350e1616adc928b23bc69c\/device_menu"}},{"id":"4b05866af964a5203d6122e3","name":"Country Music Hall of Fame and Museum","contact":{"phone":"6154162001","formattedPhone":"(615) 416-2001","twitter":"countrymusichof"},"location":{"address":"222 5th Ave S","crossStreet":"at Demonbreun St","lat":36.15841582005708,"lng":-86.7763602733612,"postalCode":"37203","city":"Nashville","state":"TN","country":"United States","cc":"US"},"canonicalUrl":"https:\/\/foursquare.com\/v\/country-music-hall-of-fame-and-museum\/4b05866af964a5203d6122e3","categories":[{"id":"4bf58dd8d48988d12d941735","name":"Monument \/ Landmark","pluralName":"Monuments \/ Landmarks","shortName":"Landmark","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/building\/government_monument_","suffix":".png"},"primary":true}],"verified":true,"stats":{"checkinsCount":7693,"usersCount":6344,"tipCount":34},"url":"http:\/\/countrymusichalloffame.org"}]}}}
@@ -0,0 +1 @@
1
+ {"meta":{"code":200},"notifications":[{"type":"notificationTray","item":{"unreadCount":1}}],"response":{"similarVenues":{"count":5,"items":[{"id":"4b61cec9f964a52023242ae3","name":"Triple Shot World Atlas Cafe","contact":{"phone":"2125390966","formattedPhone":"(212) 539-0966"},"location":{"address":"37 Clinton St.","crossStreet":"Btw Rivington & Stanton St.","lat":40.720012,"lng":-73.98451536,"postalCode":"10002","city":"New York","state":"NY","country":"United States","cc":"US"},"canonicalUrl":"https:\/\/foursquare.com\/v\/triple-shot-world-atlas-cafe\/4b61cec9f964a52023242ae3","categories":[{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/food\/coffeeshop_","suffix":".png"},"primary":true}],"verified":true,"stats":{"checkinsCount":3267,"usersCount":1111,"tipCount":42}},{"id":"4aa9386ef964a5208b5220e3","name":"The Breslin Bar & Dining Room","contact":{"phone":"2126791939","formattedPhone":"(212) 679-1939","twitter":"thebreslin"},"location":{"address":"16 W 29th St","crossStreet":"btwn Broadway & 5th Ave","lat":40.74583734577147,"lng":-73.98799265354255,"postalCode":"10016","city":"New York","state":"NY","country":"United States","cc":"US"},"canonicalUrl":"https:\/\/foursquare.com\/v\/the-breslin-bar--dining-room\/4aa9386ef964a5208b5220e3","categories":[{"id":"4bf58dd8d48988d14e941735","name":"American Restaurant","pluralName":"American Restaurants","shortName":"American","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/food\/default_","suffix":".png"},"primary":true}],"verified":true,"stats":{"checkinsCount":23589,"usersCount":15030,"tipCount":373},"url":"http:\/\/www.thebreslin.com","menu":{"type":"foodAndBeverage","url":"https:\/\/foursquare.com\/v\/the-breslin-bar--dining-room\/4aa9386ef964a5208b5220e3\/menu","mobileUrl":"https:\/\/foursquare.com\/v\/4aa9386ef964a5208b5220e3\/device_menu"}},{"id":"4d406a44de17a0932403f86b","name":"Pause Cafe","contact":{"phone":"2126775415","formattedPhone":"(212) 677-5415","twitter":"pausecafenyc"},"location":{"address":"3 Clinton St","crossStreet":"Btwn E Houston St & Stanton St","lat":40.7212077,"lng":-73.9840915,"postalCode":"10002","city":"New York","state":"NY","country":"United States","cc":"US"},"canonicalUrl":"https:\/\/foursquare.com\/v\/pause-cafe\/4d406a44de17a0932403f86b","categories":[{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/food\/coffeeshop_","suffix":".png"},"primary":true}],"verified":true,"stats":{"checkinsCount":2107,"usersCount":685,"tipCount":29}},{"id":"4657db7ef964a5200f471fe3","name":"Cocoa Bar","contact":{},"location":{"address":"21 Clinton St","crossStreet":"at Houston","lat":40.720623,"lng":-73.984246,"postalCode":"10002","city":"New York","state":"NY","country":"United States","cc":"US"},"canonicalUrl":"https:\/\/foursquare.com\/v\/cocoa-bar\/4657db7ef964a5200f471fe3","categories":[{"id":"4bf58dd8d48988d16d941735","name":"Café","pluralName":"Cafés","shortName":"Café","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/food\/cafe_","suffix":".png"},"primary":true}],"verified":true,"stats":{"checkinsCount":3029,"usersCount":1342,"tipCount":36},"venuePage":{"id":"51687006"}},{"id":"3fd66200f964a520b8ea1ee3","name":"Veselka","contact":{"phone":"2122289682","formattedPhone":"(212) 228-9682","twitter":"veselkanyc"},"location":{"address":"144 2nd Ave.","crossStreet":"at E 9th St.","lat":40.729136234409154,"lng":-73.9869715129134,"postalCode":"10003","city":"New York","state":"NY","country":"United States","cc":"US"},"canonicalUrl":"https:\/\/foursquare.com\/v\/veselka\/3fd66200f964a520b8ea1ee3","categories":[{"id":"4bf58dd8d48988d109941735","name":"Eastern European Restaurant","pluralName":"Eastern European Restaurants","shortName":"Eastern European","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories_v2\/food\/default_","suffix":".png"},"primary":true}],"verified":false,"stats":{"checkinsCount":25067,"usersCount":14193,"tipCount":303},"url":"http:\/\/www.veselka.com","menu":{"type":"foodAndBeverage","url":"https:\/\/foursquare.com\/v\/veselka\/3fd66200f964a520b8ea1ee3\/menu","mobileUrl":"https:\/\/foursquare.com\/v\/3fd66200f964a520b8ea1ee3\/device_menu"}}]}}}
data/test/test_venues.rb CHANGED
@@ -138,6 +138,41 @@ class TestVenues < Test::Unit::TestCase
138
138
  response.hours.timeframes.first.days.should == [1, 2, 3, 4, 5, 6]
139
139
  end
140
140
 
141
+ should "get events from a venue" do
142
+ stub_get("https://api.foursquare.com/v2/venues/40afe980f964a5203bf31ee3/events?oauth_token=#{@client.oauth_token}", "venues/venue_events.json")
143
+ response = @client.venue_events('40afe980f964a5203bf31ee3')
144
+ response.events.items.first.name.should == 'Nautanki Saala!'
145
+ response.events.items.size == response.events.count
146
+ end
147
+
148
+ should "get likes for a venue" do
149
+ stub_get("https://api.foursquare.com/v2/venues/4b8c3d87f964a520f7c532e3/likes?oauth_token=#{@client.oauth_token}", "venues/venue_likes.json")
150
+ response = @client.venue_likes('4b8c3d87f964a520f7c532e3')
151
+ response.likes.groups.first.items.first.id.should == '53698158'
152
+ response.likes.count == 140
153
+ end
154
+
155
+ should "get lists for a venue" do
156
+ stub_get("https://api.foursquare.com/v2/venues/4989af90f964a5207f521fe3/listed?oauth_token=#{@client.oauth_token}&group=other&limit=4&offset=0", "venues/venue_listed.json")
157
+ response = @client.venue_listed('4989af90f964a5207f521fe3', { :group => 'other', :limit => 4, :offset => 0})
158
+ response.lists.items.first.id == '4e5b95beb61c4aaa3e182d8d'
159
+ response.lists.count == 4
160
+ end
161
+
162
+ should "get next venues for a venue" do
163
+ stub_get("https://api.foursquare.com/v2/venues/4b8c3d87f964a520f7c532e3/nextvenues?oauth_token=#{@client.oauth_token}", "venues/venue_nextvenues.json")
164
+ response = @client.venue_nextvenues('4b8c3d87f964a520f7c532e3')
165
+ response.nextVenues.items.first.id.should == '4b06a391f964a5200aee22e3'
166
+ response.nextVenues.count == 5
167
+ end
168
+
169
+ should "get similar venues for a venue" do
170
+ stub_get("https://api.foursquare.com/v2/venues/40a55d80f964a52020f31ee3/similar?oauth_token=#{@client.oauth_token}", "venues/venue_similar.json")
171
+ response = @client.venue_similar('40a55d80f964a52020f31ee3')
172
+ response.similarVenues.items.first.id.should == '4b61cec9f964a52023242ae3'
173
+ response.similarVenues.count == 5
174
+ end
175
+
141
176
  context "and getting detailed stats for a venue not managed by user" do
142
177
  should "raise a 'not authorized' API error" do
143
178
  stub_get("https://api.foursquare.com/v2/venues/4ad4c04af964a52065f220e3/stats?oauth_token=#{@client.oauth_token}", nil,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foursquare2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.6
4
+ version: 1.9.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-04-14 00:00:00.000000000 Z
13
+ date: 2013-04-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday
@@ -49,7 +49,10 @@ dependencies:
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
- - - ~>
52
+ - - <
53
+ - !ruby/object:Gem::Version
54
+ version: 3.0.0
55
+ - - ! '>='
53
56
  - !ruby/object:Gem::Version
54
57
  version: '1.0'
55
58
  type: :runtime
@@ -57,7 +60,10 @@ dependencies:
57
60
  version_requirements: !ruby/object:Gem::Requirement
58
61
  none: false
59
62
  requirements:
60
- - - ~>
63
+ - - <
64
+ - !ruby/object:Gem::Version
65
+ version: 3.0.0
66
+ - - ! '>='
61
67
  - !ruby/object:Gem::Version
62
68
  version: '1.0'
63
69
  - !ruby/object:Gem::Dependency
@@ -293,11 +299,16 @@ files:
293
299
  - test/fixtures/venues/suggest_completion_venues.json
294
300
  - test/fixtures/venues/trending_venues.json
295
301
  - test/fixtures/venues/venue.json
302
+ - test/fixtures/venues/venue_events.json
296
303
  - test/fixtures/venues/venue_herenow.json
297
304
  - test/fixtures/venues/venue_hours.json
305
+ - test/fixtures/venues/venue_likes.json
298
306
  - test/fixtures/venues/venue_links.json
307
+ - test/fixtures/venues/venue_listed.json
299
308
  - test/fixtures/venues/venue_menus.json
309
+ - test/fixtures/venues/venue_nextvenues.json
300
310
  - test/fixtures/venues/venue_photos.json
311
+ - test/fixtures/venues/venue_similar.json
301
312
  - test/fixtures/venues/venue_stats.json
302
313
  - test/fixtures/venues/venue_tips.json
303
314
  - test/helper.rb
@@ -328,7 +339,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
328
339
  version: '0'
329
340
  segments:
330
341
  - 0
331
- hash: -43746040217970609
342
+ hash: -1700740064228482287
332
343
  required_rubygems_version: !ruby/object:Gem::Requirement
333
344
  none: false
334
345
  requirements: