Module: Foursquared::Photos
- Included in:
- Client
- Defined in:
- lib/foursquared/photos.rb
Overview
photos module
Instance Method Summary collapse
-
#add_photo(options = {}) ⇒ Foursquared::Response::Photo
Add a new photo to a checkin, tip, venue, or page update in general.
-
#photo(photo_id) ⇒ Foursquared::Response::Photo
Return the photo with the given ID.
Instance Method Details
#add_photo(options = {}) ⇒ Foursquared::Response::Photo
Add a new photo to a checkin, tip, venue, or page update in general.
28 29 30 31 |
# File 'lib/foursquared/photos.rb', line 28 def add_photo ={} response = post("/photos/add", )["response"] @photo = Response::Photo.new(self, response["photo"]) end |
#photo(photo_id) ⇒ Foursquared::Response::Photo
Return the photo with the given ID
7 8 9 10 |
# File 'lib/foursquared/photos.rb', line 7 def photo photo_id response = get("/photos/#{photo_id}")["response"] @photo = Response::Photo.new(self, response["photo"]) end |