Last active
August 29, 2015 14:13
-
-
Save framingeinstein/3be0c607dd53a3f977a3 to your computer and use it in GitHub Desktop.
Recent Feed Items using Google Feed API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
url : document.location.protocol + '//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=10&callback=?&q=' + encodeURIComponent("FEED_URL"), | |
dataType : 'json', | |
success : function (data) { | |
if (data.responseData.feed && data.responseData.feed.entries) { | |
$.each(data.responseData.feed.entries, function (i, e) { | |
console.log("------------------------"); | |
console.log("title : " + e.title); | |
console.log("author : " + e.author); | |
console.log("description: " + e.description); | |
console.log(e); | |
}); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment