Questions tagged [google-api-dotnet-client]

The Google APIs Client Library for .NET is a generic .NET runtime client for Google Services. It supports OAuth2.0 authentication, and is able to generate strongly typed client libraries for Discovery-based services.

The Google APIs client library for .NET provides simple, flexible, and powerful access to Google APIs such as Drive, YouTube, Calendar, Storage and Analytics.

The library supports OAuth2.0 authentication, and is able to generate strongly typed client libraries for Discovery-based services.

Requirements

  • .net framework 4.5

Supported platforms

  • .NET Framework 4.5 and 4.6
  • .NET Core (via netstandard1.3 support)
  • Windows 8 Apps
  • Windows phone 8 and 8.1
  • Portable class libraries

Developer documentation

Nuget Packages

To make it easer for you to develop with the Google APIs using the Google API client Library for .NET we have released a number of NuGet packages. A full list of all the packages available can be found at Google.APIs nuget

1271 questions
6
votes
1 answer

Upload file to Google Team Drive

I've been scouring the internet for a few hours trying to figure out what is necessary to upload a file that will be contained within a Team Drive. I've read most of the documentation, the only interesting bits / mention of team drives I found are…
caesay
  • 16,932
  • 15
  • 95
  • 160
6
votes
1 answer

List all Files and Folders from Google Drive V2 using .Net

I am creating an application using Google Drive API in .Net using the Google API .Net client library. In that list request get all files from root folder as well as from child folders and shared files. I don't want to list them all. I want list of…
Srusti Thakkar
  • 1,835
  • 2
  • 22
  • 52
6
votes
4 answers

Create a new sheet in Google Sheet c#

I am able to retrieve and update values in Google Sheets using the code below: private void btnUpdate_Click(object sender, EventArgs e) { if (cbYards.Text == "Select Yard") { MessageBox.Show(@"Please…
Ibanez1408
  • 4,550
  • 10
  • 59
  • 110
6
votes
2 answers

Unable to install NuGet package: Falling back to NuGet Local Cache

I am new in the stack overflow community. Right now I am learning c#(using visual studio 2012) and working on uploading files in a google drive. I followed this tutorial http://www.daimto.com/google-drive-api-c-upload/ but sadly I have getting…
user3928241
  • 135
  • 2
  • 10
6
votes
5 answers

How to add a sheet in google sheets API v4 in C#?

I've been using Google Sheets API, and following The Google Guide. However there is no example, even beyond the second page of google, to add a worksheet and write to a new sheet in .NET. There is plenty for js, but I have no idea on how to 1) add a…
Kat
  • 2,460
  • 2
  • 36
  • 70
6
votes
1 answer

Web server received an invalid response while acting as a gateway or proxy server

When trying to deploy a web application to Azure using a service account with the Google .net client library it is returning with the following error 502 - Web server received an invalid response while acting as a gateway or proxy server. Code…
Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449
6
votes
1 answer

How can I use ASP.NET MVC Owin AccessToken in Google.Apis call?

I'm trying to use the AccessToken provided by Owin in Google.Apis requests but I'm receiveing the exception System.InvalidOperationException (Additional information: The access token has expired but we can't refresh it). My configuration of Google…
6
votes
1 answer

Saving OAuth tokens from Google API response to database?

I'm building an MVC app that will authenticate users on our website that want us to post events into their calendars. I've installed the .NET C# client library as well as the Auth and MVC packages. Using Google.Apis.Auth.OAuth2.Mvc I'm having…
DAC84
  • 1,254
  • 1
  • 20
  • 30
6
votes
1 answer

Google+ SignIn API and emails

I am trying to use the Google+ Sign-in API in ASP.NET using this code: var flow = new GoogleAuthorizationCodeFlow(new GoogleAuthorizationCodeFlow.Initializer { ClientSecrets = secrets, Scopes = new string[] { PlusService.Scope.PlusLogin…
el_shayan
  • 2,735
  • 4
  • 28
  • 42
6
votes
3 answers

GoogleWebAuthorizationBroker in MVC For Google Drive Access

I'm stuck trying to access a specific Google drive account from a MVC app. All I need is for the MVC web app to access my google drive scan for a few files and alter the database based on the contents of the google drive. The problem is when…
6
votes
2 answers

Google Analytics OAuth with AccessType = Offline in C#

I want to use Google Analytics API using OAuth. I am using this library: http://code.google.com/p/google-api-dotnet-client/ The following code is used for authentication: var credential = GoogleWebAuthorizationBroker.AuthorizeAsync( new…
Dennis
  • 1,027
  • 1
  • 14
  • 30
6
votes
4 answers

How to make CalendarService object using access_token?

I am trying to use google calendar v3 api using .net client. I am follwing a hybrid approach. I have authorized my application using oauth2 using only http post request and I get the access_token. But as .net client of calendar v3 api, I need to…
6
votes
1 answer

Route Google Analytics v3 API through a proxy server

We are using Google Analytics API v3 (dot net version) for reporting some statistical data on our website. I have the code running fine on my local machine, but it wouldn't work on the production server due to some firewall rules. Our system admin…
5
votes
1 answer

Why is my UpdateFile getting a null in the response in google drive api v3 using c#?

I have an application that is written in C# so that it can be a stand-alone .exe with parameters passed in via cmd at runtime. I am trying to update a file in google drive without changing the fileid so that any links using that id will not be…
5
votes
1 answer

Allowing to download a google doc only if the file is shared publicly

I know that when authorizing requests with OAuth, we can use several scopes to ask for a specific permission from the user. I want to ask for the permission for downloading files with publicly shared links (the user will actually provide this…