-
Notifications
You must be signed in to change notification settings - Fork 11
User
Note: This page is for 2.1.0 versions of E.Deezer and later.
All these methods can be accessed through the User endpoint of the Deezer object returned when creating a session like so -
Deezer.User. //Method
The property Deezer.User.Current
returns a refernce to the current user associated with the given access token and gives the following additional properties as well as the methods listed below:
##Exceptions Each of the methods listed below may throw an OAuth or NotLoggedIn Exception.
- NotLoggedInException - No access token has been provided. See OAuth on how to login.
- OAuthException
- The provided access token is invalid
- The provided access token has expired
- The provided access token doesn't provide the permissions required.
The method documentation below shows the required permissions for that method.
###API Reference Deezer API Reference
##Public Properties
- Id (uint) - Deezer ID of this User
- Name (string) - Username of this User
- Link (string) - www.deezer.com link to this User
- Country (string) - Loctation of this User, if given.
##Public Methods
####GetFavouriteAlbums()
API Reference = user/me/albums
Permissions = basic_access
OR email
Custom Sizes = Yes
Returns: IEnumerable<IAlbum> - A collection of the user's favourite albums.
####GetFavouriteArtists()
API Reference = user/me/artists
Permissions = basic_access
OR email
Custom Sizes = Yes
Returns: IEnumerable<IArtist> - A collection of the user's favourite artists.
####GetFavouriteTracks()
API Reference = user/me/tracks
Permissions = basic_access
OR email
Custom Sizes = Yes
Returns: IEnumerable<ITrack> - A collection of the user's favourite tracks.
####GetPlaylists()
API Reference = user/me/playlists
Permissions = basic_access
OR email
Custom Sizes = Yes
Returns: IEnumerable<IPlaylist> - A collection of the user's favourite playlists, as well as any they have created. Depending on the access token provided, private user playlists may also appear in this collection.
####GetPersonalTracks()
API Reference = user/me/personal_songs
Permissions = basic_access
OR email
Custom Sizes = Yes
Returns: IEnumerable<ITrack> - A collection of the user's tracks that they have uploaded.
####GetFlow()
API Reference = user/me/flow
Permissions = basic_access
OR email
Custom Sizes = Yes
Returns:IEnumerable<ITrack> - The User's 'flow'
####GetHistory()
API Reference = user/me/history
Permissions = listening_history
Custom Sizes = Yes
Returns:IEnumerable<ITrack> - The User's listening history.
####GetRecommendedAlbums()
API Reference = user/me/recommendations/albums
Permissions = basic_access
OR email
Custom Sizes = Yes
Returns: IEnumerable<IAlbum> - A collection of the user's recommended albums.
####GetRecommendedArtists()
API Reference = user/me/recommedations/artists
Permissions = basic_access
OR email
Custom Sizes = Yes
Returns: IEnumerable<IArtist> - A collection of the user's recommended artists.
####GetRecommendedPlaylists()
API Reference = user/me/recommedations/playlists
Permissions = basic_access
OR email
Custom Sizes = Yes
Returns: IEnumerable<IPlaylist> - A collection of the user's recommended playlists.
####GetRecommendedTracks()
API Reference = user/me/recommendations/tracks
Permissions = basic_access
OR email
Custom Sizes = Yes
Returns: IEnumerable<ITrack> - A collection of the user's recommended tracks.