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
106
votes
8 answers

Accessing Google Spreadsheets with C# using Google Data API

I'm having some information in Google Spreadsheets as a single sheet. Is there any way by which I can read this information from .NET by providing the google credentials and spreadsheet address. Is it possible using Google Data APIs. Ultimately I…
68
votes
15 answers

Could not load file or assembly System.Net.Http.Primitives. Located assembly's manifest definition does not match the assembly reference

I'm working on a program that uses the Google API. However every time I run my program, it I keeps getting the following error: Could not load file or assembly 'System.Net.Http.Primitives, Version=1.5.0.0, Culture=neutral,…
Tri
  • 689
  • 1
  • 5
  • 3
47
votes
4 answers

Analytics Reporting API V4 Client Library for .NET

I'm trying to get some data from our google analytics instance and I'd like to use the Analytics Reporting API V4 Client Library for .NET (https://developers.google.com/api-client-library/dotnet/apis/analyticsreporting/v4) so that I can bake some of…
43
votes
4 answers

Client is unauthorized to retrieve access tokens using this method Gmail API C#

I am getting the following error when i tried to authorize gmail api using service account "Client is unauthorized to retrieve access tokens using this method" static async Task MainAsync() { sstageEntities db = new sstageEntities(); …
Melvin
  • 877
  • 3
  • 11
  • 27
36
votes
6 answers

How to login to Google API with Service Account in C# - Invalid Credentials

I'm beating myself bloody trying to get a simple service acccount login to work in C#, to Google API and Google Analytics. My company is already getting data into Analytics, and I can query information with their Query Explorer, but getting started…
29
votes
3 answers

Is it possible to use json key instead of p12 key for service account credentials?

I am using "Google.Apis.Bigquery.v2 Client Library" with C#. I am authorizing to Google BigQuery using "Service Account" (see http://www.afterlogic.com/mailbee-net/docs/OAuth2GoogleServiceAccounts.html). To create the X509 certificate I use the p12…
28
votes
5 answers

Google .NET APIs - any other DataStore other than the FileDataStore?

I'm using the Google .NET API to get analytics data from google analytics. this is me code to start the authentication: IAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow(new GoogleAuthorizationCodeFlow.Initializer { …
developer82
  • 13,237
  • 21
  • 88
  • 153
23
votes
6 answers

Update a Cell with C# and Sheets API v4

Does anyone have a good C# example for updating a cell with the v4 API? I have the get cell values c# example from the developer website working with Google Sheets API v4. I am trying to modify the example to update a cell with a value of "Tom". …
18
votes
4 answers

ASP.net app crashes - Could not load file or assembly 'Microsoft.Threading.Tasks.Extensions.Desktop'

I want to build a Google BigQuery C# ASP.net application using OAuth2 and the .Net 4.5 framework. I ran these NuGet installs Install-Package Google.Apis.Bigquery.v2 -Pre Install-Package Google.Apis.Authentication.OAuth2 -Version…
Frank Solomon
  • 323
  • 1
  • 2
  • 6
16
votes
4 answers

Google API Oauth2: Only one refresh token for all users?

I am using OAuth2 Authentication, and I have a CMS with multiple users, each with their own profiles. It happens that our company has a Google account with access to multiple Analytics accounts. For each user who uses the CMS, I connect to the…
15
votes
3 answers

How to upload Video to youtube using Google.Apis.YouTube.v3 and C#?

I have created console application using C#. Which will upload Video from local drive to youtube. I have created new app in google api using this link. I have also installed all required packages using nuget. When I run my application I am getting…
15
votes
4 answers

GoogleWebAuthorizationBroker.AuthorizeAsync Hangs

Our website needs to upload videos to youtube from the code behind (asp.net mvc application). I'm trying to get the google credentials, but when i call the AuthorizeAsync, the application just hangs. I've looked all over for a solution and none seem…
iedoc
  • 2,266
  • 3
  • 30
  • 53
14
votes
3 answers

where can i find ServiceAccountCredential

I am working in google api with asp.net c#, My goal is access google api using service account. I have imported all needed dlls to create service account to access admin features(admin sdk). But i couldn't find ServiceAccountCredential. How can i…
chandran
  • 171
  • 1
  • 2
  • 10
14
votes
2 answers

Can I use Chrome Web Store payments with OAuth 2.0

I've written a hosted Chrome Web App which authenticates the user with OAuth 2.0 using the Google APIs Client Library for .NET. Now I want to add payments to our application using the in-built Chrome Web Store Payments. Looking at the documentation…
CodingIntrigue
  • 75,930
  • 30
  • 170
  • 176
14
votes
1 answer

Suspected Terms of Service Abuse. Please see http://code.google.com/apis/errors

I have been using http://ajax.googleapis.com/ajax/services/search/web?v=1.0&rsz=large&safe=active&q={0}&start={1} in my application to search a term in google and return results. Initially it is working properly.. but after sometime it is giving…
Pavan Kumar
  • 190
  • 2
  • 8
1
2 3
84 85