com.kkbox.openapideveloper / com.kkbox.openapideveloper.api / ArtistFetcher
class ArtistFetcher
Get artist metadata.
| <init> | ArtistFetcher(httpClient: HttpClient, territory: String = "TW")Creates an artist fetcher. |
| artistId | lateinit var artistId: String |
| fetchAlbums | fun fetchAlbums(limit: Int? = null, offset: Int? = null): ResponseFuture<JsonObject>Fetch albums belong to an artist. |
| fetchMetadata | fun fetchMetadata(): ResponseFuture<JsonObject>Fetches metadata of an artist. |
| fetchTopTracks | fun fetchTopTracks(limit: Int? = null, offset: Int? = null): ResponseFuture<JsonObject>Fetch top tracks belong to an artist. |
| setArtistId | fun setArtistId(artistId: String): ArtistFetcherInit the artist object. |