public class SpotifyApi extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SPOTIFY_WEB_API_ENDPOINT
Main Spotify Web API endpoint
|
| Constructor and Description |
|---|
SpotifyApi()
New instance of SpotifyApi,
with single thread executor both for http and callbacks.
|
SpotifyApi(Executor httpExecutor,
Executor callbackExecutor)
Create instance of SpotifyApi with given executors.
|
| Modifier and Type | Method and Description |
|---|---|
SpotifyService |
getService() |
SpotifyApi |
setAccessToken(String accessToken)
Sets access token on the wrapper.
|
public static final String SPOTIFY_WEB_API_ENDPOINT
public SpotifyApi(Executor httpExecutor, Executor callbackExecutor)
httpExecutor - executor for http request. Cannot be null.callbackExecutor - executor for callbacks. If null is passed than the same
thread that created the instance is used.public SpotifyApi()
public SpotifyApi setAccessToken(String accessToken)
accessToken - The token to set on the wrapper.public SpotifyService getService()