遷移至 Drive API v3

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

建議您參閱 V2 至 3.0 版參考資料,取得各版本資源差異的完整地圖。

{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});