Knocked this one up earlier today to get my Songkick gig listings on this here blog. Maybe its just the novelty of having some gigs to go to and a bit of showing off that we’re running off to Germany for 11 days of mayhem and we’ve not learned how to speak the language yet.
1$(document).ready(function () { 2 3 var template = "<li><a href='{uri}'>{displayName}</a></li>"; 4 var apikey = '<your apikey>'; 5 var container = $("ul#concerts"); 6 7 $.getJSON('http://api.songkick.com/api/3.0/users/<your songkick username>/events.json?apikey=' + apikey + '&jsoncallback=?', function(data) { 8 container.html(""); 9 events = data["resultsPage"]["results"]['event']; 10 $.each(events.reverse(), function() { 11 container.append($.nano(template, this)); 12 }); 13 }); 14 15});