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
7
votes
3 answers

Integrating with Google Admin SDK in C#

I'm currently trying to integrate with the Google Admin SDK via C# so we can manage users via our own system. However, when running the project I get the error: Unauthorized Client. Things I have already done via a super admin account: Setup…
7
votes
2 answers

How to upload/convert *.docx to google documents? Google Drive Api v3

I have problem with upload a microsoft/libre office document for edit via google apps. For spreadsheet it's working properly but for docs isn't. When I upload a file with extension like *.odt, *.docx I can see the content by google viewer on Google…
Bogu
  • 83
  • 1
  • 8
7
votes
1 answer

Authenticate Google access token with ASP.NET Core backend server

I have Angular2 on client and ASP.NET Core on server side. I use JavaScriptServices (aspnetcore-spa template). For authentication I use OpenIddict and I follow example here. Now I am on the server side in Controller class method and I would like to…
7
votes
1 answer

Using the Google API .NET client with an existing access token

The use-case is the following: a mobile app is authenticating a user with Google and at some point, we need to publish a user's video to his YouTube account; for practical reasons, the actual publication should be done by the back-end (large files…
ThomasWeiss
  • 1,292
  • 16
  • 30
7
votes
3 answers

GoogleCredential created by json private key file (ServiceAccount) - how to set the User to impersonate?

just starting with Google Apis. In my Google Cloud Platform account i created a Service Account for domain wide delegation. I saved a private key file in json format for this service account. In my test application i am creating a GoogleCredential…
ReneDev
  • 161
  • 1
  • 6
7
votes
3 answers

Google Drive V3 Api get File Name, C#

How do I get a single files name from a get request using the drive api? I have made a request but there is not metadata about the file there, I can only download it. var fileId = "0BwwA4oUTeiV1UVNwOHItT0xfa2M"; var request =…
FillyPajo
  • 113
  • 1
  • 2
  • 8
7
votes
1 answer

Google API Client Library freezing up in IIS when making request

I have been using the Google API Client Library for .NET for loading Google Analytics data into my application: Recently though I have found it to have started freezing up completely. The Execute() command makes a connection to the Google server. It…
7
votes
2 answers

How to delete a video from youtube using youtube v3 api and C#

Well I am able to upload video on Youtube but i didn't find a way or relevant code to delete video/videos from Youtube. Here is my code which i tried to delete the youtube video. private async Task Run() { UserCredential credential; …
7
votes
4 answers

Receiving Insufficient Permission error from DirectoryService

I am trying to setup c# code to manage our Google domain. I am receiving this error whenever I call service.Users.List() or any other method from the DirectoryService api. Google.Apis.Requests.RequestError Insufficient Permission [403] Errors [ …
VaultBoy14
  • 251
  • 1
  • 4
  • 13
7
votes
1 answer

Google OAuth access token expiration in MVC app?

I wrote an MVC app using Google Oauth2 as instructed here: https://developers.google.com/api-client-library/dotnet/guide/aaa_oauth#web_applications I have an issue with access token expiration. When access token expires, I get the exception when…
monstro
  • 6,254
  • 10
  • 65
  • 111
7
votes
3 answers

How Google API V 3.0 .Net library and Google OAuth2 Handling refresh token

In my application I am using Google API V 3.0 .Net library with Google OAuth2 to synchronize Google calender and outlook calender. I am using below code to get the Google.Apis.Calendar.v3.CalendarService service object. During authentication I…
7
votes
2 answers

Gmail API - Rate Limit Exceeded [429], Backend Error [500]

We have an application that uses the Gmail API to access emails in Gmail. Randomly we got the following error message Google.Apis.Requests.RequestError Rate Limit Exceeded [429] Errors [ Message[Rate Limit Exceeded] Location[ - ]…
PNC
  • 1,932
  • 19
  • 36
7
votes
2 answers

The redirect URI in the request: http://localhost:12349/authorize/ did not match a registered redirect URI

I'm getting this error while trying to run my c# console application... I am trying to call google calender api v3 to fetch calender and add event to calender. According to the sample code from google-api-dotnet-client I am doing this.(…
7
votes
1 answer

Cannot load System.Threading.Tasks assembly, using Google Calendar API

SOLVED ! Huge thank to Sam Leach Here is a sample of my working app.config file: ...
6
votes
1 answer

How to rename sheet using google sheets api v4?

I have a code that its purpose is to rename a specific sheet, but when executing the BatchUpdate and the code is crached, does anyone have any ideas? public void UpdateSheetName(string sheetName,string newSheetName) { //get sheet…
Julio
  • 355
  • 1
  • 4
  • 14
1 2
3
84 85