List Down Your Google Drive Files Using .NET | CodeGuru

List Down Your Google Drive Files Using .NET

Introduction The Google Drive platform provides a list of APIs, along with client libraries, language-specific examples, and documentation for developers to integrate Drive functionalities with Web and Mobile applications. Core functionalities of Google Drive are to download and upload. However, the Drive also provides searching, sharing and collaboration, file listing, and exporting functions. In this […]

Written By
Tapas Pal
Tapas Pal
Oct 8, 2018
1 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

Introduction

The Google Drive platform provides a list of APIs, along with client libraries, language-specific examples, and documentation for developers to integrate Drive functionalities with Web and Mobile applications. Core functionalities of Google Drive are to download and upload. However, the Drive also provides searching, sharing and collaboration, file listing, and exporting functions.

In this article, I will demonstrate to you, with an example of a C# console application, how to connect to your own personal Google Drive account and gather a list of file names and display in the console.

Prerequisites

To create and execute the sample console application that I will demonstrate, you’ll need:

  • A Google account with Google Drive enabled
  • Google Drive API Setup
  • A few files added in Google Drive
  • Visual Studio 2015 or later version

API Version Information

Following are the details of Google Drive API Version v3. Next, we will set up that API.

API Drive API
API Version v3
API Rev 133
API Docs https://developers.google.com/drive/
Discovery Name Drive
Generated At 2018-10-04 01:59:14 UTC
C# Generator google-apis-code-generator
Generator Version 1.5.1 / c#=1.10.0
Generator Build 2018-05-04 17:28:03 UTC
Advertisement

Set Up Drive API

Following are the setup steps developers need to complete before you can use the previously mentioned API.

Step 1

Google API Console (Create New Project)

That’s all for today. Happy coding!

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.