spotifywebapipython.models.trackpage
Spotify Web API TrackPage object.
This allows for multiple pages of Track objects to be navigated.
TrackPage(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.
def
GetUris(self, afterUri: str = None) -> str:
Gets a comma-delimited list of uri's contained in the underlying Items list.
args: afterUri (str): If specified, the process will look for this uri before adding subsequent uri's to the returned results. This allows you to skip uri's that have recently been played.
This is a convenience method so one does not have to loop through the Items
array of PlayHistory objects to get the list of uri's.