1,288 questions
1
vote
1
answer
92
views
Google API Workload Identity
I am using the Google WLI with Azure and have setup the WLIs. I am using Google.NET client library. I am not using ADC instead I am creating the token manually because I need to create using Client ...
1
vote
0
answers
67
views
How to get email address of Matter owner?
I am working with the Google Vault API in C# and need to retrieve the email address of the user who created a Matter (i.e., the owner). Specifically, I want the email address to be visible when:
...
-1
votes
1
answer
49
views
Scopes/permissions required to programmatically delete Google Calendar events created by any user on a shared calendar C#
We have several desktop apps that create calendar events in shared calendars in the Google Workspace environment. The apps are written in C#. and we are using Google APIs with OAuth.
The creating of ...
1
vote
1
answer
219
views
Google Directory API - 403 [Not Authorized to access this resource/api] for Method: roles.list
I am using Google Directory API .NET Client to fetch a list of roles in a domain (https://developers.google.com/admin-sdk/directory/reference/rest/v1/roles/list).
I use a service account to ...
0
votes
0
answers
87
views
Google Calendar Auth ASP.NET Core
I am upgrading an ASP.NET MVC 4 project to ASP.NET Core and am trying to upgrade Google Calendar integration.
Is there any working examples of Google auth with ASP.NET Core, they had examples with ...
0
votes
0
answers
112
views
google business reviews, service account "Request had invalid authentication credentials"
I'm trying to fire a request to "https://mybusiness.googleapis.com/v4/accounts/XXXXXXXXX/locations/YYYYYYYY" to get my business reviews out. I have access to the google business API and by ...
0
votes
0
answers
58
views
ASP.NET MVC 5 Google Api mybusinessInformation
I try to get the reviews for an enterprise to show it on their website.
But I can't connect, I have all ready uri redirect mismatch.
I am developing with ASP.NET MVC 5, C#, I tried app.authgoogleAuth ...
1
vote
1
answer
129
views
Get Folders via Google Drive Api
I am using following service code to retrieve folders of the users.
I enabled the drive api and want to use service account...
There are folders in drive but Execute returns none.
What might be ...
1
vote
1
answer
484
views
How to upload video to my YouTube channel programmatically on the C#?
I want to upload videos to my YouTube channel programmatically, but when I try to upload using API Key, I got the error in response, that this API don't support API Key.
When I try using OAuth, my ...
1
vote
1
answer
164
views
GoogleWebAuthorizationBroker problem, but in a .NET Framework 4.8 application
I have a problem with the Google Gmail API. It is working on my local machine, but once I deploy the project to the server, it stops working.
Error:
System.AggregateException: One or more errors ...
0
votes
2
answers
1k
views
Erratic gmail OAuth2 authentication with MailKit and Google APIs
The MailKit and Google API C# code below was written to authenticate gmail access tokens in my Win10 desktop app. However, the call to client.AuthenticateAsync usually, but not always, fails and ...
1
vote
0
answers
148
views
How to use a user token/refresh token when using the Google Calendar API with the .net library
I have a Blazor App which has a calendar. I want to sync the event from the app calendar, to the users Google Calendar.
I am using the 'Authorization Code Flow'.
I have succeeded in getting the first ...
1
vote
1
answer
1k
views
Google API: Unable to find Grpc.Core types. Please ensure you have a suitable Grpc.Core dependency error
Using the Google API .NET client version 4.4.0 in an ASP.NET Framework (4.7.2) app.
Everything works great on my development PC, but after I transfer it to the server, I get the following error when ...
1
vote
0
answers
454
views
Gmail Api - List Messages Without a Specific Label
I am using Google.Apis.Gmail.v1 within a c# project and I am getting a list of messages via the Users.Messages.List(...) function. Before executing the call to Google, I also set the Q property to ...
1
vote
2
answers
305
views
How to use a cross-project service user to auth in Google Play Developer API
In my current setup, I am only able to have a service account in a shared project called ProjectA. This project is solely used for creating Service Accounts (SA). Afterwards, I invite the SA to my own ...
1
vote
1
answer
2k
views
InvalidOperationException: No authentication handler is registered for the scheme 'Identity.External'
I am stuck at Google authentication in .NET Core Web API project.
I am using Google as my external authenticator, everything is working fine except when the call comes back to my handler, an exception ...
1
vote
1
answer
94
views
.NET Google Workspace API getting error CS0266
I am generating a user and populating them into our Google Workspace environment but I cannot seem to get the CustomSchemas to work.
I have fiddled around with a few different ways to format it but I ...
1
vote
1
answer
215
views
Google Drive Delta Changes report moved folder but not the files inside that folder
I have implemented Google Drive delta changes logic in my program in C#.
var request = service.Changes.List(pageToken);
request.Spaces = "drive";
request.IncludeRemoved = false;
request....
2
votes
1
answer
683
views
C# Google API for requesting a list of users returns "badRequest"
I have been looking for information on this for a couple days now. I believe I have everything relevant to the API set up correctly for access but I keep getting this error:
The service admin has ...
0
votes
1
answer
143
views
Google Calendar API problems with attendes and conferenceData
I am trying to create a video call in google calendar but the ConferenceData data arrives empty because none has been created, also when I add participants I get the error: The service calendar has ...
1
vote
2
answers
2k
views
MailKit and OAuth2 for gmail SMTP - 5.7.8 BadCredentials error
I'm trying to use mailkit to send emails via a gmail account. I keep getting the 5.7.8 BadCredentials error.
My Oauth2 credentials in google specify a project name of "EmailTesting" for a ...
0
votes
1
answer
473
views
Blazor Calendar Connection with Google Calendar
I want from my Server-Side Blazor App to connect with Google Calendar and Post my Events
Hello everyone! I've tried many ways and tutorials but i am always having problems with redirects , access ...
1
vote
3
answers
2k
views
I have issues with Google Analytics Data API (GA4) in .NET
I have a problem, I can't get the call to analytics to work with the example from this documentation ( Quick start ). I've changed some things I've read, since it doesn't allow me to use the example ...
0
votes
1
answer
92
views
Google Calendar authentication Access is denied using Client Id and ClientSecret
my scenario is simple: I have a Web App that accesses my Google calendar. This App works fine when I run it from my PC using Visual Studio, but it gives an error when I run it on the server.
I'm using ...
0
votes
1
answer
83
views
Problem retrieving files in Google Drive using .NET SDK
I am using Google Drive SDK for the first time and based on some examples I came up with this code:
using Google.Apis.Auth.OAuth2;
using Google.Apis.Drive.v3;
using Google.Apis.Services;
namespace ...
0
votes
1
answer
177
views
URI mismatch error 400 .NET, my code always points to a different URL
At this point every information is welcomed. I'm trying to connect via OAuth2 to a Google Drive API, but when I run my credentials:
credential = GoogleWebAuthorizationBroker.AuthorizeAsync(
...
0
votes
1
answer
175
views
Google API: Access mailbox to query mails
IDE: MS Visual Studio - C#
Code Screenshot:
Code
ServiceAccountCredential cred;
//UserCredential cred;
string[] scopes = new string[] { GmailService.Scope.GmailLabels, GmailService....
1
vote
1
answer
2k
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....
1
vote
2
answers
883
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 ...
1
vote
0
answers
126
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 ...
1
vote
1
answer
484
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 ...
1
vote
1
answer
267
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 ...
1
vote
1
answer
428
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 ...
1
vote
1
answer
610
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 ...
1
vote
2
answers
886
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 ...
1
vote
2
answers
590
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,...
0
votes
1
answer
105
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 ...
0
votes
2
answers
572
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) ...
1
vote
1
answer
123
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))
{
...
0
votes
1
answer
635
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....
-1
votes
1
answer
188
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/)...
1
vote
1
answer
158
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. ...
4
votes
3
answers
2k
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 ...
1
vote
1
answer
353
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 ...
1
vote
1
answer
88
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.
0
votes
1
answer
514
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....
1
vote
1
answer
1k
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-...
1
vote
2
answers
475
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 ...
0
votes
0
answers
472
views
PubSub "Connection reset by peer" on gcp
Issue
I'm using Google Cloud Pub/Sub in my C# application to pull messages from a topic every 5 seconds using a scheduled task.
However, after running for some time, I encountered the following ...
1
vote
1
answer
269
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 ...