Ejemplo n.º 1
0
        // Method for constructing OAuth2 User account
        public static Task <GoogleSheetProperty> Create(string clientID, string clientSecret, string spreadsheetId)
        {
            var ret = new GoogleSheetProperty(spreadsheetId);

            return(ret.InitializeUserCredential(clientID, clientSecret));
        }
Ejemplo n.º 2
0
        // Method for constructing OAuth2 Service account
        public static GoogleSheetProperty Create(string keyPath, string password, string serviceAccountEmail, string spreadsheetId)
        {
            var ret = new GoogleSheetProperty(spreadsheetId);

            return(ret.InitializeServiceAccount(keyPath, password, serviceAccountEmail));
        }
Ejemplo n.º 3
0
        // Method for constructing token
        public static GoogleSheetProperty Create(string apiKey, string spreadsheetId)
        {
            var ret = new GoogleSheetProperty(spreadsheetId);

            return(ret.InitializeApiKey(apiKey));
        }