遷移至 Drive API v3

如果您目前使用 Drive API 第 2 版,可以遷移至第 3 版。

如要查看兩個版本之間的所有資源差異,請參閱 V2 至 V3 的參考資料

各語言的 {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});