How do I get a Google Drive App's Open URL?

前端 未结 1 1850
梦如初夏
梦如初夏 2021-01-24 16:03

I am hoping to programatically open a drive file with a particular app using the Google drive APIs.

The aim is to mimic the GUI drive method of launching an app using t

相关标签:
1条回答
  • 2021-01-24 16:28

    I believe if you have the scope set for drive.apps.readonly you should be able to use the File method getOpenWithLinks to discover the URLs. Just testing it now, the getOpenWithLinks method isn't available on the File class. I wonder if it has been deprecated? Certainly I can't find evidence of it being so.

    https://developers.google.com/resources/api-libraries/documentation/drive/v2/java/latest/com/google/api/services/drive/model/File.html#getOpenWithLinks()

    Revision: the getOpenWithLinks methods are available again in revision 75 of the v2 drive API.

    0 讨论(0)
提交回复
热议问题