Check if Current User Follows Playlist
client.Playlists.Followers.Check(ctx, playlistID, query) (*[]bool, error)
GET/playlists/{playlist_id}/followers/contains
Check to see if the current user is following a specified playlist.
Parameters
Returns
type PlaylistFollowerCheckResponse []bool
Check if Current User Follows Playlist
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.Playlists.Followers.Check(
context.TODO(),
"3cEYpjA9oz9GiPac4AsH4n",
spotted.PlaylistFollowerCheckParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response)
}
[
true
]Returns Examples
[
true
]