title: How to obtain a resourceKey using Google Drive API?
body: <p>With the recent security update for Drive document URLs and resource key <a href="https://developers.google.com/drive/api/v3/resource-keys" rel="nofollow noreferrer">https://developers.google.com/drive/api/v3/resource-keys</a> it's not clear how to get the resource key using the API. For instance the <code>create</code> method doesn't return <code>resourceKey</code>, only <code>id</code> :</p>
  <pre><code>drive.files.create {
    resource: fileMetadata
    media: media
    fields: 'id,resourceKey,shortcutDetails'
  }, (err, body) -&gt;
    ...
  </code></pre>