參考文獻
推: http://white5168.blogspot.com/2016/09/google-sheets-api-google-spreadsheet.html#.Y2OHCXZByUk
很混亂、尚待整理。
一、於Visual Studio中,事先以NuGet安裝好Google.Apis.Sheets.v4。
二、專案中Imports以下命名空間:
準備工作
使用JAVA + Google Sheets API V4:https://pclevin.blogspot.com/2018/01/google-api-google-sheets-google-java.html
NuGet,文件說明:https://learn.microsoft.com/zh-tw/nuget/what-is-nuget
NuGet是Visual Studio內為.Net用戶所提供的一套安裝第三方套件的工具。
在 Visual Studio 中,使用 NuGet 套件管理員來安裝和管理套件:https://learn.microsoft.com/zh-tw/nuget/consume-packages/install-use-packages-visual-studio
使用Package Manage提示來安裝Google.Apis.Sheets.v4:
工具→程式庫套件管理員→Package Manage Console
PM> Install-Package Google.Apis.Sheets.v4
1.啟用 Google API
2.建立應用程式憑證
申請Google Sheets API
操作 Sheet API 讀取 Google 試算表取得 JSON 資料: https://www.wfublog.com/2022/05/sheet-api-read-google-spreadsheet-json.html
啟用 Google API: https://blog.csdn.net/u012410733/article/details/124283114
蛤?原來Google Sheets這麼簡單? https://ithelp.ithome.com.tw/articles/10234325 (內有API詳細啟用步驟)
Google Sheets API v4 使用 C# (2) --- 更新寫入 Google Spreadsheet: http://white5168.blogspot.com/2017/01/google-sheets-api-v4-c-2-google.html#.Y2M6Z3ZByUk (內有影片)
C# .Net 如何寫入 google sheet: https://ithelp.ithome.com.tw/questions/10207707
https://hsuan9522.medium.com/google-sheet-v4-api-efdec9a96bf3
1.登入google後進入啟用的網站,https://console.developers.google.com/start/api?id=sheets.googleapis.com
※建立專案名稱「Kbook Project」。
Google Sheets API V4
https://developers.google.com/sheets/api
https://dotblogs.com.tw/rainmaker/2016/08/08/230646
參考資料
https://smlpoints.com/notes-google-spreadsheet-api-v4-for-development-as-api-source.html