Created
April 19, 2010 21:08
-
-
Save gerardpaapu/371633 to your computer and use it in GitHub Desktop.
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
Basic Usage | |
----------- | |
Twitter.View is a class that monitors any number of twitter timelines. | |
The option 'feeds' can take a string or an array of strings. | |
It understands a shorthand for users "@user", lists "@user/list", and everything else becomes a search. | |
This example will follow the user "sharkbrain", a list he owns called "my-friends" and search for any posts directed to him. | |
var sharkView = new Twitter.View({'feeds': ['@sharkbrain', '@sharkbrain/my-friends', 'to:sharkbrain']}); | |
`View`s, `Timeline`s and `Tweet`s all implement `toElement`, and therefore can be `grab`bed, `adopt`ed and `$`ed. | |
$('TwitterContainer').empty().grab(sharkView); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment