spotifywebapipython.models.albumpagesimplified

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

Spotify Web API SimplifiedAlbumPage object.

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

AlbumPageSimplified(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 AlbumSimplified 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 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.