Class SkipUsersPlaybackToNextTrackRequest
- java.lang.Object
-
- de.sonallux.spotify.api.apis.player.SkipUsersPlaybackToNextTrackRequest
-
public class SkipUsersPlaybackToNextTrackRequest extends Object
Skip User’s Playback To Next Track requestRequired OAuth scopes
user-modify-playback-stateResponse
A completed request will return a
204 NO CONTENTresponse code, and then issue the command to the player. Due to the asynchronous nature of the issuance of the command, you should use the Get Information About The User's Current Playback endpoint to check that your issued command was handled correctly by the player.If the device is not found, the request will return
404 NOT FOUNDresponse code.If the user making the request is non-premium, a
403 FORBIDDENresponse code will be returned.
-
-
Constructor Summary
Constructors Constructor Description SkipUsersPlaybackToNextTrackRequest(ApiClient apiClient)Skip User’s Playback To Next Track request
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiCall<Void>build()Build the request into an executable callSkipUsersPlaybackToNextTrackRequestdeviceId(String deviceId)The id of the device this command is targeting.
-
-
-
Constructor Detail
-
SkipUsersPlaybackToNextTrackRequest
public SkipUsersPlaybackToNextTrackRequest(ApiClient apiClient)
Skip User’s Playback To Next Track request
- Parameters:
apiClient-The API client
-
-
Method Detail
-
deviceId
public SkipUsersPlaybackToNextTrackRequest deviceId(String deviceId)
The id of the device this command is targeting. If not supplied, the user's currently active device is the target.
-
-