spotify Client Api
Instantiate a new SpotifyClientApiBuilder using a Spotify clientId, clientSecret, and redirectUri.
Note: If trying to build SpotifyClientApi, you must provide client authorization in the SpotifyClientApiBuilder.authorization block
Use case: I am using the client authorization flow. I want access to both public and client Spotify API endpoints, and I want to configure authorization and other settings myself.
Return
Configurable SpotifyClientApiBuilder that, when built, creates a new SpotifyClientApi
Parameters
Instantiate a new SpotifyClientApiBuilder using a Spotify clientId, clientSecret, and redirectUri, with the ability to configure the api settings by providing a builder initialization block
Note: If trying to build SpotifyClientApi, you must provide client authorization in the SpotifyClientApiBuilder.authorization block
Use case: I am using the client authorization flow. I want access to both public and client Spotify API endpoints, and I want to configure authorization and other settings myself.
Return
Configurable SpotifyClientApiBuilder that, when built, creates a new SpotifyClientApi
Parameters
Spotify client id
Spotify client secret
Spotify redirect uri
Api settings block
Instantiate a new SpotifyClientApiBuilder using a Spotify clientId, clientSecret, and redirectUri, with an existing SpotifyUserAuthorization.
Use case: I am using the client authorization flow. I want access to both public and client Spotify API endpoints and I want to configure authorization and block without using the DSL.
Return
Configurable SpotifyClientApiBuilder that, when built, creates a new SpotifyClientApi
Parameters
Spotify client id
Spotify client secret
Spotify redirect uri
A SpotifyUserAuthorization that must contain one of the following: authorization code (preferred), access token string (tokenString), Token object, and that may contain a refresh token (preferred) with which to refresh the access token
Override default API options such as the cache limit
Instantiate a new SpotifyClientApiBuilder using a Spotify clientId, clientSecret, and redirectUri, with an existing SpotifyUserAuthorization.
Use case: I am using the client authorization flow.
Return
Configurable SpotifyClientApiBuilder that, when built, creates a new SpotifyClientApi
Parameters
Spotify client id
Spotify client secret
Spotify redirect uri
Build the API using an existing token.
Override default API options such as the cache limit
Instantiate a new SpotifyClientApiBuilder by providing a builder initialization block
Note: If trying to build SpotifyClientApi, you must provide client authorization in the SpotifyClientApiBuilder.authorization block
Use case: I am using the client authorization flow. I want access to both public and client Spotify API endpoints and I want to handle configuration via the DSL myself.
Return
Configurable SpotifyClientApiBuilder that, when built, creates a new SpotifyClientApi
Parameters
Api settings block