Skip to content

Instantly share code, notes, and snippets.

@r
Created May 9, 2010 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r/395101 to your computer and use it in GitHub Desktop.
Save r/395101 to your computer and use it in GitHub Desktop.
jQuery.twstreamer
.init()
.credentials(USERNAME, PASSWORD)
.connect(
function(tweet) {
// receive tweet
console.log(tweet);
},
'track', // api method (track, follow, etc.)
'twitter', // api query
'betastream.twitter.com' // the host to connect to (optional)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment