spotifywebapipython.models.trackrecommendations

@export
class TrackRecommendations:

Spotify Web API SimplifiedTrack object.

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

A list of recommendation seed objects.

A list of Track objects, ordered according to the parameters supplied. on the GetTrackRecommendations method.

def ToDictionary(self) -> dict:

Returns a dictionary representation of the class.

def ToString(self) -> str:

Returns a displayable string representation of the class.