Skip to content

Instantly share code, notes, and snippets.

@conraddecker
Created November 11, 2011 15:39
Show Gist options
  • Select an option

  • Save conraddecker/1358299 to your computer and use it in GitHub Desktop.

Select an option

Save conraddecker/1358299 to your computer and use it in GitHub Desktop.
Pinterest JS Pin Pull
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script>
function test(data){
var entries = data.responseData.feed.entries;
console.log(entries);
$.each(entries, function(key, entry){
$("#pins").append(
$("<li>").append(entry.content)
);
});
}
</script>
</head>
<body>
<div id="pins"></div>
<script src="http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=10&callback=test&q=http://pinterest.com/thoughtntheory/feed.rss"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment