Permalink
Browse files

Merge pull request #59 from substantial/master

Allow access token to be passed when getting basic user information
  • Loading branch information...
2 parents 03ba5e7 + 503935f commit ebad844b7e3b32fcd5efaf8dfea189a868548e0b @shayne shayne committed Mar 4, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/instagram/client/users.rb
@@ -16,8 +16,9 @@ module Users
# @rate_limited true
# @see TODO:docs url
def user(*args)
+ options = args.last.is_a?(Hash) ? args.pop : {}
id = args.first || 'self'
- response = get("users/#{id}")
+ response = get("users/#{id}", options)
response
end

0 comments on commit ebad844

Please sign in to comment.