How to fetch public file folder from Google Drive Rest Api?

827 Views Asked by At

I am able to get files from my own drive. But I want to access files/folder which have been made public access by other account users.

2

There are 2 best solutions below

0
On

The drive.files.list() method will find public files. You just need to search for the public parent folder using the parent search term.

parent in ['0B1dafBJIrDNfdmJUSjBYckZseDg']
1
On

You can try using the sharedWithMe search parameter of the drive.files.list() method. See https://developers.google.com/drive/v3/web/search-parameters