google 文档不需要 resourcekey 吗?
Is the google doc doesn't need the resourcekey?
您好,我正在尝试使用 google 驱动器 api 获取资源密钥
我已经根据你们的建议更新了安全性
但是我仍然无法从文件的 get api 中获取 resourceKey 和 fileId
所以我想检查 google 文档,例如 Google Docs、Google Sheets、Google Slides、Google Form 不需要 resourceKey 来共享 link 例如 exportLinks、webContentLink 和 webViewLink
还有当我使用 google 驱动文件的获取方法时,google 文档的文件类型是否具有 resourceKey?
我附上我的 google 电子表格文件元数据的回复
请检查关注并告诉我我错了或错过了什么
"kind": "drive#file",
"id": "1X8LSm3IuA90EDGg3DRQ39cs87OoQYDjxrJwoxq0bPx4",
"name": "CSS_v1_lpNnyJfGaiAo_6",
"mimeType": "application/vnd.google-apps.spreadsheet",
"starred": false,
"trashed": false,
"explicitlyTrashed": false,
"spaces": [
"drive"
],
"version": "8",
"webViewLink": "https://docs.google.com/spreadsheets/d/1X8LSm3IuA90EDGg3DRQ39cs87OoQYDjxrJwoxq0bPx4/edit?usp=drivesdk",
"iconLink": "https://drive-thirdparty.googleusercontent.com/16/type/application/vnd.google-apps.spreadsheet",
"hasThumbnail": true,
"thumbnailLink": "https://docs.google.com/feeds/vt?gd=true&id=1X8LSm3IuA90EDGg3DRQ39cs87OoQYDjxrJwoxq0bPx4&v=2&s=AMedNnoAAAAAYSRx8dDKAoD1Q16M021MvQjUnGn3rCDS&sz=s220",
"thumbnailVersion": "2",
"viewedByMe": true,
"viewedByMeTime": "2021-04-08T08:51:13.861Z",
"createdTime": "2021-04-08T08:45:54.117Z",
"modifiedTime": "2021-04-08T08:46:04.434Z",
"modifiedByMe": false,
"sharedWithMeTime": "2021-04-08T08:51:13.861Z",
"owners": [
{
"kind": "drive#user",
"displayName": "realsearch@realsearch-1611815321770.iam.gserviceaccount.com",
"me": false,
"permissionId": "08922093982962563488",
"emailAddress": "realsearch@realsearch-1611815321770.iam.gserviceaccount.com"
}
],
"lastModifyingUser": {
"kind": "drive#user",
"displayName": "realsearch@realsearch-1611815321770.iam.gserviceaccount.com",
"me": false,
"permissionId": "08922093982962563488",
"emailAddress": "realsearch@realsearch-1611815321770.iam.gserviceaccount.com"
},
"shared": true,
"ownedByMe": false,
"capabilities": {
"canAddChildren": false,
"canAddMyDriveParent": false,
"canChangeCopyRequiresWriterPermission": false,
"canChangeSecurityUpdateEnabled": false,
"canChangeViewersCanCopyContent": false,
"canComment": true,
"canCopy": true,
"canDelete": false,
"canDownload": true,
"canEdit": true,
"canListChildren": false,
"canModifyContent": true,
"canMoveChildrenWithinDrive": false,
"canMoveItemIntoTeamDrive": false,
"canMoveItemOutOfDrive": false,
"canMoveItemWithinDrive": true,
"canReadRevisions": true,
"canRemoveChildren": false,
"canRemoveMyDriveParent": true,
"canRename": true,
"canShare": true,
"canTrash": false,
"canUntrash": false
},
"viewersCanCopyContent": true,
"copyRequiresWriterPermission": false,
"writersCanShare": true,
"permissions": [
{
"kind": "drive#permission",
"id": "anyoneWithLink",
"type": "anyone",
"role": "writer",
"allowFileDiscovery": false
},
{
"kind": "drive#permission",
"id": "08922093982962563488",
"type": "user",
"emailAddress": "realsearch@realsearch-1611815321770.iam.gserviceaccount.com",
"role": "owner",
"displayName": "realsearch@realsearch-1611815321770.iam.gserviceaccount.com",
"deleted": false
}
],
"permissionIds": [
"anyoneWithLink",
"08922093982962563488"
],
"quotaBytesUsed": "0",
"isAppAuthorized": false,
"exportLinks": {
"application/x-vnd.oasis.opendocument.spreadsheet": "https://docs.google.com/spreadsheets/export?id=1X8LSm3IuA90EDGg3DRQ39cs87OoQYDjxrJwoxq0bPx4&exportFormat=ods",
"text/tab-separated-values": "https://docs.google.com/spreadsheets/export?id=1X8LSm3IuA90EDGg3DRQ39cs87OoQYDjxrJwoxq0bPx4&exportFormat=tsv",
"application/pdf": "https://docs.google.com/spreadsheets/export?id=1X8LSm3IuA90EDGg3DRQ39cs87OoQYDjxrJwoxq0bPx4&exportFormat=pdf",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "https://docs.google.com/spreadsheets/export?id=1X8LSm3IuA90EDGg3DRQ39cs87OoQYDjxrJwoxq0bPx4&exportFormat=xlsx",
"text/csv": "https://docs.google.com/spreadsheets/export?id=1X8LSm3IuA90EDGg3DRQ39cs87OoQYDjxrJwoxq0bPx4&exportFormat=csv",
"application/zip": "https://docs.google.com/spreadsheets/export?id=1X8LSm3IuA90EDGg3DRQ39cs87OoQYDjxrJwoxq0bPx4&exportFormat=zip",
"application/vnd.oasis.opendocument.spreadsheet": "https://docs.google.com/spreadsheets/export?id=1X8LSm3IuA90EDGg3DRQ39cs87OoQYDjxrJwoxq0bPx4&exportFormat=ods"
},
"linkShareMetadata": {
"securityUpdateEligible": false,
"securityUpdateEnabled": true
}
}
从 2021 年 9 月 13 日星期一开始,Google 将开始对 Google 云端硬盘实施安全更新。像您这样拥有或管理受影响文件的用户将从 2021 年 7 月 26 日星期一开始收到有关受影响文件的通知。
此安全更新添加了一个资源密钥,使来自 Google 云端硬盘文件的共享链接更加安全。当文件链接更新时,用户可能会收到新的文件访问请求。那些在更新之前无法访问文件的人将不得不使用包含资源密钥的 URL 来访问文件。
为避免断开链接,用户应在 9 月 13 日之前更新 Google 其网站和共享资源上的驱动器链接。
更新影响开发者
受影响的项目是那些具有类型=域或 type=anyone
的驱动器文件 API 权限的项目,其中 withLink=true
(v2) or allowFileDiscovery=false
(v3).
除了项目 ID 之外,应用程序可能还需要资源密钥才能访问文件。使用 Google’s Developer resource 详细了解此更新将如何影响您的项目。
google文档不需要resourcekey吗?
只有您可以决定您的文件及其当前拥有的权限是否需要您使用资源密钥。
找到受影响的文件
并非所有文件都受此安全更新影响。当我试图对我的应用程序进行更改时,我也遇到了这个问题,即当 google 驱动器文档明确说明它应该存在时,文件的元数据不显示 resourceKey。我的问题是我假设所有文件都有 resourceKey,但我发现事实并非如此。我的 google 驱动器中只有一些文件有 resoucekey。
您可以通过搜索
找到哪些文件受到此安全更新的影响
is:security_update_applied
在 google 驱动器搜索字段中。
如果您尝试获取这些文件的元数据,您可以在底部找到资源密钥,如文档所述。
您好,我正在尝试使用 google 驱动器 api 获取资源密钥 我已经根据你们的建议更新了安全性
但是我仍然无法从文件的 get api 中获取 resourceKey 和 fileId 所以我想检查 google 文档,例如 Google Docs、Google Sheets、Google Slides、Google Form 不需要 resourceKey 来共享 link 例如 exportLinks、webContentLink 和 webViewLink 还有当我使用 google 驱动文件的获取方法时,google 文档的文件类型是否具有 resourceKey?
我附上我的 google 电子表格文件元数据的回复 请检查关注并告诉我我错了或错过了什么
"kind": "drive#file",
"id": "1X8LSm3IuA90EDGg3DRQ39cs87OoQYDjxrJwoxq0bPx4",
"name": "CSS_v1_lpNnyJfGaiAo_6",
"mimeType": "application/vnd.google-apps.spreadsheet",
"starred": false,
"trashed": false,
"explicitlyTrashed": false,
"spaces": [
"drive"
],
"version": "8",
"webViewLink": "https://docs.google.com/spreadsheets/d/1X8LSm3IuA90EDGg3DRQ39cs87OoQYDjxrJwoxq0bPx4/edit?usp=drivesdk",
"iconLink": "https://drive-thirdparty.googleusercontent.com/16/type/application/vnd.google-apps.spreadsheet",
"hasThumbnail": true,
"thumbnailLink": "https://docs.google.com/feeds/vt?gd=true&id=1X8LSm3IuA90EDGg3DRQ39cs87OoQYDjxrJwoxq0bPx4&v=2&s=AMedNnoAAAAAYSRx8dDKAoD1Q16M021MvQjUnGn3rCDS&sz=s220",
"thumbnailVersion": "2",
"viewedByMe": true,
"viewedByMeTime": "2021-04-08T08:51:13.861Z",
"createdTime": "2021-04-08T08:45:54.117Z",
"modifiedTime": "2021-04-08T08:46:04.434Z",
"modifiedByMe": false,
"sharedWithMeTime": "2021-04-08T08:51:13.861Z",
"owners": [
{
"kind": "drive#user",
"displayName": "realsearch@realsearch-1611815321770.iam.gserviceaccount.com",
"me": false,
"permissionId": "08922093982962563488",
"emailAddress": "realsearch@realsearch-1611815321770.iam.gserviceaccount.com"
}
],
"lastModifyingUser": {
"kind": "drive#user",
"displayName": "realsearch@realsearch-1611815321770.iam.gserviceaccount.com",
"me": false,
"permissionId": "08922093982962563488",
"emailAddress": "realsearch@realsearch-1611815321770.iam.gserviceaccount.com"
},
"shared": true,
"ownedByMe": false,
"capabilities": {
"canAddChildren": false,
"canAddMyDriveParent": false,
"canChangeCopyRequiresWriterPermission": false,
"canChangeSecurityUpdateEnabled": false,
"canChangeViewersCanCopyContent": false,
"canComment": true,
"canCopy": true,
"canDelete": false,
"canDownload": true,
"canEdit": true,
"canListChildren": false,
"canModifyContent": true,
"canMoveChildrenWithinDrive": false,
"canMoveItemIntoTeamDrive": false,
"canMoveItemOutOfDrive": false,
"canMoveItemWithinDrive": true,
"canReadRevisions": true,
"canRemoveChildren": false,
"canRemoveMyDriveParent": true,
"canRename": true,
"canShare": true,
"canTrash": false,
"canUntrash": false
},
"viewersCanCopyContent": true,
"copyRequiresWriterPermission": false,
"writersCanShare": true,
"permissions": [
{
"kind": "drive#permission",
"id": "anyoneWithLink",
"type": "anyone",
"role": "writer",
"allowFileDiscovery": false
},
{
"kind": "drive#permission",
"id": "08922093982962563488",
"type": "user",
"emailAddress": "realsearch@realsearch-1611815321770.iam.gserviceaccount.com",
"role": "owner",
"displayName": "realsearch@realsearch-1611815321770.iam.gserviceaccount.com",
"deleted": false
}
],
"permissionIds": [
"anyoneWithLink",
"08922093982962563488"
],
"quotaBytesUsed": "0",
"isAppAuthorized": false,
"exportLinks": {
"application/x-vnd.oasis.opendocument.spreadsheet": "https://docs.google.com/spreadsheets/export?id=1X8LSm3IuA90EDGg3DRQ39cs87OoQYDjxrJwoxq0bPx4&exportFormat=ods",
"text/tab-separated-values": "https://docs.google.com/spreadsheets/export?id=1X8LSm3IuA90EDGg3DRQ39cs87OoQYDjxrJwoxq0bPx4&exportFormat=tsv",
"application/pdf": "https://docs.google.com/spreadsheets/export?id=1X8LSm3IuA90EDGg3DRQ39cs87OoQYDjxrJwoxq0bPx4&exportFormat=pdf",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "https://docs.google.com/spreadsheets/export?id=1X8LSm3IuA90EDGg3DRQ39cs87OoQYDjxrJwoxq0bPx4&exportFormat=xlsx",
"text/csv": "https://docs.google.com/spreadsheets/export?id=1X8LSm3IuA90EDGg3DRQ39cs87OoQYDjxrJwoxq0bPx4&exportFormat=csv",
"application/zip": "https://docs.google.com/spreadsheets/export?id=1X8LSm3IuA90EDGg3DRQ39cs87OoQYDjxrJwoxq0bPx4&exportFormat=zip",
"application/vnd.oasis.opendocument.spreadsheet": "https://docs.google.com/spreadsheets/export?id=1X8LSm3IuA90EDGg3DRQ39cs87OoQYDjxrJwoxq0bPx4&exportFormat=ods"
},
"linkShareMetadata": {
"securityUpdateEligible": false,
"securityUpdateEnabled": true
}
}
从 2021 年 9 月 13 日星期一开始,Google 将开始对 Google 云端硬盘实施安全更新。像您这样拥有或管理受影响文件的用户将从 2021 年 7 月 26 日星期一开始收到有关受影响文件的通知。
此安全更新添加了一个资源密钥,使来自 Google 云端硬盘文件的共享链接更加安全。当文件链接更新时,用户可能会收到新的文件访问请求。那些在更新之前无法访问文件的人将不得不使用包含资源密钥的 URL 来访问文件。
为避免断开链接,用户应在 9 月 13 日之前更新 Google 其网站和共享资源上的驱动器链接。
更新影响开发者
受影响的项目是那些具有类型=域或 type=anyone
的驱动器文件 API 权限的项目,其中 withLink=true
(v2) or allowFileDiscovery=false
(v3).
除了项目 ID 之外,应用程序可能还需要资源密钥才能访问文件。使用 Google’s Developer resource 详细了解此更新将如何影响您的项目。
google文档不需要resourcekey吗?
只有您可以决定您的文件及其当前拥有的权限是否需要您使用资源密钥。
找到受影响的文件
并非所有文件都受此安全更新影响。当我试图对我的应用程序进行更改时,我也遇到了这个问题,即当 google 驱动器文档明确说明它应该存在时,文件的元数据不显示 resourceKey。我的问题是我假设所有文件都有 resourceKey,但我发现事实并非如此。我的 google 驱动器中只有一些文件有 resoucekey。
您可以通过搜索
找到哪些文件受到此安全更新的影响is:security_update_applied
在 google 驱动器搜索字段中。
如果您尝试获取这些文件的元数据,您可以在底部找到资源密钥,如文档所述。