Social¶
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.Whether the session is private.
Set to
True
orFalse
to change.
Get the
ScrobblingState
for the givensocial_provider
.
Check if the scrobbling settings should be shown to the user.
Set the
scrobbling_state
for the givensocial_provider
.
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.
-
class
spotify.
ScrobblingState
[source]¶ -
GLOBAL_DISABLED
= <ScrobblingState.GLOBAL_DISABLED: 4>¶
-
GLOBAL_ENABLED
= <ScrobblingState.GLOBAL_ENABLED: 3>¶
-
LOCAL_DISABLED
= <ScrobblingState.LOCAL_DISABLED: 2>¶
-
LOCAL_ENABLED
= <ScrobblingState.LOCAL_ENABLED: 1>¶
-
USE_GLOBAL_SETTING
= <ScrobblingState.USE_GLOBAL_SETTING: 0>¶
-