instagram-node-lib icon indicating copy to clipboard operation
instagram-node-lib copied to clipboard

Some methods do not pass all params through to API

Open samtgarson opened this issue 10 years ago • 0 comments

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.

samtgarson avatar Jun 29 '15 10:06 samtgarson