How to access the “Shared with me” root list with

2019-04-08 02:54发布

问题:

In the Google Drive SDK documentation, I can't figure out how to access the root list of files/folders shared with me by others, any idea?

I tried to search for files not owned by me, meaning query files/list with the following parameter:

"q=not 'me' in owners"

But that returns all the files owned by others, not only the "root list" of those files.

Thanks for your help.

回答1:

Apparently, there is a new search parameter, called sharedWithMe. Setting the Q to "sharedWithMe" is enough to receive the parent folders and files that were shared with the user. It can be combined with other parameters too - for example "sharedWithMe and trashed=false".

You have probably already found about it, but it might be useful to have an answer of this question.



回答2:

Something more like:

"q=not 'me' in owners and 'root' in parents"