get_oauth2_access_token_sync
Description:
[ Version ( since = "3.28" ) ]
public virtual bool get_oauth2_access_token_sync (Service service, out string? out_access_token, out int out_expires_in, Cancellable? cancellable = null) throws Error
public virtual bool get_oauth2_access_token_sync (Service service, out string? out_access_token, out int out_expires_in, Cancellable? cancellable = null) throws Error
Obtains the OAuth 2.0 access token for service
along with its expiry in seconds from the current time (or 0 if unknown).
Free the returned access token with g_free when no longer needed.
Parameters:
this |
a Session |
service |
a Service |
out_access_token |
return location for the access token, or null |
out_expires_in |
return location for the token expiry, or null |
cancellable |
optional Cancellable object, or null |
Returns:
whether succeeded |