Module: Instagram::Client::Media
- Included in:
- Instagram::Client
- Defined in:
- lib/instagram_api/client/media.rb
Overview
Methods for the Media API.
Instance Method Summary collapse
-
#media(id) ⇒ Hashie::Mash
Get information about a media object.
-
#media_search(options = {}) ⇒ Object
Search for media in a given area.
-
#popular_media ⇒ Hashie::Mash
Get a list of what media is most popular at the moment.
Instance Method Details
#media(id) ⇒ Hashie::Mash
Get information about a media object.
16 17 18 |
# File 'lib/instagram_api/client/media.rb', line 16 def media(id) get "/media/#{id}", auth_params end |
#media_search(options = {}) ⇒ Object
Search for media in a given area.
40 41 42 |
# File 'lib/instagram_api/client/media.rb', line 40 def media_search(={}) get '/media/search', auth_params.merge() end |
#popular_media ⇒ Hashie::Mash
Get a list of what media is most popular at the moment.
48 49 50 |
# File 'lib/instagram_api/client/media.rb', line 48 def popular_media get '/media/popular', auth_params end |