云端硬盘 API 更新 [英] Drive API update

查看:16
本文介绍了云端硬盘 API 更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

上周我们收到了 Drive API 更新更改.

邮件内容:

非常感谢您能帮助确认以下两个问题:

  1. resourceKey我们试过了,还是不行,有具体的生效时间吗?

<块引用>

URL 类型字段,例如 exportLinks、webContentLink 和 webViewLink将包括 resourceKey.

目前,我们只是使用 webViewLink,是否还需要更新我们的代码来访问文件以包含适当的资源键?

解决方案

从 2021 年 9 月 13 日星期一开始,Google 将开始对 Google Drive 执行安全更新.从 2021 年 7 月 26 日星期一开始,我们会通知像您这样拥有或管理受影响文件的用户.

此安全更新添加了一个资源密钥,可以更安全地共享来自 Google 云端硬盘文件的链接.当文件链接更新时,用户可能会收到新的文件访问请求.那些在更新之前没有访问过文件的人将不得不使用包含资源键的 URL 来访问文件.

为避免链接失效,用户应在 9 月 13 日之前更新其网站和共享资源上的 Google 云端硬盘链接.

更新影响开发者

受影响的项目是那些拥有 Drive File API 权限且 type=domain 或 type=anyone 其中 withLink=true (v2)allowFileDiscovery=false (v3).

除了项目 ID 之外,应用程序可能还需要资源密钥才能访问文件.使用 Google 的开发者资源详细了解此更新将如何影响您的项目.

访问

您还可以通过转到 Google 管理员来检查您的域中的 resourceKey 安全更新是否已激活.

We got the Drive API update changes last week.

The email content:

Very appreciate if you can help to confirm the following two questions:

  1. We have tried the resourceKey, but it didn't work, is there a specific time for it to take effect?

URL type fields such as exportLinks, webContentLink, and webViewLink will include the resourceKey.

Currently, we are just using the webViewLink, do we still need to update our code for accessing files to include the appropriate resource keys?

解决方案

Beginning Monday, September 13, 2021, Google will begin enforcing a security update to Google Drive. Users like you who own or manage impacted files will be notified about the affected files beginning Monday, July 26, 2021.

This security update adds a resource key that makes sharing links from Google Drive files more secure. When file links are updated, users may receive new file access requests. Those who do not have accessed to the files before the update will have to use URLs containing resource keys to access the files.

To avoid broken links, users should update Google Drive links on their websites and shared resources before September 13.

Update Impacts Developers

Affected items are those that have a Drive File API permission with type=domain or type=anyone where withLink=true (v2) or allowFileDiscovery=false (v3).

In addition to the item ID, applications may need a resource key to access files. Use Google’s Developer resource to learn more about how this update will impact your projects.

access

You can also check that the resourceKey security update is already activated in your domain by going to Google Admin.

这篇关于云端硬盘 API 更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆