The panel on the right pulls the last 20 public Twitter feeds and displays them.
What is interesting here is that we are using the REST API (not the streaming), and tell the FuzzyToast link to refresh the panel every 10 seconds (or so). This is one approach to keeping your onscreen data up-to-date without any changes to your backend API.
$.fuzzytoast({
destination: '#twitter-panel',
data: '/cgi-bin/twitter.cgi',
template: 'twitter-panel.html',
refresh: 10000
});
Note: I realize that this is obvious, but keep in mind that
your JavaScript calls can not go directly to
http://api.twitter.com
, but can only access the host
(and port) from whence they came.
In order to try this demo at home, I have a Node.js server that acts a proxy.