diff --git a/lib/instagram/client/media.rb b/lib/instagram/client/media.rb index 5df2c622..a82782c7 100644 --- a/lib/instagram/client/media.rb +++ b/lib/instagram/client/media.rb @@ -77,6 +77,13 @@ def media_search(lat, lng, options={}) response = get('media/search', options.merge(:lat => lat, :lng => lng)) response end + + def next_url_medias(next_url) + response = Faraday.get(next_url) + response_hash = JSON.parse(response.body) + response_hashie = Hashie::Mash.new(response_hash) + Response.create(response_hashie, {}) + end end end end