Reputation: 1436
With the recent security update for Drive document URLs and resource key https://developers.google.com/drive/api/v3/resource-keys it's not clear how to get the resource key using the API. For instance the create
method doesn't return resourceKey
, only id
:
drive.files.create {
resource: fileMetadata
media: media
fields: 'id,resourceKey,shortcutDetails'
}, (err, body) ->
...
Upvotes: 4
Views: 2561
Reputation: 1221
The security update needs to be applied in order for the resourceKey to be useable to you.
To apply the security update:
Reference: Decide how to apply link-sharing security update to Drive
Upvotes: 2