fun getProfile(ignoreCache: Boolean): Deferred<Profile>
(source)
Fetches the profile object for the current client either from the existing cached account, or from the server (requires the client to have access to the profile scope).
ignoreCache
- Fetch the profile information directly from the server
Unauthorized
- We couldn't find any suitable access token to make that call.
The caller should then start the OAuth Flow again with the "profile" scope.
Return
Deferred<Profile> representing the user's basic profile info
fun getProfile(): Deferred<Profile>
(source)
Convenience method to fetch the profile from a cached account by default, but fall back to retrieval from the server.
Unauthorized
- We couldn't find any suitable access token to make that call.
The caller should then start the OAuth Flow again with the "profile" scope.
Return
Deferred<Profile> representing the user's basic profile info