Skip to content
This repository has been archived by the owner on Sep 10, 2020. It is now read-only.

2.6 Albums

William Fortin edited this page Sep 26, 2017 · 6 revisions

GET /albums/:id

Permet d'afficher l'album à l'id demandé. Noter que l'id d'album correspond à collectionId dans les resultats de recherche.

Entrée

Token d'authentification nécessaire

Aucun paramètres

Sortie

Retourne un album

http://ubeat.herokuapp.com/unsecure/albums/1125488753

{
    "resultCount": 1,
    "results": [
        {
            "wrapperType": "collection",
            "collectionType": "Album",
            "artistId": 116851,
            "collectionId": 1125488753,
            "amgArtistId": 211247,
            "artistName": "Blink-182",
            "collectionName": "Enema of the State",
            "collectionCensoredName": "Enema of the State",
            "artistViewUrl": "https://itunes.apple.com/us/artist/blink-182/id116851?uo=4",
            "collectionViewUrl": "https://itunes.apple.com/us/album/enema-of-the-state/id325483?uo=4",
            "artworkUrl60": "http://a3.mzstatic.com/us/r30/Features/cb/72/0e/dj.aoonomrr.60x60-50.jpg",
            "artworkUrl100": "http://a2.mzstatic.com/us/r30/Features/cb/72/0e/dj.aoonomrr.100x100-75.jpg",
            "collectionPrice": 9.99,
            "collectionExplicitness": "explicit",
            "contentAdvisoryRating": "Explicit",
            "trackCount": 12,
            "copyright": "℗ 1999 Geffen Records",
            "country": "USA",
            "currency": "USD",
            "releaseDate": "1999-05-25T07:00:00Z",
            "primaryGenreName": "Alternative"
        }
    ]
}

GET /albums/:id/tracks

Permet d'afficher les chansons de l'album à l'id demandé. Noter que l'id d'album correspond à collectionId dans les resultats de recherche.

Entrée

Token d'authentification nécessaire

Aucun paramètres

Sortie

Exemple: http://ubeat.herokuapp.com/unsecure/albums/1125488753