简体   繁体   中英

How do I list files publicly shared by me using google drive API?

The quickstart code on https://developers.google.com/drive/v3/web/quickstart/python lists 10 files from my Google Drive.

What should I do so that it lists only the files that I have publicly shared? Is there any parameter for that purpose?

Files.list has a 'q' property where you can filter search results. Following the Search for Files and Team Drives guide, you can use the 'visibility' filter:

visibility (string)

= , ' != ' The visibility level of the file.

Valid values are anyoneCanFind , anyoneWithLink , domainCanFind , domainWithLink , and limited .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM