Skip To Previous
client.Me.Player.SkipPrevious(ctx, body) error
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 main
import (
"context"
"github.com/cjavdev/spotted-go"
"github.com/cjavdev/spotted-go/option"
)
func main() {
client := spotted.NewClient(
option.WithAccessToken("My Access Token"),
)
err := client.Me.Player.SkipPrevious(context.TODO(), spotted.MePlayerSkipPreviousParams{
})
if err != nil {
panic(err.Error())
}
}