Class AuthenticatedSpotifyApi

    • Constructor Detail

      • AuthenticatedSpotifyApi

        public AuthenticatedSpotifyApi​(AuthenticationProvider authProvider,
                                       okhttp3.HttpUrl baseUrlWebApi,
                                       okhttp3.HttpUrl baseUrlAuthApi)
    • Method Detail

      • getAuthTokensFromAuthCode

        public boolean getAuthTokensFromAuthCode​(String authCode,
                                                 String redirectUri)
        Request a access-token and refresh-token from an authorization code. The tokens are passed to AuthenticationProvider.onNewAuthTokens(AuthTokens).
        Parameters:
        authCode - the authorization code returned form an authorization request
        redirectUri - the redirect URI used for the authorization request
        Returns:
        true if new tokens were requested successfully, false otherwise