예제 #1
0
 public static IEnumerable <string> GetSheetsName(this SheetsService service, string spreadsheetId)
 => service.GetSheets(spreadsheetId).Select(s => s.Properties.Title);
예제 #2
0
 /// <summary>
 /// 取得Google Sheet工作表
 /// </summary>
 public static Sheet GetSheet(this SheetsService service, string spreadsheetId, string sheetName)
 => service.GetSheets(spreadsheetId).SingleOrDefault(sheet => sheet.Properties.Title.Equals(sheetName));