getClientProfile

suspend fun getClientProfile(): SpotifyUserInformation

Get detailed profile information about the current user (including the current user’s username).

The access token must have been issued on behalf of the current user. Reading the user’s email address requires the SpotifyScope.USER_READ_EMAIL scope; reading country and product subscription level requires the SpotifyScope.USER_READ_PRIVATE scope.

Api Reference

Return

Never-null SpotifyUserInformation object with possibly-null country, email, subscription and birthday fields

Sources

common source
Link copied to clipboard