谷歌推动Android API共享问题 [英] Google Drive android API sharing issue

查看:125
本文介绍了谷歌推动Android API共享问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能分享在谷歌创建的文件驱动器与采用了android驱动API特定谷歌用户?据说(的http://googledevelopers.blogspot.ru/2014/01/introducing-google-drive-android-api.html)说:谷歌驱动器API,提供专门的功能......包括访问元数据和共享功能。不过,我找不到任何方式使用的Andr​​oid驱动的API来共享文件。有没有在API文档中没有一丝关于如何做到这一点。如果它很重要,我想分享储存在我的应用程序的AppFolder文件(该应用程序的其他用户应该能够访问它)。

Is it possible to share file created at google drive with specific google users using android drive API? It is said (http://googledevelopers.blogspot.ru/2014/01/introducing-google-drive-android-api.html) that "Google Drive API offers specialized functionality... including access to metadata and sharing features". However, I couldn't find any means to share file using android drive API. There's no hint in API documentation about how to do it. If it matters, I'm going to share file stored in AppFolder of my app (other users of the app should be able to access it).

推荐答案

共享目前不支持Android的特定的API中(抱歉的博客文章的混乱措辞。)

Sharing is not currently supported in the Android-specific API (sorry for the confusing wording in the blog post.)

您可以回退到网络API做的共享(例如,修改权限)。要使用Web API,使用<一个href="https://developer.android.com/reference/com/google/android/gms/drive/DriveId.html#getResourceId%28%29"相对=nofollow> DriveId.getResourceId()。

You can fallback to the web API to do sharing (e.g, modifying permissions). To use the web API, use DriveId.getResourceId().

然而,当前正在使用AppFolder文件是特殊的。该文件夹中的项目将不能被共享。他们只看到你的应用程序和特定用户。

However, files that are in the AppFolder are special. Items in that folder cannot currently be shared. They are only visible to your app and the specific user.

这篇关于谷歌推动Android API共享问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆