簡體   English   中英

警告您必須升級到最新版本的 google-spreadsheet

[英]Warning you must upgrade to the latest version of google-spreadsheet

當我從谷歌電子表格中獲取一些數據並插入到數據庫中時,我正在嘗試實施一個項目。 插入部分對我來說還不重要。 當我嘗試從 google 電子表格文檔中獲取數據時,我收到此警告!

 WARNING! You must upgrade to the latest version of google-spreadsheet!
 Google's deprecation date for the v3 sheets API is March 3rd 2020
 Bad news - this version of this module will stop working on that date :(
 Good news - the new version of the module uses the newer v4 api :)
 However, there are breaking changes, so please see the docs site
 https://theoephraim.github.io/node-google-spreadsheet

它仍然給我數據,但我收到警告。 誰知道我如何擺脫那個警告?

Google Sheets API 已從 v3 版升級到 v4 版

這是什么意思?

  • 這意味着身份驗證客戶端的某些方法名稱、參數和構建已更改。
  • 如果您使用的是基於 v3 的舊代碼,那么將身份驗證客戶端構建為const sheets = google.sheets({version: 'v3', auth}); ,您的代碼將在不久的將來停止工作
  • 雖然 Google 將 2020 年 3 月 3 日指定為棄用日期,但仍有一些寬限期,但您的代碼可能隨時停止工作!
  • 因此,請通過更改為const sheets = google.sheets({version: 'v3', auth});來更新您的代碼const sheets = google.sheets({version: 'v3', auth});
  • 如有必要,根據v4 快速入門中提供的新程序調整身份驗證流程的其他部分
  • 瀏覽參考資料以查看您使用的任何請求是否已更改並根據需要進行調整。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM