遷移至 Drive API v3

如果您目前使用的是 Drive API 第 2 版,可以改用第 3 版。

建議您參閱 V2 至第 3 版參考資料,完整瞭解不同版本的所有資源差異。

每種語言的 {drive_api_short} 版本設定方式如下:

      var DISCOVERY_DOCS = ["https://www.googleapis.com/discovery/v1/apis/drive/v3/rest"];
   service = build('drive', 'v3', credentials=creds)
   const drive = google.drive({version: 'v3', auth});