Created
April 23, 2011 03:51
-
-
Save biilmann/938245 to your computer and use it in GitHub Desktop.
Twitter Timeline Extension for Webpop
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
<!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> |
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
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); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a small example of an extension that will fetch the latest tweet from a public twitter timeline.