8000 GitHub - jaz303/twitty.js: An unsophisticated Twitter timeline client, for browsers (OBSOLETE)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jaz303/twitty.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

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();
       
   } 
});

About

An unsophisticated Twitter timeline client, for browsers (OBSOLETE)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0