-
Notifications
You must be signed in to change notification settings - Fork 6
/
album.js
54 lines (52 loc) · 1.86 KB
/
album.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
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"
}
*
*/