get_oauth2_access_token


Description:

[ Version ( since = "3.8" ) ]
public virtual async bool get_oauth2_access_token (Cancellable? cancellable, out string out_access_token, out int out_expires_in) throws Error

Asynchronously obtains the OAuth 2.0 access token for this along with its expiry in seconds from the current time (or 0 if unknown).

When the operation is finished, callback will be called. You can then call get_oauth2_access_token.end to get the result of the operation.

Parameters:

this

an Source

cancellable

optional Cancellable object, or null

callback

a TaskReadyCallback to call when the request is satisfied

user_data

data to pass to the callback function