Get latest 3 tweets from twitter

Just blogging this for future reference. It’s useful to grab twitter status’s asynchronously. But does not provide any niceties like nice formatting of dates or hashtag links etc. On the flip side it does give you ultimate flexibility to play with the data as you will.

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript">
var url = 'http://api.twitter.com/1/statuses/user_timeline/daveheward.json?count=3&include_rts=1&callback=?';
$.ajax({
    url: url,
    dataType: 'json',
    async: false,
    success: function(json){
        $.each(json, function(index, value){
            //console.log(value);
            $("#twitter_update_list").append(value.text+'<br>');
        });
    }
});
</script>