Unable to get the shared with me files with the Google Drive Api using Filters.sharedWithMe()

后端 未结 1 1926
走了就别回头了
走了就别回头了 2021-01-17 02:07

I have some files in my Google Drive that others have shared with me and I would like to be able to query them. Unfortunately the MetadataBuffer\' result co

相关标签:
1条回答
  • 2021-01-17 02:34

    As said also on unable to query the files "shared with me" from google drive using Google drive api android , at the moment drive apis let you access only data in drive made by your app.

    you can verify by yourself by changing Query query = new Query.Builder().addFilter(Filters.sharedWithMe()).build(); in Query query = new Query.Builder().build();

    and you see only one folder, named "App Data"

    to access other files you need to use drive java api, as told in https://developers.google.com/drive/android/auth#connecting_and_authorizing_the_google_drive_android_api

    Note: The Google Drive Android API currently only supports drive.file and drive.appfolder authorization scopes. If your application requires additional permissions or features not yet available in the Drive Android API, you must use the Google APIs Java Client.

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