Class TransferUsersPlaybackRequest
java.lang.Object
de.sonallux.spotify.api.apis.player.TransferUsersPlaybackRequest
Transfer Playback request
Required OAuth scopes
user-modify-playback-state
Response
Playback transferred
-
Constructor Details
-
TransferUsersPlaybackRequest
Transfer Playback request- Parameters:
apiClient-The API client
deviceIds-A JSON array containing the ID of the device on which playback should be started/transferred.
For example:{device_ids:["74ASZWbe4lXaubB36ztrGX"]}
Note: Although an array is accepted, only a single device_id is currently supported. Supplying more than one will return400 Bad Request
-
-
Method Details
-
play
- Parameters:
play-true: ensure playback happens on new device.
false or not provided: keep the current playback state.- Returns:
- this request
-
build
Build the request into an executable api call- Returns:
- an executable api call
-