AsyncUser¶
- class deezer.asyncio.AsyncUser(client, json)¶
Async user resource.
- id: int¶
- name: str¶
- lastname: str | None¶
- firstname: str | None¶
- email: str | None¶
- status: int | None¶
- birthday: date | None¶
- inscription_date: 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¶
- async get_albums(**kwargs)¶
Get user’s favorite albums.
- Return type:
- async add_album(album)¶
Add an album to user’s favorite albums.
- Return type:
bool
- async remove_album(album)¶
Remove an album from user’s favorite albums.
- Return type:
bool
- async get_tracks(**kwargs)¶
Get user’s favorite tracks.
- Return type:
- async add_track(track)¶
Add a track to user’s favorite tracks.
- Return type:
bool
- async remove_track(track)¶
Remove a track from user’s favorite tracks.
- Return type:
bool
- async get_artists(**kwargs)¶
Get user’s favorite artists.
- Return type:
- async add_artist(artist)¶
Add an artist to user’s favorite artists.
- Return type:
bool
- async remove_artist(artist)¶
Remove an artist from user’s favorite artists.
- Return type:
bool
- async get_followers(**kwargs)¶
Get user’s followers.
- Return type:
- async get_followings(**kwargs)¶
Get user’s followings.
- Return type:
- async follow(user)¶
Follow a user.
- Return type:
bool
- async unfollow(user)¶
Unfollow a user.
- Return type:
bool
- async get_playlists(**kwargs)¶
Get user’s public playlists.
- Return type:
- async add_playlist(playlist)¶
Add a playlist to user’s public playlists.
- Return type:
bool
- async remove_playlist(playlist)¶
Remove a playlist from user’s public playlists.
- Return type:
bool
- async create_playlist(title)¶
Create a playlist.
- Parameters:
title (str)
- Return type:
int