Reputation: 1137
I'd like to list the Google Drive shared drives under my account. I'm using their Drives: list API to do so. Running it in the console succeeds but gives me an empty list of drives, and I can't find any clues as to why.
I looked at their docs for implementing shared drive support but none of it's relevant to listing drives.
Things I've checked:
Upvotes: 0
Views: 1796
Reputation: 26836
Shared drives-> New shared drive...
or programmaticaly with Drives:CreateConclusion: You cannot retrieve folders that have been shread with you with the Drives:list
method.
To retrieve folders that have been shared with you, you need to
includeItemsFromAllDrives
and supportsAllDrives
to true
q
parameter to mimeType = 'application/vnd.google-apps.folder'
to narrow down results.Upvotes: 2