mckelvey / instagram-node-lib

The Instagram Node Lib is a helper library for node that makes communicating with the Instagram API easy.
http://david.mckelveycreative.com/
Other
302 stars 49 forks source link

Deprecation warning with pagination #13

Open DanielSmedegaardBuus opened 11 years ago

DanielSmedegaardBuus commented 11 years ago

Hi :)

While testing this, I noticed that I get a deprecation warning returned in the pagination object, e.g.:

{ next_max_tag_id: '1363628109109',
  deprecation_warning: 'next_max_id and min_id are deprecated for this endpoint; use min_tag_id and max_tag_id instead',
  next_max_id: '1363628109109',
  next_min_id: '1363628110654',
  min_tag_id: '1363628110654',
  next_url: 'https://api.instagram.com/v1/tags/love/media/recent?name=love&client_id=<MYID>&max_tag_id=1363628109109' }

Just wanted to let you know ;)

songpr commented 10 years ago

I saw the warning too.

I this case no code change is required. Just pass min_tag_id, or max_tag_id into parameters not min_id or max_id

instagram.tags.recent({ name: tag, min_tag_id: minTagId, complete: function(data, page) { ... }, error: function(errorMsg, error, caller) { ... } });