![]() ![]() PaginatedList get_user_followings ( user_id = None ) ¶ User_id ( int | None) – the user ID to get followers. Get the followers for the given user_id if provided or current user if not. Returnsīool get_user_followers ( user_id = None ) ¶ Remove an artist from the user’s library ParametersĪrtist_id ( int) – the ID of the artist to remove. PaginatedList add_user_artist ( artist_id ) ¶Īdd an artist to the user’s library ParametersĪrtist_id ( int) – the ID of the artist to add. User_id ( int | None) – the user ID to get favourites artists. Get the favourites artists for the given user_id if provided or current user if not. Returnsīool get_user_artists ( user_id = None ) ¶ Remove an album from the user’s library ParametersĪlbum_id ( int) – the ID of the album to remove. Returnsīoolean whether the operation succeeded. PaginatedList add_user_album ( album_id ) ¶Īdd an album to the user’s library ParametersĪlbum_id ( int) – the ID of the album to add. User_id ( int | None) – the user ID to get favourites albums. Get the favourites albums for the given user_id if provided or current user if not. User get_user_albums ( user_id = None ) ¶ PaginatedList get_episode ( episode_id ) ¶ List get_podcasts_chart ( genre_id = 0 ) ¶ Get top playlists for the given genre ID. List get_playlists_chart ( genre_id = 0 ) ¶ List get_artists_chart ( genre_id = 0 ) ¶ ReturnsĬhart get_tracks_chart ( genre_id = 0 ) ¶ ![]() Genre_id ( int) – the genre ID, default to All genre (genre_id = 0). Get overall charts for tracks, albums, artists and playlists for the given genre ID.Ĭombine charts of several resources in one endpoint. Params – Query parameters to add to the request Paginate_list – Whether to wrap list into a pagination object. Resource_id ( int | None) – The resource id to use as top level. Resource_type ( type | None) – The resource class to use as top level. Parent ( Resource | None) – A reference to the parent resource, to avoid fetching again. Path ( str) – The path to make the API call to (e.g. Method ( str) – HTTP verb to use: GET, POST< DELETE, … Make a request to the API and parse the response. Request ( method, path, parent = None, resource_type = None, resource_id = None, paginate_list = False, ** params ) ¶ Headers – a dictionary of headers to be used. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |