Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow an access token to be passed when getting user info

  • Loading branch information...
commit 503935f263060ced2f17cbab2ff0572da80292ca 1 parent c3ccbd0
@schmitzc schmitzc authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/instagram/client/users.rb
View
3  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
Please sign in to comment.
Something went wrong with that request. Please try again.