spotifywebapipython.models.owner

@export
class Owner:

Spotify Web API Owner object.

Information about the owner of an object (e.g. playlist, etc).

Owner(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.
DisplayName: str

The name displayed on the user's profile, or null if not available.

Example: John S

Known public external URLs for this user.

Information about the followers of the user.

Href: str

A link to the Web API endpoint providing full details of the user.

Id: str

The Spotify user ID for the user.

Example: 2up3OPMp9Tb4dAKM2erWXQ

Type: str

The object type: user.

Uri: str

The Spotify URI for the user.

Example: spotify:user:2up3OPMp9Tb4dAKM2erWXQ

def ToDictionary(self) -> dict:

Returns a dictionary representation of the class.

def ToString(self) -> str:

Returns a displayable string representation of the class.