Check User's Saved Episodes
client.Me.Episodes.Check(ctx, query) (*[]bool, error)
GET/me/episodes/contains
Check if one or more episodes is already saved in the current Spotify user's 'Your Episodes' library.
This API endpoint is in beta and could change without warning. Please share any feedback that you have, or issues that you discover, in our developer community forum..
Parameters
Returns
type MeEpisodeCheckResponse []bool
Check User's Saved Episodes
package main
import (
"context"
"fmt"
"github.com/cjavdev/spotted-go"
"github.com/cjavdev/spotted-go/option"
)
func main() {
client := spotted.NewClient(
option.WithAccessToken("My Access Token"),
)
response, err := client.Me.Episodes.Check(context.TODO(), spotted.MeEpisodeCheckParams{
IDs: "77o6BIVlYM3msb4MMIL1jH,0Q86acNRm6V9GYx55SXKwf",
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response)
}
[
false,
true
]Returns Examples
[
false,
true
]