How do I access the Shared With Me root list using the Google Drive SDK?

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

I tried to find files that do not belong to me, which means files / request list with the following parameter:

"q=not 'me' in owners" 

But this returns all files belonging to others, and not just the β€œroot list” of these files.

Thanks for your help.

+6
source share
2 answers

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

You have probably already found this, but it would be helpful to get an answer to this question.

+11
source

Something else similar:

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

-4
source

Source: https://habr.com/ru/post/925635/


All Articles