From 620b23854021037b0085d47a7794eccc8d85dbcb Mon Sep 17 00:00:00 2001 From: Adam Grieger Date: Mon, 22 Jun 2020 21:42:25 -0700 Subject: [PATCH] docs(albumsapi.ts): update documentation for 'getAlbumTracks' --- src/apis/AlbumsApi.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/apis/AlbumsApi.ts b/src/apis/AlbumsApi.ts index 09f87fc..8e5065a 100644 --- a/src/apis/AlbumsApi.ts +++ b/src/apis/AlbumsApi.ts @@ -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. */