Skip to content

Instantly share code, notes, and snippets.

@TRMW
Created March 8, 2011 23:06
Show Gist options
  • Select an option

  • Save TRMW/861310 to your computer and use it in GitHub Desktop.

Select an option

Save TRMW/861310 to your computer and use it in GitHub Desktop.
ioda_api.js
$.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');
} );
},
});
$.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);
}
});
@TRMW
Copy link
Copy Markdown
Author

TRMW commented Mar 8, 2011

Josh made these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment