C# Class ServiceAccountExample, code

显示文件 Open project: shendongnian/code Class Usage Examples

Public Methods

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

Method Details

AuthenticateServiceAccount() public static method

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

AuthenticateServiceAccount() public static method

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
return GmailService