Skip to content

Commit

Permalink
docs(albumsapi.ts): update documentation for 'getAlbumTracks'
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgrieger committed Jun 23, 2020
1 parent f9117d8 commit 620b238
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/apis/AlbumsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,17 @@ export class AlbumsApi {
}

/**
* Get an Album's Tracks
* ### Get an Album's Tracks
*
* Get Spotify catalog information about an album's tracks.
*
* @example
* ```ts
* const tracks = await spotify.albums.getAlbumTracks('76254F4WYdKOm0pVAVvp0x');
* console.log(tracks.items.map(track => track.name));
* // Array [ "4D", "MTI" ]
* ```
*
* @param albumId The Spotify ID for the album.
* @param options Optional request information.
*/
Expand Down

0 comments on commit 620b238

Please sign in to comment.