spotifywebapipython.models.playhistory
@export
class
PlayHistory:
Spotify Web API PlayHistory object.
PlayHistory(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.
PlayedAt: str
The date and time the track was played (in local time).
Example: 2024-01-25T15:33:17.136Z