Class Oauth2Service
The Oauth2 Service.
Inherited Members
Namespace: Google.Apis.Oauth2.v2
Assembly: Google.Apis.Oauth2.v2.dll
Syntax
public class Oauth2Service : BaseClientService, IClientService, IDisposable
Constructors
Oauth2Service()
Constructs a new service.
Declaration
public Oauth2Service()
Oauth2Service(Initializer)
Constructs a new service.
Declaration
public Oauth2Service(BaseClientService.Initializer initializer)
Parameters
Type | Name | Description |
---|---|---|
BaseClientService.Initializer | initializer | The service initializer. |
Fields
DiscoveryVersionUsed
The discovery version used to generate this service.
Declaration
public static DiscoveryVersion DiscoveryVersionUsed
Field Value
Type | Description |
---|---|
DiscoveryVersion |
Version
The API version.
Declaration
public const string Version = "v2"
Field Value
Type | Description |
---|---|
string |
Properties
BasePath
Gets the service base path.
Declaration
public override string BasePath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
BaseUri
Gets the service base URI.
Declaration
public override string BaseUri { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
BatchPath
Gets the batch base path; null
if unspecified.
Declaration
public override string BatchPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
BatchUri
Gets the batch base URI; null
if unspecified.
Declaration
public override string BatchUri { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Features
Gets the service supported features.
Declaration
public override IList<string> Features { get; }
Property Value
Type | Description |
---|---|
IList<string> |
Overrides
Name
Gets the service name.
Declaration
public override string Name { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Userinfo
Gets the Userinfo resource.
Declaration
public virtual UserinfoResource Userinfo { get; }
Property Value
Type | Description |
---|---|
UserinfoResource |
Methods
Tokeninfo()
Declaration
public virtual Oauth2Service.TokeninfoRequest Tokeninfo()
Returns
Type | Description |
---|---|
Oauth2Service.TokeninfoRequest |