User#
- class deezer.User(client, json)#
To work with Deezer user objects.
Check the Deezer documentation for more details about each field.
- id: int#
- name: str#
- lastname: str | None#
- firstname: str | None#
- email: str | None#
- status: int | None#
- birthday: dt.date | None#
- inscription_date: dt.date#
- gender: str | None#
- link: str#
- picture: str#
- picture_small: str#
- picture_medium: str#
- picture_big: str#
- picture_xl: str#
- country: str#
- lang: str | None#
- is_kid: bool | None#
- explicit_content_level: str | None#
- explicit_content_levels_available: list[str] | None#
- tracklist: str#
- get_albums(**kwargs)#
Get user’s favorite albums.
- Returns:
a
PaginatedList
ofAlbum
instances- Return type:
- add_album(album)#
Add an album to user’s favorite albums.
- remove_album(album)#
Remove an album from user’s favorite albums.
- get_tracks(**kwargs)#
Get user’s favorite tracks.
- Returns:
a
PaginatedList
ofTrack
instances- Return type:
- add_track(track)#
Add a track to user’s favorite tracks.
- remove_track(track)#
Remove a track from user’s favorite tracks.
- get_artists(**kwargs)#
Get user’s favorite artists.
- Returns:
a
PaginatedList
ofArtist
instances- Return type:
- add_artist(artist)#
Add an artist to user’s favorite artists.
- remove_artist(artist)#
Remove an artist from user’s favorite artists.
- get_followers(**kwargs)#
Get user’s followers.
- Returns:
a
PaginatedList
ofUser
instances- Return type:
- get_followings(**kwargs)#
Get user’s followings.
- Returns:
a
PaginatedList
ofUser
instances- Return type:
- follow(user)#
Follow a user.
- unfollow(user)#
Unfollow a user.
- get_playlists(**kwargs)#
Get user’s public playlists.
- Returns:
a
PaginatedList
ofPlaylist
instances- Return type:
- add_playlist(playlist)#
Add a playlist to user’s public playlists.
- remove_playlist(playlist)#
Remove a playlist from user’s public playlists.
- create_playlist(title)#
Create a playlist.
- Parameters:
title (str) – the title of the playlist
- Returns:
the ID of the playlist that was created
- Return type:
int