Get Playlist Cover Image
client.Playlists.Images.List(ctx, playlistID) (*[]ImageObject, error)
GET/playlists/{playlist_id}/images
Get the current image associated with a specific playlist.
Parameters
Returns
Get Playlist Cover Image
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"),
)
imageObjects, err := client.Playlists.Images.List(context.TODO(), "3cEYpjA9oz9GiPac4AsH4n")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", imageObjects)
}
[
{
"height": 300,
"url": "https://i.scdn.co/image/ab67616d00001e02ff9ca10b55ce82ae553c8228\n",
"width": 300,
"published": true
}
]Returns Examples
[
{
"height": 300,
"url": "https://i.scdn.co/image/ab67616d00001e02ff9ca10b55ce82ae553c8228\n",
"width": 300,
"published": true
}
]