Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.

All Questions

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 ...
jn4's user avatar
  • 55
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: ...
user2188158's user avatar
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> ...
Swordfish's user avatar
  • 1,279
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 ...
Raneen Bsais's user avatar
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 ...
recadro's user avatar
  • 11
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....
lohan's user avatar
  • 9
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)....
kvitso's user avatar
  • 328
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 ...
xxhawk8xx's user avatar
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) ...
Rekillme Re's user avatar
0 votes
1 answer
71 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 = ...
Sinio's user avatar
  • 29
1 vote
0 answers
980 views

GA4 Data API - How to set multiple dimensions and metrics

I am trying to generate a report using the Data API of GA4. However, I could not manage to add multiple metrics or dimensions to my report builder. This is how I try to achieve this functionality: ...
Denizcan Yılmaz's user avatar
1 vote
2 answers
767 views

API source error when changing to Google Analytics Ga4

I changed Google Analytics to Ga4 The administrator is pulling statistics through the api and using it. API is using v4, so I think it's compatible with ga4. Follow the manual to connect to Google ...
SsenGom's user avatar
  • 23
0 votes
1 answer
294 views

Google API Calendar calendar ID "primary" not working

I'm trying to integrate Google Calendar API and I've been able to configure the API using a Service Account with its ID and I've already shared my calendar with the new IAM email address that was ...
Yusuf Musa's user avatar
0 votes
1 answer
60 views

how to determine number of files in a folder in Grive or list them by date ascending

I'm using the Gdrive Java API and the code I have to list a directory is: FileList result = driveService.files().list() .setPageSize(100) .setFields("nextPageToken, files(...
user2395365's user avatar
  • 2,169
0 votes
1 answer
136 views

java.lang.IllegalStateException: getTransportChannel() called when needsExecutor() is true while getting gcp secret manager

I tried to use with dependency version google-cloud-secretmanager 2.13.0. is there anyone can help with this? Here is util class to get secret manager value. public String get(String secretName) { ...
Chan Myae Aung's user avatar

15 30 50 per page
1
2 3 4 5
39