Method | Description | |
---|---|---|
AuthenticateServiceAccount ( string serviceAccountEmail, string serviceAccountCredentialFilePath, Array scopes ) : GmailService |
Authenticating to Google using a Service account Documentation: https://developers.google.com/accounts/docs/OAuth2#serviceaccount
|
|
AuthenticateServiceAccount ( string serviceAccountEmail, string serviceAccountCredentialFilePath, Array scopes, string email ) : GmailService |
Authenticating to Google using a Service account Documentation: https://developers.google.com/accounts/docs/OAuth2#serviceaccount
|
public static AuthenticateServiceAccount ( string serviceAccountEmail, string serviceAccountCredentialFilePath, Array scopes ) : GmailService | ||
serviceAccountEmail | string | From Google Developer console https://console.developers.google.com |
serviceAccountCredentialFilePath | string | Location of the .p12 or Json Service account key file downloaded from Google Developer console https://console.developers.google.com |
scopes | Array | |
return | GmailService |
public static AuthenticateServiceAccount ( string serviceAccountEmail, string serviceAccountCredentialFilePath, Array scopes, string email ) : GmailService | ||
serviceAccountEmail | string | From Google Developer console https://console.developers.google.com |
serviceAccountCredentialFilePath | string | Location of the .p12 or Json Service account key file downloaded from Google Developer console https://console.developers.google.com |
scopes | Array | |
string | ||
return | GmailService |