Notice: important security update for Drive document URLs and resource keys. For more information, refer to Access link-shared files using resource keys

Migrate to v3

If you are currently using Drive API v2, you can migrate to v3.

You should review the V2 to v3 reference for a complete map of all resource differences between versions.

The Drive API version is set differently for each language:

      var DISCOVERY_DOCS = [""];
  • For Python, you specify the version when you build the service object. For an example, see Python Quickstart.
   service = build('drive', 'v3', credentials=creds)
  • For Node.js, you define the version when you set the constructor. For an example, see Node.js Quickstart.
   const drive ={version: 'v3', auth});