Class AddItemToPlaybackQueueRequest

All Implemented Interfaces:
IRequest<String>

public class AddItemToPlaybackQueueRequest extends AbstractDataRequest<String>
Add an item to be played next in the user's current playback queue. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints.
See Also:
  • Method Details

    • execute

      public String execute() throws IOException, SpotifyWebApiException, org.apache.hc.core5.http.ParseException
      Send the request.
      Returns:
      Command received
      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 - The response could not be parsed.