Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Added method to support next_url. #194

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lib/instagram/client/media.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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