1,152 questions
0
votes
0
answers
106
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
189
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
1
answer
131
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
415
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
63
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
146
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
62
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
64
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
204
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
701
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)....
1
vote
1
answer
286
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
158
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 ...
0
votes
1
answer
2k
views
NoClassDefFoundError: com/google/auth/Credentials occuring after jar compilation, but not in dev environment
Background
I have built a mod for Minecraft, and I am now at the point where it is ready to be built into a jar and run it in the game. My IDE is Intellij, the framework I am using is Fabric, and I am ...
2
votes
1
answer
2k
views
google-calendar-api with java spring boot
I am developing a java Springboot web application. In Which I have multiple users that login with a adress mail and a password. The login is Ok.
@Override
protected void configure(HttpSecurity http) ...
0
votes
1
answer
75
views
Do I have to Google Sign everytime to upload a Video to Youtbe using Java?
public static Credential authorize(final NetHttpTransport httpTransport) throws IOException {
InputStream in = new FileInputStream(CLIENT_SECRETS);
GoogleClientSecrets clientSecrets =
...