GmailClient(String, MailAddress, GmailScopes) Constructor

Initializes a new instance of the GmailClient class.

Definition

Namespace: DevCase.ThirdParty.Google.Gmail
Assembly: DevCase.net48.ThirdParty.GoogleServices (in DevCase.net48.ThirdParty.GoogleServices.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public GmailClient(
	string apiFile,
	MailAddress mailAddress,
	GmailScopes scopes
)

Parameters

apiFile  String
The client_secrets.json file generated by Gmail API console that contains the OAuthv2 login data such as the client id, client secret, and redirection URI.
mailAddress  MailAddress
The mail address to authorize Gmail service. (e.g: "yourmail@gmail.com")
scopes  GmailScopes
The Gmail OAuthv2 scope.

See Also