C# Класс ServiceAccountExample, code

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

AuthenticateServiceAccount() публичный статический Метод

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
Результат GmailService

AuthenticateServiceAccount() публичный статический Метод

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
Результат GmailService