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.

Filter by
Sorted by
Tagged with
-3 votes
0 answers
25 views

Why are there no .net examples for the Play Publishing API? [closed]

I would like to use the C#/.net API for the play publishing api, but I can't find a single example anywhere. Why doesn't google publish examples for how to use this api?
Bungles's user avatar
  • 1,985
0 votes
0 answers
24 views

Google Play Integrity API Scope

I need to use Google Play Integrity API I am trying to use the scope provided in the documentation here - https://googleapis.dev/dotnet/Google.Apis.PlayIntegrity.v1/latest/api/Google.Apis....
Rokas Marcinkevicius's user avatar
1 vote
1 answer
39 views

we are facing issue while generating google meeting link for the event using google calendar API

We've integrated google calendar APIs but we are facing issue while generating google meeting link for the event. I guess it is due to we are not able to set AllowedConferenceSolutionTypes in calendar ...
Jai Singh's user avatar
1 vote
0 answers
28 views

How can we integrate my gmail account inbox messages to my website using asp.net c#? I want to diaplay the details in the webpage

'm trying to integrate my asp.net mvc website with my Gmail account and tryin to retrieve the mails and display it into my website. It can read the messages from the inbox but its not showing in my ...
Pallavi Puley's user avatar
1 vote
1 answer
35 views

How to Download Gmail Credentials.json File from google cloud using C#

Good day! I have already developed an email sending application using C#. First of all, I have to create the credentials.json file manually and then set the location. Now, I would like to know how to ...
MD FAISAL's user avatar
1 vote
1 answer
33 views

How do you create a Google API App that uses the drive.file to access only specifically requested files?

I'm writing a C# Desktop app that as part of its job is to add/edit cells in a pre-existing Google Sheet that user has created and supplies the URL of. During development I've used the far more open ...
S.Richmond's user avatar
  • 11.4k
1 vote
1 answer
87 views

Reporting a YouTube Video through API from Desktop Application

I am currently working on a desktop application that requires the ability to report inappropriate YouTube videos using the YouTube API. Although I have reviewed the YouTube API documentation, I'm ...
Ahmed's user avatar
  • 33
1 vote
1 answer
102 views

Connection to Google sheets API from .net Maui application - Android

Any clue on what could be the right way to connect to google API in MAUI application and update spreadsheet from mobile app. I have created the Andriod credentials for the spreadsheet api in the ...
Govind's user avatar
  • 51
1 vote
2 answers
73 views

Google People API - What do I need to access an individual user's contacts from a service account?

I am writing an app (C#/Windows) that takes data from another source and uses it to keep Google mailing lists and contact information up-to-date for a particular user in my domain. I've got it to the ...
Betty Crokker's user avatar
1 vote
2 answers
80 views

C# GoogleWebAuthorizationBroker for OAuth2 connection to GMail not work in windows service

My application is written with .NET Framework 4.7.2. The application I created must interface with a GMail mailbox to download mail (via POP3). To authenticate my application to the mailbox via OAuth2,...
filippocurati's user avatar
0 votes
1 answer
30 views

How to register with Google to be able to upload videos to YouTube from your desktop using C#

I am writing an application that uploads videos to youtube from a desktop. It will be used only by me, so there is no issue with authentication or giving any access rights). I found this post that ...
mans's user avatar
  • 17.2k
0 votes
0 answers
177 views

How to Send Email with Gmail API Using OAuth2.0 in RazorPages App on .NET 7

Beginner here. I am building a new RazorPages application in .NET 7. I need to implement e-mail sending functionality from a Gmail account, using the new Oauth2.0 and Gmail API, without choosing the &...
sisteme2010's user avatar
0 votes
2 answers
161 views

Wrong OAuth 2.0 JWT token for Google APIs using .NET Core and X.509 certificate

I'm trying to make requests to the Google APIs AdMob services. This API requires the new OAuth 2.0 authentication process which for the Service-to-service integration, is a two steps process: 1) ...
Jose Cordero's user avatar
0 votes
0 answers
59 views

Use google login to get permission to access users calendar from .net core

I am creating a simple MVC project for some clients. I have about 100 clients that use my simple scheduling software that is specific to their industry. I store the events/appointments in a local ...
john's user avatar
  • 1,323
0 votes
0 answers
97 views

Getting google token for Blazor WASM

I have Blazor WASM client app where all authorization flow is based on JWT token obtained from API by user & password authentication. I would like to add Google authentication as well so that ...
Jacek Pierzchała's user avatar
1 vote
1 answer
38 views

Error 400: redirect_uri_mismatch while uploading file with google drive api v3 and .net6 web api

my code snippet is using (var stream = new FileStream(Path.Combine(Directory.GetCurrentDirectory(), "wwwroot", "client_secret.json"), FileMode.Open, FileAccess.Read)) { ...
Bhavish's user avatar
  • 11
0 votes
1 answer
93 views

GoogleCredential.GetApplicationDefault silent timeout

I am running a .NET application inside a docker container on a Compute Instance. I'm trying to get my app to make a call out to another Compute Instance. I am generating my token from a credentials....
pjpscriv's user avatar
  • 878
-1 votes
1 answer
100 views

Google Api - Access is denied from c#, works with python

Facing an access problem using the google Api NuGet: Using google v3 Environment.SetEnvironmentVariable("GOOGLE_APPLICATION_CREDENTIALS", _googleApiParams.CredentialsPath /path to JSON file/)...
AntiMatter's user avatar
0 votes
0 answers
99 views

List Google reviews in a .net MVC application

Is deep down in the rabbit hole of trying to access the Google Apis from .NET. I want to read the reviews of our locations and through the OAuth 2.0 Playground I have been able to get all the ...
Hyzac's user avatar
  • 475
1 vote
1 answer
116 views

Google api library doesn't throw a "invalid_client" when authorize with invalid client_id [C#]

I'm working with google api library C# and when I authorize with invalid client id, the page with 401 error opens in my browser but my program freezes and does nothing. It doesn't trow any exceptions. ...
Qweka's user avatar
  • 11
2 votes
3 answers
536 views

Correct Implementation of Google Calendar API using Service Account in .Net Core

I'm having a headache because of google calendar API. My goal is to access my private calendar, and share some details through a web interface I will create, the problem is that after following all of ...
Guillermo Perez's user avatar
0 votes
0 answers
52 views

Authorization issue with Google account

Since some days connecting Google calendars and People API does not work some users. When I'm trying to authorisize with my Google account I got the log entry "Error in connecting google services....
AndreasU's user avatar
1 vote
1 answer
172 views

Google directory API to get list of users in my domain in C#

I am trying to use Google directory API in .NET Console Application where I want to get a user information. I keep receiving not authorised error, even though I have added the scope, done the domain ...
Anusha Swaminathan's user avatar
0 votes
0 answers
157 views

Google calendar event list is empty

Here is my code: using System; using System.Net; using Google.Apis.Calendar.v3; using Google.Apis.Calendar.v3.Data; using Google.Apis.Services; using Google.Apis.Auth.OAuth2; using System.Threading; ...
Thomas Ciampossin's user avatar
1 vote
1 answer
61 views

How to always request user to login google account when adding a new calendar event in ASP.NET MVC?

I have tried with GoogleWebAuthorizationBroker.AuthorizeAsync() but it is not working after I hosted in IIS. I have also try to use AppFlowMetadata but it is not open a new tab to ask for login.
Lim Koktown's user avatar
0 votes
0 answers
73 views

Google reCaptcha: Could not load file or assembly Microsoft.Extensions.Logging.Abstractions

I have installed the Google.Cloud.RecaptchaEnterprise.V1 on my .Net project. The class references Microsoft.Extensions.Logging When I execute the code below I get the error "System.IO....
Igor's user avatar
  • 13
0 votes
1 answer
366 views

How to check in .net core 6 if a google token brings my GOOGLE API credentials?

How can I verify if a Google Api token that comes from any frontend to my .net core 6 api is enabled with my idCliente credentials. example: var validPayload = await GoogleJsonWebSignature....
Steven Canales's user avatar
1 vote
1 answer
406 views

Use HTML template e-mail body in Google Gmail API on C#

I'm currently developing an app in .NET c# for my own company and I'm facing some trouble when trying to use a HTML template to send a automated e-mail to my users with my app in c#. C# Code to send e-...
ReDevil's user avatar
  • 23
0 votes
0 answers
98 views

Deploying C# desktop application that uses Google Drive API without exposing the JSON service account key file , is it possible?

I am just starting out with the c# Google.Apis.Drive.v3 classes and using a service account to upload files to a shared drive. Everything works fine but the App needs to be deployed in my office and i ...
Chahine Kaddour's user avatar
1 vote
2 answers
266 views

Can OAuth2 be used in Google Cloud Client Libraries?

I would like to use .net variant of Google Cloud Client Libraries (Resource Manager for creating new project, for example). I wouldn't like to use neither service account credentials nor ADC. Can I ...
sharpener's user avatar
  • 1,423
0 votes
0 answers
196 views

PubSub "Connection reset by peer" on gcp

I encountered the exception. "System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer.\n ---> System.Net.Sockets.SocketException (104): Connection ...
jeff chen's user avatar
1 vote
1 answer
102 views

Google Calendar Batch Request exceptions

I am trying to use Batch Requests with the Google Calendar API for .NET. What I am finding is that if there is any problem with an event in the batch it raises an exception and the whole batch fails ...
Craig's user avatar
  • 36.3k
1 vote
1 answer
417 views

MAUI use Google Drive API fails with Failed to launch browser with "https://accounts.google.com/o/oauth2/v2/auth..."

I have a MAUI app in .net7.0 and I'm trying to connect my app with Google Drive. I completed the following steps: Create a project in google console Configure an OAuth consent screen Configure an ...
Walter Torricos's user avatar
0 votes
0 answers
278 views

Google API is very slow while downloading multiple files

I'm struggling with a thorny issue. My file downloads via Google Api C# are very slow for an totally unknown reason. The files I get are well the good ones, no corrupted files, no duplicates files The ...
Sébastien B.'s user avatar
1 vote
1 answer
91 views

Receive HttpStatusCode 401 when calling Admob API with .NET client library

I am writing a C# console program which calls Admob API by using .NET client library. The authentication is done via Service Account. String serviceAccountEmail = "My service account ...
Thi Pham's user avatar
4 votes
3 answers
2k views

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 ...
Alexey Zimarev's user avatar
0 votes
1 answer
167 views

How can i upload a media file to my google drive using google api?

Hey im trying to upload certain media files to my google drive using google api services can someone please tell me how can i do it, in my previous question i have given the code for getservice and ...
user20317883's user avatar
-1 votes
1 answer
189 views

How Can I List All The Files (Videos) From Google Drive To My C# Console Application Using Google API?

using Google.Apis.Auth.OAuth2; using Google.Apis.Drive.v3; using Google.Apis.Services; using Google.Apis.Util.Store; using System; using System.Collections.Generic; using System.IO; using ...
user20317883's user avatar
0 votes
1 answer
300 views

MBN00000002 [AUTHENTICATIONFAILED] - authentication error to GMAIL via OAuth2

I need to implement an IMAP or POP3 connection to GMAIL via my application written in C#. For interfacing I use a DLL distributed by https://afterlogic.com/ - MailBee.Net Object DLL. The connection ...
filippocurati's user avatar
-1 votes
1 answer
1k views

Google Play Integrity API returns 400 "App is not Found." to Server

I am trying to verify integrity using GooglePlayIntegrityAPI. pass the Nonce generated by the Android app to IntegrityAPI and get the token from IntegrityAPI (this was successful) send the token from ...
Mary's user avatar
  • 11
0 votes
0 answers
226 views

Google Analytics get daily data from last 30 days

I'm trying to create a report showing daily conversions from the last 30 days with google analytics data api. This is using the dotnet client library Google.Analytics.Data.V1Beta. However I'm only ...
mattavero's user avatar
  • 212
2 votes
1 answer
516 views

Access is denied GoogleWebAuthorizationBroker.AuthorizeAsync in Dot Net core 3.1

It is working fine in local machine but after deployment in Azure, I got an error. at System.Net.HttpListener.SetupV2Config() at System.Net.HttpListener.Start() at Google.Apis.Auth.OAuth2....
Vishal Kiri's user avatar
1 vote
1 answer
259 views

Visual basic Dot Net

I don't hit any error with below code but the file is not uploaded into google drive. Anything that i've missed? Please help. NOTE: cred.json is the file generated from google developer console. Dim ...
WolfPack's user avatar
  • 215
1 vote
1 answer
122 views

Obtaining access_token from Google Drive API from Desktop application

I am creating a desktop application that should be able to store and download date from Google Drive. I am using Google.Apis.Drive.v3 to handle the Authorization flow. I am facing an issue how and ...
TheSecurity's user avatar
1 vote
1 answer
558 views

Client is unauthorized to retrieve access tokens using this method or client not authorized for any scope requested API Directory C#

I am getting the following error when trying to access the directory api by getting a list of users Google.Apis.Auth.OAuth2.Responses.TokenResponseException: Error:"unauthorized_client", ...
mharre's user avatar
  • 245
0 votes
2 answers
410 views

Problem downloading file from Google Drive using service account

This code has had me scratching my head for a few days now. I am trying to implement auto-updates for my application using Google Drive and a service account. In my Google Drive there is a folder ...
Deolus's user avatar
  • 317
1 vote
1 answer
325 views

Upload JPG file to Google Drive throwing System.UnauthorizedAccessException Access to the path 'c:\foldername' is denied

I am trying to upload a JPG from my local drive to Google Drive. I set up OAuth 2.0 Client IDs on Google Clouds APIs and Services. I added Everyone group to that folder. Also, grant full control ...
BAST23's user avatar
  • 75
0 votes
1 answer
331 views

Google Drive API Http Client Timeout C#

Im currently working on a C# software, that zips some files and then uploads them to my google drive. I followed this tutorial for the Google Drive API: How to upload a file to Google Drive with C# ....
DasWesen's user avatar
1 vote
1 answer
1k views

How to start with the Google API for Gmail?

I want to receive mails from Gmail in my .NET project with Visual Studio 2022. I've installed all required NuGet Packages, and now I'm searching for a detailed description of this API. Which classes ...
user avatar
0 votes
1 answer
308 views

How is one *supposed* to use the dotnet Google API Library to construct messages for Gmail? [duplicate]

I am adapting an application to send out emails through GMail and I thought I might use the Google API to do it. I have the API library from here; https://github.com/googleapis/google-api-dotnet-...
CodeWarrior's user avatar
  • 7,410

1
2 3 4 5
26