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
User
yourself from a Spotify URI:>>> session = spotify.Session() # ... >>> user = session.get_user('spotify:user:jodal') >>> user.load().display_name u'jodal'
-
canonical_name
¶ The user’s canonical username.
-
display_name
¶ The user’s displayable username.
-
is_loaded
¶ Whether the user’s data is loaded yet.
-
load
(timeout=None)[source]¶ Block until the user’s data is loaded.
After
timeout
seconds with no resultsTimeout
is raised. Iftimeout
isNone
the default timeout is used.The method returns
self
to allow for chaining of calls.
-
published_playlists
¶ The
PlaylistContainer
of playlists published by the user.
-