Class SpotifyAuthApi
- java.lang.Object
-
- de.jsone_studios.wrapper.spotify.authentication.SpotifyAuthApi
-
public class SpotifyAuthApi extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classSpotifyAuthApi.RedirectResponse
-
Field Summary
Fields Modifier and Type Field Description static StringSPOTIFY_ACCOUNTS_ENDPOINT
-
Constructor Summary
Constructors Constructor Description SpotifyAuthApi(String clientId, String clientSecret)SpotifyAuthApi(String clientId, String clientSecret, String baseUrl)SpotifyAuthApi(String clientId, String clientSecret, okhttp3.HttpUrl baseUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description okhttp3.HttpUrlgetAuthorizeUrl(String responseType, String redirectUri, String state, List<Scope> scopes)okhttp3.HttpUrlgetAuthorizeUrl(String redirectUri, String state, List<Scope> scopes)retrofit2.Call<AuthTokens>getAuthTokensFromAuthCode(String code, String redirectUri)retrofit2.Call<AuthTokens>getAuthTokensFromRefreshToken(String refreshToken)SpotifyAuthApi.RedirectResponseparseRedirectResponse(String url)
-
-
-
Field Detail
-
SPOTIFY_ACCOUNTS_ENDPOINT
public static final String SPOTIFY_ACCOUNTS_ENDPOINT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAuthorizeUrl
public okhttp3.HttpUrl getAuthorizeUrl(String redirectUri, String state, List<Scope> scopes)
-
getAuthorizeUrl
public okhttp3.HttpUrl getAuthorizeUrl(String responseType, String redirectUri, String state, List<Scope> scopes)
-
getAuthTokensFromAuthCode
public retrofit2.Call<AuthTokens> getAuthTokensFromAuthCode(String code, String redirectUri)
-
getAuthTokensFromRefreshToken
public retrofit2.Call<AuthTokens> getAuthTokensFromRefreshToken(String refreshToken)
-
parseRedirectResponse
public SpotifyAuthApi.RedirectResponse parseRedirectResponse(String url)
-
-