Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some methods do not pass all params through to API #38

Open
samtgarson opened this issue Jun 29, 2015 · 0 comments
Open

Some methods do not pass all params through to API #38

samtgarson opened this issue Jun 29, 2015 · 0 comments

Comments

@samtgarson
Copy link

Not all methods pass all the params to the query string.

For example, in users.follows:

InstagramUsers.prototype.follows = function(params) {
      var credentials;
      credentials = this.parent._credentials({}, 'access_token');
      params['path'] = "/" + this.parent._api_version + "/users/" + params['user_id'] + "/follows?" + (this.parent._to_querystring(credentials));
      return this.parent._request(params);
    };

The _credentials function does not get passed the params object as in other methods, but instead gets {}. This can be solved (I think!) replacing {} with params.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant