Permalink
Browse files

checkin can take signature option.

  • Loading branch information...
1 parent 522fc7a commit 99cd6e16f0035ead1f884c3c0c7ee41350770891 Tomohiro Matsuyama committed Jan 19, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/foursquare2/checkins.rb
@@ -4,9 +4,13 @@ module Checkins
# Retrive information about a single checkin.
#
# @param [String] checkin_id the ID of the checkin.
+ # @param [Hash] options
+ # @option options String :signature - Signature allowing users to bypass the friends-only access check on checkins
- def checkin(checkin_id)
- response = connection.get("checkins/#{checkin_id}")
+ def checkin(checkin_id, options={})
+ response = connection.get do |req|
+ req.url "checkins/#{checkin_id}", options
+ end
return_error_or_body(response, response.body.response.checkin)
end

0 comments on commit 99cd6e1

Please sign in to comment.