spotifywebapipython.models.episodepagesaved

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

Spotify Web API EpisodePageSaved object.

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

EpisodePageSaved(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 EpisodeSaved objects.

def GetEpisodes(self) -> list[spotifywebapipython.models.episode.Episode]:

Gets a list of all episodes contained in the underlying Items list.

This is a convenience method so one does not have to loop through the Items array of EpisodeSaved objects to get the list of episodes.

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.