Skip To Previous
me().player().skipPrevious(PlayerSkipPreviousParamsparams = PlayerSkipPreviousParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
POST/me/player/previous
Skips to previous track in the user’s 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.
Parameters
Skip To Previous
package dev.cjav.spotted.example
import dev.cjav.spotted.client.SpottedClient
import dev.cjav.spotted.client.okhttp.SpottedOkHttpClient
import dev.cjav.spotted.models.me.player.PlayerSkipPreviousParams
fun main() {
val client: SpottedClient = SpottedOkHttpClient.fromEnv()
client.me().player().skipPrevious()
}