receive_and_store_token_sync
Description:
public bool receive_and_store_token_sync (Source source, string authorization_code, OAuth2ServiceRefSourceFunc ref_source, Cancellable? cancellable = null) throws Error
Queries this at
get_refresh_uri with a request to obtain a new access token, associated with the given authorization_code
and stores it into
the secret store on success.
Parameters:
this | |
source |
an Source |
authorization_code |
authorization code provided by the server |
ref_source |
an OAuth2ServiceRefSourceFunc function to obtain an Source |
cancellable |
optional Cancellable object, or |
ref_source_user_data |
user data for |
Returns:
whether succeeded |