C# Class ServiceAccountExample, code

Afficher le fichier Open project: shendongnian/code Class Usage Examples

Méthodes publiques

Méthode 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

Method Details

AuthenticateServiceAccount() public static méthode

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
Résultat GmailService

AuthenticateServiceAccount() public static méthode

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, 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
email string
Résultat GmailService