Class 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.
  • Method Details

    • execute

      public CurrentlyPlayingContext execute() throws IOException, SpotifyWebApiException, org.apache.hc.core5.http.ParseException
      Get 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 - If a parsing error occurs.