Skip to content
DocumentationAPI Reference

Follow Playlist

client.Playlists.Followers.Follow(ctx, playlistID, body) error
PUT/playlists/{playlist_id}/followers

Add the current user as a follower of a playlist.

ParametersExpand Collapse
playlistID string

The Spotify ID of the playlist.

body PlaylistFollowerFollowParams
Published param.Field[bool]optional

The playlist's public/private status (if it should be added to the user's profile or not): true the playlist will be public, false the playlist will be private, null the playlist status is not relevant. For more about public/private status, see Working with Playlists

Follow Playlist

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.Playlists.Followers.Follow(
    context.TODO(),
    "3cEYpjA9oz9GiPac4AsH4n",
    spotted.PlaylistFollowerFollowParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
}
Returns Examples