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

My Issue with Google Authentication

I have been using the old version of Google Calendar GData API (v1, v2) since November 2011 in my ASP.NET Applications, allowing Users to retrieve and/or create Calendar Events after submitting their usernames and passwords , and this was working…
0
votes
0 answers

Get Current Time from Google using Google .NET client library?

Can I somehow request the current time from Google using the Google .NET Client library and C#? I am migrating an older calendar application that syncs calendars using modification times. I realize there is a new sync token method, but everything…
Mark
  • 440
  • 4
  • 16
0
votes
0 answers

Exceptions using Oauth2 with Google Calendar API and vb.Net

i'm not able to connect to the google calendar api via oauth2. I've downloaded the *.json file which includes my cliend-id and my cliend secret and use google's code example 'Copyright 2013 Google Inc 'Licensed under the Apache License, Version…
0
votes
1 answer

Get UserCredential of Google Drive API using Refresh token, ClientId and ClientSecret in ASP.net/C#

I was able to get a RefreshToken by following the instruction given in this link : How do I authorise a background web app without user intervention? (canonical ?). Now I need user credential for getting driveservice object. I have searched a lot…
0
votes
1 answer

Change Redirect Url in Google Drive - C# (Part 2)

I dont know why, but this Message was deleted by moderator in my First question and moderator wrote that I need open New question. So...... (part 1 - Change Google default Auth Redirection - C# (Google liblary)) I try bad have little problem: If i…
0
votes
2 answers

Google OAuth2 using the plus.login scope to retrieve circled people

I'm building an MVC 5 app using OAuth2 authentication via the Microsoft.Owin library to authenticate through google (google+). I'm able to add the email scope but my attempt to add the plus.login scope to request user profile information (ie: people…
bflemi3
  • 6,698
  • 20
  • 88
  • 155
0
votes
1 answer

C# Google Calendar API ignoring Event TimeMin/TimeMax

I am attempting to use the Google .Net Client Libraries to query for Google Calendar events. I am successfully pulling down events but it seems to completely ignore the TimeMin and TimeMax and return events outside of that time-frame. As a test, I…
Patrick
  • 5,526
  • 14
  • 64
  • 101
0
votes
2 answers

Google Coordinate API authentication offline

Trying to authenticate the Google coordinate api. Tried the Service acount authentication usisng service account and posted stack flow with this question. Found this anwer and quite describes my question. What the problem now is the library used is…
0
votes
2 answers

What is the new CreateSendAs() from GData to the new Directory API?

I'm in the middle of converting my older Google Provisioning API applications to the new Directory API. I havent been able to find the equivalent Directory API to the following code below. Could anyone point me to a page or have an example they're…
FredNCC
  • 51
  • 1
  • 3
0
votes
1 answer

Get videos specific to a user from search result

I'm using the Google.Apis.Youtube.v3 plugin in .NET MVC. var service = _youTubeService.GetYouTubeService; var searchReq = service.Search.List("snippet"); searchReq.ChannelId = "exampleIdGoesHere"; // search this channel searchReq.Q = "acoustic"; //…
Marlo C
  • 587
  • 3
  • 14
  • 26
0
votes
1 answer

signed google.apis.dll is giving compiler error

I got the source code for the latest Google.Apis, Google.Apis.Core and Google.Apis.Auth.dll (all 1.9.x.x) and compiled them with strong name. Now when I compile my code using the strong named dlls it gives an error: The type…
Samuel
  • 1,949
  • 4
  • 18
  • 30
0
votes
2 answers

Google User Provisiong using Google Admin SDK c# -- Google.Apis.Admin.Directory.directory_v1.cs not found

I tried authenticating with Google Admin Api-sdk But We get some file missings error which should be created by the Dlls, we are using. Even after adding all the recommended dlls after going through many article for the same, I din get over to this.…
0
votes
2 answers

Gmail API returns 403 forbidden and no other messages (other API's working fine)

I've got an application with several successful Google API integrations. I'm hitting a roadblock trying to add Gmail integration into the mix. I'm using the .NET API, Google.Apis.Gmail.v1 (version 1.9.0.140). Here's my code showing a successful…
pettys
  • 2,293
  • 26
  • 38
0
votes
1 answer

how to cancel Execute/ExecuteAsync() calls in Google API .NET?

I'm using the Google API with .NET library. I am building a Windows installed app, and want to allow the user to cancel if it is taking too long. Can anyone show me some sample C# code to cancel an Execute() or ExecuteAsync() call? I am running…
Mark
  • 440
  • 4
  • 16
0
votes
0 answers

Connecting to Google API with Service account gives invalid_grant on analytics api .net Error

Google analytics API .NET Hi i recive this message "Google.Apis.Auth.OAuth2.Responses.TokenResponseException' occurred in Google.Apis.dll Additional information: Error:"invalid_grant", Description:"", Uri:"" this is my code String…