Sha256: f0129a80884997e4d0483978228bc40532d1ea304a9f1d8eee244bcaab71ee2c
Contents?: true
Size: 877 Bytes
Versions: 10
Compression:
Stored size: 877 Bytes
Contents
module Gowalla module Checkins # Fetch info for a checkin # # @param [Integer] id Checkin ID # @return [Hashie::Mash] checkin info def checkin_info(id) connection.get("/checkins/#{id}").body end # Check in at a spot # # @option details [Integer] :spot_id Spot ID # @option details [Float] :lat Latitude of spot # @option details [Float] :lng Longitude of spot # @option details [String] :comment Checkin comment # @option details [Boolean] :post_to_twitter Post Checkin to Twitter # @option details [Boolean] :post_to_facebook Post Checkin to Facebook def checkin(details={}) checkin_path = "/checkins" checkin_path += "/test" if Gowalla.test_mode? response = connection.post do |req| req.url checkin_path req.body = details end response.body end end end
Version data entries
10 entries across 10 versions & 1 rubygems