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

You must be authenticated to make requests - GoogleAuthenticator

I am trying to upload videos using the .NET API on an Android Phone using Xamarin. I am unable to authenticate and I get the error in the subject line. Here is the code from…
Joseph Anderson
  • 4,114
  • 4
  • 45
  • 99
0
votes
1 answer

Implement refresh token inside my code - google api c#

At the moment my code does not automatically refresh my access code when it expires. I'm at a loss at how to implement the code from this post (How to generate access token using refresh token through Google Drive SDK in .NET?) inside my own…
tutu
  • 673
  • 2
  • 13
  • 31
0
votes
1 answer

DotNetOpenAuth Google API Offline Access

I've spent some time over the last few days trying to implement a feature for my web application. The feature should add new events to a users google calendar while they are offline. I read the Google OAuth2 documentation for web server…
0
votes
1 answer

Google plus insert moment stopped working using google-api-dotnet-client

The question is: Is there a new way in calling the API so an activity can be inserted into a user's profile? I posted a related question here about a month ago. It was working fine until early this week when it suddenly stopped working and…
von v.
  • 16,868
  • 4
  • 60
  • 84
0
votes
1 answer

Oauth2: The remote server returned an error: (400) Bad Request

I would like to implement Google’s Oauth2 in an in-house application and was playing with the demo found here using a C# console app: https://code.google.com/p/google-gdata/source/browse/trunk/clients/cs/samples/oauth2_sample/oauth2demo.cs I have…
user1526912
  • 15,818
  • 14
  • 57
  • 92
0
votes
3 answers

Google Drive Async Upload Method

I have a winforms application that uses Google Drive to manage files. My file upload method is fairly simple: public static File UploadFile(string sourcefile, string description, string mimeType, int attempt) { try { …
MSD
  • 312
  • 5
  • 14
0
votes
1 answer

Getting started w/ Google API client for .NET

I'm starting to feel dumb - I simply cannot get the Google API Client to work in my VB.NET web application. I can't get beyond the Authorization stage. I'm unclear if I should using a NativeApplicationClient or WebServerClient. I don't want to be…
Bill
  • 1
  • 1
0
votes
1 answer

Can google service account be used for specific user documents retrival?

Requirement: I want to access the Google drive documents of a particular user programmatically(being someone@gmail.com is his email id). Present Condition: I am using Google drive SDK to achieve this. The sample provided by Google launches a browser…
Srikanth P Vasist
  • 1,327
  • 2
  • 14
  • 26
0
votes
1 answer

Google drive SDK: Cancel upload

How to cancel file upload request with Google Drive SDK? I'm creating .NET 4 task that calls FilesResource.InsertMediaUpload request = service.Files.Insert(body, stream, body.MimeType); request.Upload(); I can't use cancellation token here to…
axe
  • 2,331
  • 4
  • 31
  • 53
0
votes
2 answers

Google Drive SDK fetch causes unhandled exception

I'm trying to handle network failure exceptions when using Google Drive SDK and I have the following problem. I'm disconnecting my network and running this code try { FilesResource.InsertRequest r = service_.Files.Insert(body); r.Fetch(); }…
axe
  • 2,331
  • 4
  • 31
  • 53
0
votes
1 answer

How to get the authorization code for Google drive API access programmatically?

I need to download a file from Google drive. I got the code to do that here. In this code they launch a web browser process with an URL which asks user to authorize the API access. After authorization, it provides authorization key which needs to…
0
votes
2 answers

logging in with different user / resource owner

i am trying to write a tool that creates entries in the google calendar. after following the google docs and creating an client-identifier/secret in the api console, i managed to put together a client that authenticates correctly and shows my…
gofrm
  • 364
  • 2
  • 15
0
votes
2 answers

Can't authorize in Google drive using service account in C#/.NET

I am trying to work with Google drive from Windows application or service. I don't need Web App, MVC, so on. System must work automatically, without any user intrusion, so I created service account and get certificate and email. And, of course,…
0
votes
1 answer

How to checkout older version of google-api-dotnet-client

I just downloaded latest copy of google-api-dotnet-client from url (http://code.google.com/p/google-api-dotnet-client/) and it shows version 1.2.4819.34602 . I am using google Drive .net API library which I have downloaded from URL…
sujit
  • 135
  • 8
0
votes
1 answer

sample VB.Net code for reading data from Big Query

I need to query Google Big Query table using Google BigQuery API. I am using Visual Studio 2012 with VB.NET. I found a sample code in C# and I could get it to work with a minor change in Visual Studio 2012 using C#. Reference: Google BigQuery with…