Users¶
-
class
spotify.User(session, uri=None, sp_user=None, add_ref=True)[source]¶ A Spotify user.
You can get users from the session, or you can create a
Useryourself from a Spotify URI:>>> session = spotify.Session() # ... >>> user = session.get_user('spotify:user:jodal') >>> user.load().display_name u'jodal'
-
property
canonical_name¶ The user’s canonical username.
-
property
display_name¶ The user’s displayable username.
-
property
is_loaded¶ Whether the user’s data is loaded yet.
-
load(timeout=None)[source]¶ Block until the user’s data is loaded.
After
timeoutseconds with no resultsTimeoutis raised. IftimeoutisNonethe default timeout is used.The method returns
selfto allow for chaining of calls.
-
property
published_playlists¶ The
PlaylistContainerof playlists published by the user.
-
property