Permalink
Browse files

Allow an access token to be passed when getting user info

  • Loading branch information...
schmitzc committed Feb 26, 2013
1 parent c3ccbd0 commit 503935f263060ced2f17cbab2ff0572da80292ca
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 503935f

Please sign in to comment.