spotifywebapipython.models.playlistpagesimplified

@export
class PlaylistPageSimplified(spotifywebapipython.models.pageobject.PageObject):

Spotify Web API PlaylistPageSimplified object.

This allows for multiple pages of PlaylistSimplified objects to be navigated.

PlaylistPageSimplified(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.

Array of PlaylistSimplified objects.

def ContainsId(self, itemId: str = False) -> bool:

Checks the Items collection to see if an item already exists with the specified Id value.

Returns True if the itemId exists in the collection; otherwise, False.

def GetSpotifyOwnedItems( self) -> list[spotifywebapipython.models.playlistsimplified.PlaylistSimplified]:

Gets a list of all items contained in the Items list that are owned by spotify:user:spotify.

def ToString(self, includeItems: bool = False) -> str:

Returns a displayable string representation of the class.

Arguments:
  • includeItems (bool): True to include the Items collection of objects; otherwise, False to only return base properties.