Class: Foursquare::Photo
Instance Method Summary collapse
Methods inherited from Node
#initialize, #perform_graph_request
Constructor Details
This class inherits a constructor from Foursquare::Node
Instance Method Details
#add(params = {}, file = "") ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/foursquare_photo.rb', line 3 def add(params={}, file="") require 'rest_client' params = {:checkinId => "", :tipId => "", :venueId => "", :broadcast => "", :ll => "", :llAcc => "", :alt => "", :altAcc => "", :file => File.new(file)} RestClient.post('https://api.foursquare.com/v2/photos/add', params) end |