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
0
votes
1 answer

Google Drive .net API 1.7 beta - long http response time?

I've been playing with the v2 GoogleDrive .NET API (1.7.0.110). Two weeks ago, I was getting really snappy response times from the http requests which the api created. But this past two weeks it's been really flaky.Specifically the http calls…
Dan G
  • 836
  • 11
  • 31
0
votes
1 answer

Google API DotNet Youtube playlist list fails with no PlaylistID

Thank you, I really appreciate your help! I am trying to get the .NET Google API Client to work, but I can't figure out how to do even the simple things. My Goal is to have a web page that loads a youtube playlist player at the top and just lists…
aproximation
  • 491
  • 4
  • 13
0
votes
1 answer

Sample Code for Using the Google BigQuery C# API library

I've searched StackOverflow and on the web and haven't found any code samples for using the Google BigQuery C# API library Within Visual Studio, I was successfully able to add the BigQuery NuGet Library: PM> Install-Package Google.Apis.Bigquery.v2…
0
votes
1 answer

Google OAuth 2 error redirect_uri_mismatch when using local DNS remapping

When I test my ASP.Net app locally, I use a DNS tool called DNSSpeeder which takes over the DNS process for my machine. In effect, I can setup www.mysite.com locally and enter an IP address like 192.168.178.200 and in my browser just enter…
Johann
  • 27,536
  • 39
  • 165
  • 279
0
votes
1 answer

bigQuery c#/Java - How to work with large result

I am new to bigQuery, and I am trying to understand better the Large result concept. I am trying to query over my Table with several select queries. I am using C# with the Google API, using the Asynchronous method as described…
0
votes
2 answers

Google Drive SDK File.List properties

I'm using v2 of the Google Drive SDK for C#. I get a FilesResource.List request from the Files.List().Execute(). The actual REST API shows the "properties" field should be included with this response; however, I cannot find any properties field on…
Randall
  • 512
  • 1
  • 5
  • 15
0
votes
2 answers

Accessing DriveService from C# Windows Service with stored tokens - invalid_grant exception

This is my first time in working with Google's Drive api, so I apologize ahead of time if I've gotten something wrong. Here's what I've got: I used a web app to manually walk through the OAuth2 dance so that I could get an AccessToken, RefreshToken,…
0
votes
3 answers

C# Google Drive SDK Why I cannot search item by its name?

I have strange problem. I have some folders in my Google Drive, and one is named myFolder. That folder has visibility option set to Anyone with the link. I want to get that folder ID. To do so, I have the following code ChildrenResource.ListRequest…
Tony
  • 12,405
  • 36
  • 126
  • 226
0
votes
1 answer

How to programatically retrieve the list of users added to a Google Calendar

I am writing an application using the Google calendar .Net v3 api that creates/edits/deletes calendar events using a service account - everything works great so far. One rule we have is that users are added manually to calendars and given "see all…
0
votes
1 answer

Google Calendar API v3 for dotnet : Events date datatype changed?

Yesterday, I wrote this code : EventsResource.ListRequest req = service.Events.List("primary"); req.TimeMin = DateTime.Now.AddMonths(-2).ToString("o"); req.ShowDeleted = true; req.UpdatedMin = LastSync.ToString("o"); …
0
votes
1 answer

.NET Google Calendar API v3 : mutilple account authentification

I'm trying to write a program that will synchronize events between a CRM and Google Calendar of several Google accounts. It's a Windows Console application. For each Google account, in the API Console I enabled the Calendar API, created an…
0
votes
1 answer

Google.Apis.Email_Migration_v2

I am attempting to retrieve the HttpStatusCode from every UploadAsync method call. I need the status code as to properly perform an exponential back-off algorithm to retry a failed upload, display an error message to the user when not retrying the…
0
votes
1 answer

Google apps Directory API (1.6 and above) DotNetOpenAuth not resolving

This code is changing fast and hard to get a handle on what works and what doesn't... I was looking at this post: Have you used Google's Directory API? Which is using the 1.4 library. I installed the 1.6 API through nuget. However, the…
Zonus
  • 2,313
  • 2
  • 26
  • 48
0
votes
1 answer

How to get/refresh an OAuth2 token using the new Google APIs Auth dll?

We've been using the Google APIs OAuth2 dll to do our auth token refreshes. The process often fails and I'm looking to update it to the new Google APIs Auth dll. The Google APIs OAuth2 dll is considered obsolete mentioned here. Here is the new dll…
NullReference
  • 4,404
  • 12
  • 53
  • 90
0
votes
1 answer

How to retrieve Google calendar entries using service account and.NET

I am getting the following error when using a service account + impersonation to retrieve Google calendar entries: Error:"access_denied", Description:"", Uri:"" I can create events using both user and service account flow (no impersonation). I can…