[ Version ( since = "3.8" ) ]
public virtual bool get_oauth2_access_token_sync (Cancellable? cancellable, out string out_access_token, out int out_expires_in) throws Error
Obtains the OAuth 2.0 access token for this along with its expiry in seconds from the current time (or 0 if unknown).
Free the returned access token with g_free when finished with it. If an error occurs, the function will set throws and return false.
| this |
an Source |
| cancellable |
optional Cancellable object, or null |
| out_access_token |
return location for the access token, or null |
| out_expires_in |
return location for the token expiry, or null |
|
true on success, false on error |