Created
March 8, 2011 23:06
-
-
Save TRMW/861310 to your computer and use it in GitHub Desktop.
ioda_api.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
url: 'http://api.ioda.fm/v1/album', | |
dataType: 'jsonp', | |
data: { /* params to IODA api */ | |
format: 'jsonp', | |
app_key: '%KEY%', | |
id: 100048 | |
}, | |
success: function(data) { | |
var album_data = data.album; | |
$.each( album_data.retailer, function(i, retailer) { | |
$('<li>').append( | |
$('<a>', { | |
href: retailer.buylink.uri, | |
text: retailer.name | |
}) | |
).appendTo('body'); | |
} ); | |
}, | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
url: 'http://api.ioda.fm/v1/album', | |
dataType: 'jsonp', | |
data: { /* params to IODA api */ | |
format:'jsonp', | |
app_key:%KEY%, | |
id:100048 | |
}, | |
success: function(data){ | |
console.log(data); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Josh made these.