Skip to content

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

@samtgarson

Description

@samtgarson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions