From f002bec808c83d215d22494b5e54883f24e7ff3d Mon Sep 17 00:00:00 2001 From: stmu Date: Wed, 29 Jul 2015 16:07:35 +0200 Subject: [PATCH 1/2] Change a function call causing the sample application to behave unexpectedly Changed the API calls in the "user_media_feed" to make sure you actually get two pages worth of your media. Before, the second page showed picures of the "user_recent_media" instead of the feed. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3c18eaad..5ebc02c0 100644 --- a/README.md +++ b/README.md @@ -106,9 +106,9 @@ get "/user_media_feed" do user = client.user html = "

#{user.username}'s media feed

" - 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 << "

Page 1


" for media_item in page_1 html << "" From 0c441059458879ab276dbb62093796ebf50a5191 Mon Sep 17 00:00:00 2001 From: smu Date: Tue, 4 Aug 2015 12:26:33 +0200 Subject: [PATCH 2/2] Fixed typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3c18eaad..0ce2f9c0 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ get "/nav" do
  • Popular Media Calls media_popular - Get a list of the overall most popular media items
  • User Search Calls user_search - Search for users on instagram, by name or username
  • Location Search Calls location_search - Search for a location by lat/lng
  • -
  • Location Search - 4Square Calls location_search - Search for a location by Fousquare ID (v2)
  • +
  • Location Search - 4Square Calls location_search - Search for a location by Foursquare ID (v2)
  • TagsSearch for tags, view tag info and get media by tag
  • View Rate Limit and Remaining API callsView remaining and ratelimit info.