import MoodStationFetcher from '@kkbox/kkbox-js-sdk/src/api/MoodStationFetcher.js'
Member Summary
Public Members | ||
public |
territory: * |
Method Summary
Public Methods | ||
public |
Fetch all mood stations. |
|
public |
Fetch the mood station's metadata. |
|
public |
setMoodStationID(moodStationID: string, territory: string): MoodStation Init the mood station fetcher. |
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 Members
public territory: * source
Public Methods
public fetchAllMoodStations(): Promise source
Fetch all mood stations.
Example:
api.moodStationFetcher.fetchAllMoodStations();
public fetchMetadata(): Promise source
Fetch the mood station's metadata.
Example:
api.moodStationFetcher.setMoodStationID('StGZp2ToWq92diPHS7').fetchMetadata();