Interface
EBackendOAuth2Support
since: 3.8
Prerequisite
In order to implement OAuth2Support, your type must inherit fromGObject.
Instance methods
e_oauth2_support_get_access_token
Asynchronously obtains the OAuth 2.0 access token for source along
with its expiry in seconds from the current time (or 0 if unknown).
since: 3.8
e_oauth2_support_get_access_token_finish
Finishes the operation started with e_oauth2_support_get_access_token().
since: 3.8
e_oauth2_support_get_access_token_sync
Obtains the OAuth 2.0 access token for source along with its expiry
in seconds from the current time (or 0 if unknown).
since: 3.8
Interface structure
struct EBackendOAuth2SupportInterface {
gboolean (* get_access_token_sync) (
EOAuth2Support* support,
ESource* source,
GCancellable* cancellable,
gchar** out_access_token,
gint* out_expires_in,
GError** error
);
void (* get_access_token) (
EOAuth2Support* support,
ESource* source,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
);
gboolean (* get_access_token_finish) (
EOAuth2Support* support,
GAsyncResult* result,
gchar** out_access_token,
gint* out_expires_in,
GError** error
);
}
No description available.
Interface members
get_access_token_sync |
|
Synchronous interface method to get the access token. |
|
get_access_token |
|
Asynchronous interface method to get the access token. |
|
get_access_token_finish |
|
Counterpart of the asynchronous interface method to finishd get of the access token. |
Virtual methods
EBackend.OAuth2Support.get_access_token
Asynchronously obtains the OAuth 2.0 access token for source along
with its expiry in seconds from the current time (or 0 if unknown).
since: 3.8
EBackend.OAuth2Support.get_access_token_finish
Finishes the operation started with e_oauth2_support_get_access_token().
since: 3.8
EBackend.OAuth2Support.get_access_token_sync
Obtains the OAuth 2.0 access token for source along with its expiry
in seconds from the current time (or 0 if unknown).
since: 3.8