twitter api example
by Alex Azuero
HTML
<ul>loading...</ul>
JavaScript
var searchTerm = 'washington',
numOfTweets = 10,
$ul = $('ul'),
list='',
url = 'http://aamirafridi.com/twitter/?q=' + searchTerm + '&count=' + numOfTweets;
$.get(url, function (data) {
$.each(data.statuses, function () {
list += '<li>'+ this.text +'</li>';
});
$ul.html(list);
});