Skip to content

How do i get tweets?

jpurcell edited this page Aug 3, 2011 · 1 revision
var tweets = BH.get_tweets();

Note you can send custom parameters and/or you can use a callback here too. So, for example:

BH.get_tweets("since_id=12345&count=20", function(e) {
    if (e!==false) {
        // failed to get tweets
    } else {
        // tweets retrieved, 'e' is now a javascript object of tweets
    }
});