This will bring back a list of all of the directories and files for the user that is currently authenticated. List is just a way of getting back a list of everything that is currently on Google drive. The only difference is that the mime type for a directory is ‘application/’. In Google drive everything is a file, even directories. Now we want to get a list of all of the files and direcories on currently on our Google Drive account. I will not be going into how to create a valid Drive service if you haven’t created one already please go read that tutorial then come back here. This tutorial assumes that you have already read the tutorial about Google Drive API with C#. Make sure your project is at least set to. Under APIs be sure to enable the Google Drive API and Google Drive SDK, as always don’t forget to add a product name and email address on the consent screen form. To do that you must first register your application on Google Developer console. Like with most of the Google APIs you need to be authenticated in order to connect to them. net – Upload, update, patch, delete, trash 5 List all of the files and directories.
0 Comments
Leave a Reply. |