foursquare2 1.9.7 → 1.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Readme.md +1 -0
- data/VERSION +1 -1
- data/foursquare2.gemspec +2 -2
- data/lib/foursquare2/venues.rb +26 -1
- metadata +3 -3
data/Readme.md
CHANGED
|
@@ -120,6 +120,7 @@ See [the documentation](http://rubydoc.info/gems/foursquare2/frames) or [foursqu
|
|
|
120
120
|
client.mark_venue_todo
|
|
121
121
|
client.flag_venue
|
|
122
122
|
client.propose_venue_edit
|
|
123
|
+
client.edit_venue
|
|
123
124
|
client.managed_venues
|
|
124
125
|
client.managed_venue_stats
|
|
125
126
|
client.venues_timeseries
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.9.
|
|
1
|
+
1.9.8
|
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.
|
|
8
|
+
s.version = "1.9.8"
|
|
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-
|
|
12
|
+
s.date = "2013-11-09"
|
|
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 = [
|
data/lib/foursquare2/venues.rb
CHANGED
|
@@ -142,6 +142,31 @@ module Foursquare2
|
|
|
142
142
|
return_error_or_body(response, response.body.response)
|
|
143
143
|
end
|
|
144
144
|
|
|
145
|
+
# Make changes to a venue
|
|
146
|
+
# @param [String] venue_id - Venue id to edit, required. Acting user must be a venue manager or a superuser.
|
|
147
|
+
# @param [Hash] options
|
|
148
|
+
# @option options String :name
|
|
149
|
+
# @option options String :address
|
|
150
|
+
# @option options String :crossStreet
|
|
151
|
+
# @option options String :city
|
|
152
|
+
# @option options String :state
|
|
153
|
+
# @option options String :zip
|
|
154
|
+
# @option options String :phone
|
|
155
|
+
# @option options String :ll - Latitude and longitude in format LAT,LON
|
|
156
|
+
# @option options String :categoryId - The IDs of the category or categories to which you want to assign this venue (separate multiple IDs with commas).
|
|
157
|
+
# @option options String :twitter – Twitter handle of the name.
|
|
158
|
+
# @option options String :description – A free-form venue description, up to 300 characters.
|
|
159
|
+
# @option options String :url – The url of the homepage of the venue.
|
|
160
|
+
# @option options String :storeId – An identifier used by the manager of the venue to distinguish between venues of the same name. Only visible to managers.
|
|
161
|
+
# @option options String :hours – The hours for the venue, as a semi-colon separated list of open segments and named segments.
|
|
162
|
+
|
|
163
|
+
def edit_venue(venue_id, options={})
|
|
164
|
+
response = connection.post do |req|
|
|
165
|
+
req.url "venues/#{venue_id}/edit", options
|
|
166
|
+
end
|
|
167
|
+
return_error_or_body(response, response.body.response)
|
|
168
|
+
end
|
|
169
|
+
|
|
145
170
|
# Explore venues
|
|
146
171
|
#
|
|
147
172
|
# @param [Hash] options
|
|
@@ -155,7 +180,7 @@ module Foursquare2
|
|
|
155
180
|
# @option options Integer :limit - The limit of results to return.
|
|
156
181
|
# @option options String :intent - Limit results to venues with specials.
|
|
157
182
|
# @option options String :novelty - Pass new or old to limit results to places the acting user hasn't been or has been, respectively. Omitting this parameter returns a mixture.
|
|
158
|
-
|
|
183
|
+
# @option options String :venuePhotos - true to bring out the photos
|
|
159
184
|
def explore_venues(options={})
|
|
160
185
|
response = connection.get do |req|
|
|
161
186
|
req.url "venues/explore", options
|
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.
|
|
4
|
+
version: 1.9.8
|
|
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-
|
|
13
|
+
date: 2013-11-09 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: faraday
|
|
@@ -339,7 +339,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
339
339
|
version: '0'
|
|
340
340
|
segments:
|
|
341
341
|
- 0
|
|
342
|
-
hash:
|
|
342
|
+
hash: 1220568585856823028
|
|
343
343
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
344
344
|
none: false
|
|
345
345
|
requirements:
|