API
Mixin for all implementations of RemoteAPI
for the Spotify API.
Also includes the default arguments to be used when requesting authorisation from the Spotify API.
Classes:
|
Collection of endpoints for the Spotify API. |
- class musify.libraries.remote.spotify.api.api.SpotifyAPI(client_id=None, client_secret=None, scopes=(), cache=None, **auth_kwargs)
Bases:
SpotifyAPIMisc
,SpotifyAPIItems
,SpotifyAPIPlaylists
Collection of endpoints for the Spotify API.
- Parameters:
client_id (
str
|None
(default:None
)) – The client ID to use when authorising requests.client_secret (
str
|None
(default:None
)) – The client secret to use when authorising requests.scopes (
Iterable
[str
] (default:()
)) – The scopes to request access to.cache (
ResponseCache
|None
(default:None
)) – When given, attempt to use this cache for certain request types before calling the API.auth_kwargs – Optionally, provide kwargs to use when instantiating the
APIAuthoriser
.
Attributes:
ID of the currently authenticated user
Name of the currently authenticated user
- property user_id: str | None
ID of the currently authenticated user
- property user_name: str | None
Name of the currently authenticated user