当前位置: 动力学知识库 > 问答 > 编程问答 >

google drive sdk - Sharing a link to file from custom app

问题描述:

We have created a web based drive app that is storing files with a custom mime-type on Google Drive.

Users can share the file by adding collaborators in the "Share" dialog.

However, sending the public link to an anonymous user will not provide a link to our app when clicking on that link.

It just provides the generic drive preview with an option to download the file.

How can we implement the public link just in the way Google Docs is working?

We'd like to open our app when users are clicking on the shared link.

The public link created by opening the share dialog from Google Drive for one of the files created with our app looks like this:

https://drive.google.com/file/d/0B0oWsMDAc_SiNlFKeEZ3eW8zRUU/view?usp=sharing

When opening the share dialog from Google Drive for a Google Form it looks like this:

https://docs.google.com/forms/d/1pLuIz5e3Qeeo-F7qvZlvRt7xhFvpw2W62u8UjrT5xV8/edit?usp=sharing

So what we are looking for is to create a publish link to our application (just like the second link is directing to forms) instead of the generic drive preview page.

分享给朋友:
您可能感兴趣的文章:
随机阅读: