且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用 Android API 设置 Drive 文件的权限 (com.google.android.gms.drive.DriveApi)

更新时间:2023-01-18 11:30:35

此功能目前在 Android 特定的 API 中不可用.您可以改为将 REST API 用于应用的这一部分,如 Java API 中所述授权客户.

This feature is not currently available in the Android-specific API. You can instead use the REST API for this portion of your app, authorized as described in the Java API Client.

如果您有文件的 DriveId,您可以从中获取资源 ID,您可以使用它在 Java REST API 中发出请求.

If you have a DriveId for the file, you can get the resourceId from it which you can use to make the requests in the Java REST API.