Top | ![]() |
![]() |
![]() |
![]() |
gboolean
e_gdata_oauth2_authorizer_supported (void
);
Whether the EGDataOAuth2Authorizer is supported, which means whether evolution-data-server had been compiled with libgdata.
Since: 3.28
EGDataOAuth2Authorizer * e_gdata_oauth2_authorizer_new (ESource *source
,GType service_type
);
Creates a new EGDataOAuth2Authorizer for the given source
and service_type
. The function always returns NULL
when
e_gdata_oauth2_authorizer_supported()
returns FALSE
.
a new EGDataOAuth2Authorizer, or NULL
when
the EGDataOAuth2Authorizer is not supported.
[transfer full]
Since: 3.28
ESource *
e_gdata_oauth2_authorizer_ref_source (EGDataOAuth2Authorizer *oauth2_authorizer
);
an ESource, for which the oauth2_authorizer
had been created, or NULL
. Free returned non-NULL object with g_object_unref()
,
when done with it.
See: e_gdata_oauth2_authorizer_supported()
.
[transfer full]
Since: 3.28
GType
e_gdata_oauth2_authorizer_get_service_type
(EGDataOAuth2Authorizer *oauth2_authorizer
);
Since: 3.28
void e_gdata_oauth2_authorizer_set_credentials (EGDataOAuth2Authorizer *oauth2_authorizer
,const ENamedParameters *credentials
);
Updates internally stored credentials, used to get access token.
See: e_gdata_oauth2_authorizer_supported()
Since: 3.28
ENamedParameters *
e_gdata_oauth2_authorizer_clone_credentials
(EGDataOAuth2Authorizer *oauth2_authorizer
);
A copy of currently stored credentials,
or NULL
, when none are set. Free the returned structure with
e_named_parameters_free()
, when no longer needed.
See: e_gdata_oauth2_authorizer_supported()
.
[transfer full][nullable]
Since: 3.28
gboolean
e_gdata_oauth2_authorizer_is_expired (EGDataOAuth2Authorizer *oauth2_authorizer
);
Since: 3.28