Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Allow an access token to be passed when getting user info
Browse files Browse the repository at this point in the history
  • Loading branch information
schmitzc committed Feb 26, 2013
1 parent c3ccbd0 commit 503935f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/instagram/client/users.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 503935f

Please sign in to comment.