// 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)); }
// 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)); }
// Method for constructing token public static GoogleSheetProperty Create(string apiKey, string spreadsheetId) { var ret = new GoogleSheetProperty(spreadsheetId); return(ret.InitializeApiKey(apiKey)); }