Function setupAndGetSpotifyApiClient

  • Setup Spotify authentication so that API calls can be used and return a working API client.

    Returns

    The Spotify API client.

    Parameters

    • spotifyClientId: string

      The Spotify API client ID.

    • spotifyClientSecret: string

      The Spotify API client secret.

    • spotifyDatabasePath: string

      The path to the Spotify database to save the refresh token if not available already.

    • logger: Readonly<Logger>

      Used for logging.

    Returns Promise<SpotifyWebApi>

Generated using TypeDoc