-
Notifications
You must be signed in to change notification settings - Fork 11
User
Ewan edited this page Dec 27, 2017
·
2 revisions
E.Deezer can access information from a user's account via a provided access token. E.Deezer can't perform the login on it's own, since it requires a web view on the public API so you must provide this yourself. Once an access token has been obtained it can be given to E.Deezer to use via Login()
.
- If the token expires the next E.Deezer request will throw an exception. You must repeat the login process and call
Login()
again with the new token - Access tokens are optional and a large amount of the Deezer API can be accessed without one.
- An access token can be cleared at any point using
Logout()
.
await Deezer.Login("my_shiny_new_token");
An access token provides a certain level of access. You must ensure the token given to E.Deezer has the permissions required for that method. These can be found in the Deezer API documentation. If you try and call a method without the correct permission an exception will be thrown.