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

Change a function call causing sample application to behave unexp… #171

Open
wants to merge 3 commits 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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ get "/nav" do
<li><a href='/media_popular'>Popular Media</a> Calls media_popular - Get a list of the overall most popular media items</li>
<li><a href='/user_search'>User Search</a> Calls user_search - Search for users on instagram, by name or username</li>
<li><a href='/location_search'>Location Search</a> Calls location_search - Search for a location by lat/lng</li>
<li><a href='/location_search_4square'>Location Search - 4Square</a> Calls location_search - Search for a location by Fousquare ID (v2)</li>
<li><a href='/location_search_4square'>Location Search - 4Square</a> Calls location_search - Search for a location by Foursquare ID (v2)</li>
<li><a href='/tags'>Tags</a>Search for tags, view tag info and get media by tag</li>
<li><a href='/limits'>View Rate Limit and Remaining API calls</a>View remaining and ratelimit info.</li>
</ol>
Expand Down Expand Up @@ -106,9 +106,9 @@ get "/user_media_feed" do
user = client.user
html = "<h1>#{user.username}'s media feed</h1>"

page_1 = client.user_media_feed(777)
page_1 = client.user_media_feed()
page_2_max_id = page_1.pagination.next_max_id
page_2 = client.user_recent_media(777, :max_id => page_2_max_id ) unless page_2_max_id.nil?
page_2 = client.user_media_feed(:max_id => page_2_max_id ) unless page_2_max_id.nil?
html << "<h2>Page 1</h2><br/>"
for media_item in page_1
html << "<img src='#{media_item.images.thumbnail.url}'>"
Expand Down