All Questions
Tagged with google-api-java-client java
579 questions
0
votes
1
answer
146
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 ...
1
vote
1
answer
129
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
59
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
59
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
197
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
648
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
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 =
...
1
vote
0
answers
996
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:
...
1
vote
2
answers
771
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 ...
0
votes
1
answer
319
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 ...
0
votes
1
answer
75
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(...
0
votes
1
answer
141
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) {
...
1
vote
0
answers
1k
views
Why am I getting an "unknown error" after signing in with Google OAuth 2.0 and Java
I am using the Java Client Library to handle Google authentication for my app. Below is the code to handle the authentiation. It is almost exactly the same as the code featured on the Java quickstart, ...