Skip to content

Instantly share code, notes, and snippets.

@biilmann
Created April 23, 2011 03:51
Show Gist options
  • Save biilmann/938245 to your computer and use it in GitHub Desktop.
Save biilmann/938245 to your computer and use it in GitHub Desktop.
Twitter Timeline Extension for Webpop
<!DOCTYPE html>
<html>
<head>
<title>My Tweets</title>
</head>
<body>
<h1>My Tweets</h1>
<pop:twitter:timeline screen_name="webpop" wrap="ul" break="li">
<a href="http://twitter.com/#!/MadinSpain/status/<pop:id_str />"><pop:text /></a>
</pop:twitter:timeline>
</body>
</html>
var http = require('http');
exports.timeline = function(options) {
var url = "http://api.twitter.com/1/statuses/user_timeline.json?screen_name=" + options.screen_name;
return http.get(url);
};
@biilmann
Copy link
Author

This is a small example of an extension that will fetch the latest tweet from a public twitter timeline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment