Set the user’s credentials with a social provider.
Currently this is only relevant for Last.fm. Call
set_scrobbling()
to force an authentication attempt with the
provider. If authentication fails a
SCROBBLE_ERROR
event will be emitted on the
Session
object.
Social¶
spotify.social.
Social
(session)[source]¶Social sharing controller.
You’ll never need to create an instance of this class yourself. You’ll find it ready to use as the
social
attribute on theSession
instance.private_session
¶Whether the session is private.
Set to
True
orFalse
to change.is_scrobbling
(social_provider)[source]¶Get the
ScrobblingState
for the givensocial_provider
.is_scrobbling_possible
(social_provider)[source]¶Check if the scrobbling settings should be shown to the user.
set_scrobbling
(social_provider, scrobbling_state)[source]¶Set the
scrobbling_state
for the givensocial_provider
.set_social_credentials
(social_provider, username, password)[source]¶Set the user’s credentials with a social provider.
Currently this is only relevant for Last.fm. Call
set_scrobbling()
to force an authentication attempt with the provider. If authentication fails aSCROBBLE_ERROR
event will be emitted on theSession
object.spotify.
ScrobblingState
[source]¶spotify.
SocialProvider
[source]¶