We can do that with a call to the /drive/v3/files endpoint, passing in a query for any files that have the folder id as one of their parents. Let's see some code to list the files in the folder. Usually you'll receive a sharing URL that looks something like this, with the folder id as part of the URL: Now we need the folder id of the Google Drive folder that's been shared with you. Obviously you should avoid exposing this key to the end users of your application. You can generate one for use with your application at the Google Developer Console. ![]() There is a Google Drive API we can use for this purpose, but first we need an API key. Closely related to my recent post about how to list and download the contents of a GitHub repo in C#, I also wanted to be able to list the files in a publicly shared Google Drive folder and download them from C#.
0 Comments
Leave a Reply. |