addItemToPlaybackQueue

suspend fun addItemToPlaybackQueue(uri: String, deviceId: String? = null): SpotifyApiResponse<Boolean>

Adds an item to the current user's playback queue.

Return

Wrapped Spotify API response. data is true when Spotify accepted the operation.

Parameters

uri

Spotify URI of the target resource.

deviceId

Spotify Connect device ID that should execute the playback action.