Skip to content

Commit

Permalink
docs(artistsapi.ts): add code example for 'getArtist'
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgrieger committed Jun 27, 2020
1 parent ca8bb89 commit 04bdc69
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/apis/ArtistsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,18 @@ export class ArtistsApi {
}

/**
* Get an Artist
* ### Get an Artist
*
* Get Spotify catalog information for a single artist identified by their
* unique Spotify ID.
*
* @example
* ```ts
* const artist = await spotify.artists.getArtist('4Ge8xMJNwt6EEXOzVXju9a');
* console.log(artist.name);
* // "Caroline Polachek"
* ```
*
* @param artistId The Spotify ID for the artist.
*/
getArtist(artistId: string): Promise<Artist> {
Expand Down

0 comments on commit 04bdc69

Please sign in to comment.