twitty.js

Created: 2012-03-23 11:27
Updated: 2015-05-12 03:33

README.mdown

Twitty - An Unsophisticated Twitter Timeline Client

© 2012 Jason Frame [ jason@onehackoranother.com / @jaz303 ]

This library is obsolete!

Oh well, it was good while it lasted; unforunately Twitter's latest round of API nerfing has broken twitty.js forever. The code will be preserved here for historical purposes only.

Overview

Very simple, no-frills method of accessing a user's timeline in the browser. For displaying "latest tweet" lists and the like.

No dependencies.

Try it out

var twitty = new Twitty();
twitty.getUserTimeline('jaz303', function(tweets) {
   for (var i = 0; i < tweets.length; i++) {
       
       var tweet = tweets[i];
       
       // Each tweet is a JSON object as returned by the standard Twitter JSON API.
       // The prototype is augmented with a few extra convenience methods:
       
       // Return tweet text with URLs and screen-names converted to hyperlinks:
       tweet.linkify();
       
       // Return the permalink to this tweet:
       tweet.permaLink();
       
       // Return Twitter intent links for the following actions:
       tweet.replyLink();
       tweet.retweetLink();
       tweet.favouriteLink();
       
       // Returns an English approximation of the relative time of this tweet:
       tweet.relativeTimeInWords();
       
   } 
});
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more