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

Using Google Play Game services in windows phone 8 and windows 8

Google Game Services 1.6 beta (.Net library) is available from Nuget for Windows Phone 8 and Windows 8 games. However when setting up the leaderboards and achievements in Google Developer Console, it only allows to associate an Android game, iOS…
5
votes
1 answer

AssertionFlowClient depreceated, trying to use ServiceAccountCredential, but it won't work

I've tried creating a DriveService using service account acting on behalf of another user. I've copied this code from google documentation found here https://developers.google.com/drive/delegation static DriveService BuildService() { …
JoBe
  • 391
  • 3
  • 12
5
votes
0 answers

A Task was Canceled - ResumeableUpload.cs: line 362

For almost the past 24 hours, I have been receiving TaskCanceledExceptions as the result of calls to ResumeableUpload's UploadAsync. Uploads are failing probably 90% of the time. I am uploading videos to youtube. I was using an earlier version of…
Rob Davis
  • 1,299
  • 1
  • 10
  • 22
5
votes
1 answer

Fail to get nuget package zlib.portable

I try to follow the instructions here: https://code.google.com/p/google-api-dotnet-client/wiki/Build But I fail when i try to follow instructions under "Using NuGet"! I get the following response: Attempting to resolve dependency 'Newtonsoft.Json…
JoBe
  • 391
  • 3
  • 12
4
votes
3 answers

Google Authentication Process

I am trying to write a native app to access a users google calendar. I am trying to use the example that google has provided to get authentication but it never seems to fire the authentication function private void Window_Initialized(object sender,…
4
votes
3 answers

Unable to get access token when using Workload Identity in GKE (.NET)

I have set up the Workload Identity on a GKE cluster, and now I am using a Kubernetes SA linked to an IAM SA with appropriate permissions. I checked that when I use the IAM SA key file, it gets the access I need. However, it gets weird even when…
4
votes
1 answer

Using Google Sheets API without a cloud platform project

I need to save some data to private Google Sheets as part of my pet project. I have reviewed the documentation and I am a bit confused about having to create a cloud platform project for such small task. Is there any way to use Google Sheets API(or…
4
votes
1 answer

Upload video to YouTube - Exceeded Quota error

I'm trying to develop an app that uploads a video to YouTube. Whenever I try to call the upload routine, i'm getting an error stating I have exceeded my Quota. But in the Quota usage screens it says that the data is unavailable. I've even created a…
4
votes
1 answer

How to authorize Google anlaytics data api with OAuth2

I am trying to connect to the new Google Analytics Data api using C# to request data from the new google analytics GA4. The only sample i can find is Quickstart client libraries .net This does work but it uses a service account. The cloud .net…
4
votes
2 answers

purchases.products.get is ignoring productId value and returns null in ProductPurchase

I'm making request to google Android Publisher api to check if the provided purchaseToken of an in-app purchase is correct. First problem is that the product id is ignored and I can type anything as the parameter. Only package name and purchaseToken…
4
votes
1 answer

search file inside shared drive By id File using the Query filter

i want to check if a folder belongs to shared drive or not . I implement this code but it return Error 400 invalid value on Query. var request = service.Files.List(); var query = "id='" + driveFileId + "'"; …
4
votes
2 answers

Programmatically accept Google My Business invitation for service account

I'm trying to use a service account to retrieve locations/reviews using the Google My Business API. So far I have: Created a project in Developers Console Enabled access to the Google My Business API (it's been approved/whitelisted by…
4
votes
1 answer

How to safely store OAuth response file of each user provided by google drive api

I am working on an asp.net application where I ask people to give the authorization (using OAuth) for accessing their google drive (to a particular folder) to be able to list the files within the application. The following code enables users to…
renakre
  • 8,001
  • 5
  • 46
  • 99
4
votes
2 answers

Cannot download files anymore

I've got a system where we're using a Service Account to connect to the Google Drive SDK. It's been working fine for about 6 months, but starting a week ago, with no code changes, it's no longer able to download files from the Google Drive. We're…
heneryville
  • 2,853
  • 1
  • 23
  • 30
4
votes
0 answers

Receive push notification only when new mail get in Inbox in Gmail

I am successfully receiving push notifications with service account for a gmail user (impersonate) following official documentation. But when calling watch I would like to be notified only when new messages arrive, not when any change happens. (For…