Class GetInformationAboutUsersCurrentPlaybackRequest
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest<CurrentlyPlayingContext>
se.michaelthelin.spotify.requests.data.AbstractDataRequest<CurrentlyPlayingContext>
se.michaelthelin.spotify.requests.data.player.GetInformationAboutUsersCurrentPlaybackRequest
- All Implemented Interfaces:
IRequest<CurrentlyPlayingContext>
public class GetInformationAboutUsersCurrentPlaybackRequest
extends AbstractDataRequest<CurrentlyPlayingContext>
Get information about the user’s current playback state, including track, track progress, and active device.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder class for building aGetInformationAboutUsersCurrentPlaybackRequest
. -
Method Summary
Methods inherited from class se.michaelthelin.spotify.requests.AbstractRequest
bodyParametersToJson, deleteJson, executeAsync, getBody, getBodyParameters, getContentType, getHeaders, getHttpManager, getJson, getUri, initializeBody, postJson, putJson
-
Method Details
-
execute
public CurrentlyPlayingContext execute() throws IOException, SpotifyWebApiException, org.apache.hc.core5.http.ParseExceptionGet information about a user's playback.- Returns:
- Information about a users playback.
- Throws:
IOException
- In case of networking issues.SpotifyWebApiException
- The Web API returned an error further specified in this exception's root cause.org.apache.hc.core5.http.ParseException
-