Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (52 sloc) 1.86 KB
/*
Simple object to hold Album information. This is included just for ease of understanding getAlbum.
*/
function Album() {
this.storeUrl = 'http://';
this.amgArtistId = '000001';
this.itunesArtistId = '000001';
this.artworkUrl60 = 'http://';
this.artworkUrl100 = 'http://';
this.itunesArtistId = '000001';
this.artistName = '000001';
this.name = 'Default';
};
function Album(storeUrl, amgArtistId, itunesArtistId, name, artistName, artworkUrl60, artworkUrl100) {
this.storeUrl = storeUrl;
this.amgArtistId = amgArtistId;
this.itunesArtistId = itunesArtistId;
this.name = name;
this.artistName = artistName;
this.artworkUrl60 = artworkUrl60;
this.artworkUrl100 = artworkUrl100;
};
exports.Album = Album;
/*
* Example result JSON from album query
*
{
"wrapperType":"collection",
"collectionType":"Album",
"artistId":1971863,
"collectionId":14319958,
"amgArtistId":10,
"amgVideoArtistId":null,
"artistName":"Beastie Boys",
"collectionName":"Paul's Boutique",
"collectionCensoredName":"Paul's Boutique",
"artistViewUrl":"http://itunes.apple.com/us/artist/beastie-boys/id1971863?uo=4",
"collectionViewUrl":"http://itunes.apple.com/us/album/pauls-boutique/id14319958?uo=4",
"artworkUrl60":"http://a1.phobos.apple.com/us/r1000/017/Features/42/3b/dc/dj.pktszsjv.60x60-50.jpg",
"artworkUrl100":"http://a1.phobos.apple.com/us/r1000/017/Features/42/3b/dc/dj.pktszsjv.100x100-75.jpg",
"collectionPrice":6.99,
"collectionExplicitness":"explicit",
"contentAdvisoryRating":"Explicit",
"trackCount":15,
"copyright":"1989 Capitol Records, Inc.. All rights reserved.",
"country":"USA",
"currency":"USD",
"releaseDate":"1989-07-31T07:00:00Z",
"primaryGenreName":"Hip Hop/Rap"
}
*
*/