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

{ media_count: 13997048, name: 'blue' }... #17

Closed alexiskattan closed 11 years ago

alexiskattan commented 11 years ago

I am doing this search

Instagram.tags.search
    q: 'blue'
    complete: (data)->
       console.log data

This returns { media_count: 13997048, name: 'blue' }

But how do I go from the { media_count: 13997048, name: 'blue' } to the actual images?

mckelvey commented 11 years ago

Instagram.tags.search corresponds to searching for a tag when you are unsure of a matching tag existing, so you get back the matching tags, along with their media count or how often they’ve been applied to media.

Once you know that “blue” is a valid tag, you can then use Instagram.tags.recent to get the media that has most recently had the tag applied to them. Make sense?