Skip to main content

Upcoming changes to Google Drive API

Comments

8 comments

  • kgs
    Howdy! I use Google Drive as our nightly backup destination. Running CENTOS 7.9 virtuozzo [server] v96.0.15. I received the following notice from Google. Is there anything that I need to do? Thanks! --- Hello Google Drive Developer, We have identified you as a Developer who has used the Drive API in the last 30 days. We are writing to let you know that on September 13, 2021, Drive will apply a security update that will change the links used to share some files, and may lead to some new file access requests. Access to files won"t change for people who have already viewed or modified these files. Please update your code as detailed below before September 13, 2021, to avoid failing requests. What do I need to know? Items that have a file metadata in the Drive API response.
    • If the file is a shortcut file, then the resource key for the target of the shortcut can be read from the shortcutDetails.targetResourceKey field of the same resource.
    • URL type fields such as exportLinks, webContentLink, and webViewLink will include the resourceKey.
    • Requests to the Drive API can specify one or more resource keys with the X-Goog-Drive-Resource-Keys HTTP request header.
    Learn more about this change from DriveApp from Apps Script has been updated to return the resource key of a file or folder with the getResourceKey method.
    • Note: When fetching a file or folder, the resource key can be specified on the getFileByIdAndResourceKey or getFolderByIdAndResourceKey methods.
    Changes to Drive UI Integrations If your application is integrated with the Drive UI to create or open items, it will receive resource keys when your application is invoked from the Drive UI.
    • The state information for a New URL will contain folderResourceKey, which is the resource key of the folder where the new item should be created.
    • The state for an Open URL will contain a mapping of file ID to resource key in the resourceKeys field.
    Learn more about integrating with the Drive UI
    0
  • cPRex Jurassic Moderator
    Thanks for letting us know about this. I've reached out to our backup team and I'll let you know what we find out soon.
    0
  • cPRex Jurassic Moderator
    The backup team is looking into this to see what adjustments need to be made on our side. I can't say for sure what work that will entail, but if I get updates I'll be sure to post them.
    0
  • Wil Colón
    Upvoting this, I received the same email from Google.
    0
  • cPRex Jurassic Moderator
    Update - our internal case number for this project is CPANEL-38230. You can follow along with this case here:
    0
  • cPRex Jurassic Moderator
    Update - our backup team has confirmed our system is all set to work with these changes.
    0
  • Lune34
    Update - our backup team has confirmed our system is all set to work with these changes.

    Everything seems to be working as normal. Thank-you. :)
    0
  • cPJustinD
    Hey there! I'm glad to hear that everything is now working as expected! If you have any other questions or concerns, please let us know! :)
    0

Please sign in to leave a comment.