1,156 questions
0
votes
0
answers
79
views
Error 401 when accessing to Google Cloud API for retrieving calendar events with a "valid" token
I want to download the google calendar events into my tool, to show them in a calendar developed in Angular. The tool is composed by an Angular frontend and a Java Spring Boot backend. I successfully ...
0
votes
1
answer
33
views
Connect to Google API using service account (in Kotlin)?
Use a JSON service account key file to connect to a Google API.
Currently, AI generates bad code and searches are noisy with the variety of alternate authentication schemes.
0
votes
1
answer
81
views
Java Google Mail API send "Precondition check failed" - 400 Bad Request for Service Account server-to-server no user
In response to Google's recent change to disallow username/password access to Google Workspace accounts from Google Cloud VM-instances, I am attempted to replace sendmail calls with Google API calls ...
0
votes
0
answers
31
views
Port and Protocol used by OAuth2 to return an access token from an access code?
I'm porting my app from Windows (where it works) to Linux (where it doesn't work). I can't figure out why, but my firewall is pretty strict. What port and protocol are being used to return the ...
0
votes
0
answers
77
views
Google Oauth refresh token without redirect url ? Just auto refresh
Just some context - Im creating app to merge my family calendars from different sources. I want to setup some google component but I have a problem. My code is pretty straight forward. First enter is:
...
0
votes
1
answer
99
views
How to Create 'Gmail' Service with GoogleCredentials
I have the following versions
<dependency>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client</artifactId>
...
0
votes
0
answers
324
views
Getting service acount credential in GKE
I have GKE cluster that uses a custom service-account. I'm using it to access Google API (Gmail API). But, when I use
final List<String> SCOPES = List.of(GmailScopes.GMAIL_READONLY);
...
1
vote
1
answer
50
views
Can We Use Google API Classes (TextRun, ParagraphElement, StructuralElement, etc.) to Construct an Object and Post Using Request/Batch Update?
Using Google API with Java for Google Docs, we can access classes like TextRun, ParagraphElement, etc. and set the values, for example, as follows:
TextRun txtRun = new TextRun();
txtRun.setContent(&...
1
vote
1
answer
124
views
Gmail Javi API batch too many requests
I am using the Java Gmail API to retrieve some email messages. Once I get a list of messages, I am using batching to get the individual messages info.
Sample code as follows:
List<MessageDto> ...
1
vote
1
answer
53
views
Search List returned multiple channels
I trying to send this request to get the channel
request = youtube.search().list("snippet");
request.setMaxResults(50);
request.setQ(channelName);
request.setType("channel");
we ...
1
vote
0
answers
54
views
I have a question regarding Google Calendar API logic
I'm testing Google Calendar authentication-related logic in Java. I'm not sure if I'm misunderstanding the concept, but I've been unable to resolve the issue for several days now.
My code is as ...
0
votes
1
answer
188
views
Google Drive credential returns 403 insufficientPermissions
I'm trying to get a list of files' data from Drive.
Following the google's example didn't work.
This is an example of my code:
private static final JsonFactory JSON_FACTORY = GsonFactory....
2
votes
2
answers
567
views
How can I set up a Google OAuth2 client using https scheme in Java using?
I am writing an application that uses the Spreadsheets API. Because I am using the write scope, which is sensitive, the OAuth2 redirect URI must use https instead of http (except when using localhost)....
0
votes
1
answer
238
views
401 Unauthorized to sqladmin.googleapis when using Spring Cloud to create ephemeral certificate for GCP Cloud SQL
I am connecting a Springboot application on my local computer to GCP Cloud SQL, using Spring cloud dependency com.google.cloud:spring-cloud-gcp-starter-sql-postgresql:4.8.2
The dependency is trying to ...
0
votes
1
answer
147
views
Integrating Google calendar to a jsf web App
Our web application, developed in JSF, allows its users to schedule meetings in their calendar.
The goal is that in the application settings, each user can integrate their Google account, so that the ...