Say "Hello!"

  • This field is for validation purposes and should be left unchanged.

Get Latest Tweet


1
2
3
4
5
6
7
//change username 'ashleycam3ron' to your user
//change #twitter to the element you want to replace
<script>
$.getJSON("http://api.twitter.com/1/statuses/user_timeline/ashleycam3ron.json?count=1&include_rts=1&callback=?", function(data) {
     $("#twitter").html(data[0].text);
});
</script>

Back to Snippets Follow me on GitHub

Ashley Cameron logo
Blog