spotifywebapipython.models.imageobject

@export
class ImageObject:

Spotify Web API Image object.

ImageObject(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.
Height: int

The image height in pixels.

Example: 300

Url: str

The source URL of the image.

Example: https://i.scdn.co/image/ab67616d00001e02ff9ca10b55ce82ae553c8228

Width: int

The image width in pixels.

Example: 300

def ToDictionary(self) -> dict:

Returns a dictionary representation of the class.

def ToString(self) -> str:

Returns a displayable string representation of the class.