Permalink
Browse files

Pass access_token param to users.info and users.search.

  • Loading branch information...
1 parent f45a6db commit b706d9c3f745617337dcf1bc8657c45a0d9ce4ec Dave Brand committed Oct 17, 2012
Showing with 6 additions and 7 deletions.
  1. +3 −3 lib/class.instagram.users.coffee
  2. +3 −4 lib/class.instagram.users.js
@@ -8,12 +8,12 @@ class InstagramUsers
###
info: (params) ->
- credentials = @parent._credentials {}
- params['path'] = "/#{@parent._api_version}/users/#{params['user_id']}?#{@parent._to_querystring(credentials)}"
+ params = @parent._credentials params, 'access_token'
+ params['path'] = "/#{@parent._api_version}/users/#{params['user_id']}?#{@parent._to_querystring(params)}"
@parent._request params
search: (params) ->
- params = @parent._credentials params
+ params = @parent._credentials params, 'access_token'
params['path'] = "/#{@parent._api_version}/users/search?#{@parent._to_querystring(params)}"
@parent._request params

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit b706d9c

Please sign in to comment.