Permalink
Browse files

Merge pull request #14 from RobotsandRockets/master

follows and followed by now works
  • Loading branch information...
2 parents b5af373 + bbda807 commit 32dcb23f7104feae9c49810e5531be20f9d23cf8 @mckelvey committed Mar 29, 2013
Showing with 12 additions and 9 deletions.
  1. +2 −0 lib/class.instagram.oauth.js
  2. +4 −5 lib/class.instagram.users.coffee
  3. +6 −4 lib/class.instagram.users.js

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

Oops, something went wrong.
@@ -1,4 +1,3 @@
-
class InstagramUsers
constructor: (parent) ->
@parent = parent
@@ -41,22 +40,22 @@ class InstagramUsers
###
follows: (params) ->
- credentials = @parent._credentials {}, 'access_token'
+ credentials = @parent._credentials params, 'access_token'
params['path'] = "/#{@parent._api_version}/users/#{params['user_id']}/follows?#{@parent._to_querystring(credentials)}"
@parent._request params
followed_by: (params) ->
- credentials = @parent._credentials {}, 'access_token'
+ credentials = @parent._credentials params, 'access_token'
params['path'] = "/#{@parent._api_version}/users/#{params['user_id']}/followed-by?#{@parent._to_querystring(credentials)}"
@parent._request params
requested_by: (params) ->
- credentials = @parent._credentials {}, 'access_token'
+ credentials = @parent._credentials params, 'access_token'
params['path'] = "/#{@parent._api_version}/users/self/requested-by?#{@parent._to_querystring(credentials)}"
@parent._request params
relationship: (params) ->
- credentials = @parent._credentials {}, 'access_token'
+ credentials = @parent._credentials params, 'access_token'
if params['action']?
params['method'] = 'POST'
params['post_data'] =

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

Oops, something went wrong.

0 comments on commit 32dcb23

Please sign in to comment.