- Preparing search index...
- The search index is not available
moonpiebot
Function setupAndGetSpotifyApiClient
- setupAndGetSpotifyApiClient(spotifyClientId: string, spotifyClientSecret: string, spotifyDatabasePath: string, logger: Readonly<Logger>): Promise<SpotifyWebApi>
-
Parameters
-
spotifyClientId: string
-
spotifyClientSecret: string
-
spotifyDatabasePath: string
-
logger: Readonly<Logger>
Returns Promise<SpotifyWebApi>
Setup Spotify authentication so that API calls can be used and return a working API client.
Returns
The Spotify API client.