Method Summary
Public Methods | ||
public |
fetchAlbums(limit: number, offset: number): Promise Fetch albums belong to an artist. |
|
public |
Fetch metadata of the artist you find. |
|
public |
fetchRelatedArtists(limit: number, offset: number): Promise Fetch related artists |
|
public |
fetchTopTracks(limit: number, offset: number): Promise Fetch top tracks belong to an artist. |
|
public |
setArtistID(artistID: string): Artist Init the artist object. |
Inherited Summary
From class Fetcher | ||
public |
fetchNextPage(fulfillment: fulfillment, nextUriPath: String): Promise Fetches next page of various paged APIs. |
|
public |
hasNextPage(fulfillment: fulfillment, nextUriPath: String): Boolean Is next page available for various paged APIs. |
|
public |
setTerritory(territory: string): Fetcher Set the fetcher's territory. |
Public Methods
public fetchAlbums(limit: number, offset: number): Promise source
Fetch albums belong to an artist.
Example:
api.artistFetcher.setArtistID('Cnv_K6i5Ft4y41SxLy').fetchAlbums();
public fetchMetadata(): Promise source
Fetch metadata of the artist you find.
Example:
api.artistFetcher.setArtistID('Cnv_K6i5Ft4y41SxLy').fetchMetadata();
public fetchRelatedArtists(limit: number, offset: number): Promise source
Fetch related artists
Example:
api.artistFetcher.setArtistID('Cnv_K6i5Ft4y41SxLy').fetchRelatedArtists();
public fetchTopTracks(limit: number, offset: number): Promise source
Fetch top tracks belong to an artist.
Example:
api.artistFetcher.setArtistID('Cnv_K6i5Ft4y41SxLy').fetchTopTracks();