spotifywebapipython.models.playlisttracksummary

@export
class PlaylistTrackSummary:

Spotify Web API PlaylistTrackSummary object.

PlaylistTrackSummary(root: dict = None)

Initializes a new instance of the class.

Arguments:
  • root (dict): Spotify Web API JSON response in dictionary format, used to load object attributes; otherwise, None to not load attributes.
Href: str

A link to the Web API endpoint where full details of the playlist's tracks can be retrieved.

Total: int

Number of tracks in the playlist.

def ToDictionary(self) -> dict:

Returns a dictionary representation of the class.

def ToString(self) -> str:

Returns a displayable string representation of the class.