Get shared link through Google Drive API

后端 未结 4 820
庸人自扰
庸人自扰 2020-11-30 06:14

I am working on an app using Google Drive. I want the user to be able to share files by link, setting the permissions to anyone and withLink as des

4条回答
  •  情书的邮戳
    2020-11-30 06:18

    You can use the alternateLink property in the File resource to get a link that can be shared for opening the file in the relevant Google editor or viewer:

    https://developers.google.com/drive/v2/reference/files

    Update

    [With API V3](https://developers.google.com/drive/api/v3/reference/files it is suggested to use the webViewLink property.

提交回复
热议问题