Skip to content
DocumentationAPI Reference

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.

ParametersExpand Collapse
playlistID string

The Spotify ID of the playlist.

query PlaylistFollowerCheckParams
IDs param.Field[string]optional

Deprecated A single item list containing current user's Spotify Username. Maximum: 1 id.

ReturnsExpand Collapse
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
]