EDataServer.GDataOAuth2Authorizer¶
| Subclasses: | None | 
|---|
Methods¶
| Inherited: | GObject.Object (37) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
| class | new(source, service_type) | 
| class | supported() | 
| clone_credentials() | |
| get_service_type() | |
| is_expired() | |
| ref_source() | |
| set_credentials(credentials) | 
Virtual Methods¶
| Inherited: | GObject.Object (7) | 
|---|
Properties¶
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| service-type | GObject.GType | r/w/co | The service type for which this authorization will be used | 
| source | EDataServer.Source | r/w/co | The data source to authenticate | 
Signals¶
| Inherited: | GObject.Object (1) | 
|---|
Class Details¶
- 
class EDataServer.GDataOAuth2Authorizer(**kwargs)¶
- Bases: - GObject.Object- Abstract: - No - Structure: - EDataServer.GDataOAuth2AuthorizerClass- 
classmethod new(source, service_type)¶
- Parameters: - source (EDataServer.Source) – anEDataServer.Source
- service_type (GObject.GType) – a #GDataService type descendant
 - Returns: - a new - EDataServer.GDataOAuth2Authorizer, or- Nonewhen the- EDataServer.GDataOAuth2Authorizeris not supported.- Return type: - Creates a new - EDataServer.GDataOAuth2Authorizerfor the given source and service_type. The function always returns- Nonewhen- EDataServer.GDataOAuth2Authorizer.supported() returns- False.- New in version 3.28. 
- source (
 - 
classmethod supported()¶
- Returns: - Whether the - EDataServer.GDataOAuth2Authorizeris supported, which means whether evolution-data-server had been compiled with libgdata.- Return type: - bool- New in version 3.28. 
 - 
clone_credentials()¶
- Returns: - A copy of currently stored credentials, or - None, when none are set. Free the returned structure with- EDataServer.NamedParameters.free(), when no longer needed.- Return type: - EDataServer.NamedParametersor- None- New in version 3.28. 
 - 
get_service_type()¶
- Returns: - a service - GObject.GType, for which the self had been created.- Return type: - GObject.GType- New in version 3.28. 
 - 
is_expired()¶
- Returns: - Whether the internally stored token is expired. - Return type: - bool- New in version 3.28. 
 - 
ref_source()¶
- Returns: - an - EDataServer.Source, for which the self had been created, or- None. Free returned non-- Noneobject with- GObject.Object.unref(), when done with it.- Return type: - EDataServer.Source- New in version 3.28. 
 - 
set_credentials(credentials)¶
- Parameters: - credentials ( - EDataServer.NamedParametersor- None) – credentials to set, or- None- Updates internally stored credentials, used to get access token. - See: - EDataServer.GDataOAuth2Authorizer.supported()- New in version 3.28. 
 
- 
classmethod 
Property Details¶
- 
EDataServer.GDataOAuth2Authorizer.props.service_type¶
- Name: - service-type- Type: - GObject.GType- Default Value: - <GType GDataService>- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- The service type for which this authorization will be used 
- 
EDataServer.GDataOAuth2Authorizer.props.source¶
- Name: - source- Type: - EDataServer.Source- Default Value: - None- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- The data source to authenticate