

/ Setting this field will put the file in all of the provided folders. / Collection of parent folders which contain this file. Other wise it must be a valid directory file resource id, you can get this using list with search to find the directory you are looking for.

Send parent = root if you would like it at the top directory. The following method will create a new allow you to create a new directory. Remember directory’s are nothing but files with a different mime type. Now we have a drive service that we can preform perform though. 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#. You will probably need most of these using’s using System

net 4.0.Īdd the following NuGet Package PM> Install-Package 2 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 There is even a version of %appdata% on Google Drive where you can store your application specific files for each user. There are a lot of things you can do with the Google Drive API, List files and folders, Download files, Upload files, Change Files, Copy files, Delete Files, Trash Files, Create directory’s, delete directory’s. net Client library which makes accessing Google APIs much simpler. In this tutorial series, we will be looking into the Google Drive API, using the Google. Have you been trying to connect your website or application to Google Drive? Would you like to see a list of files or a list of Directories stored on Google Drive? Would you like to Upload a file to Google Drive or download a file from Google drive using C#. I recommend switching to Google Drive API v3 and not using this tutorial. An updated version of this tutorial for Google Drive API V3 can be found How to upload a file to Google Drive with C#.
