1,154 questions
0
votes
0
answers
27
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
63
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
184
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
35
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(&...
0
votes
0
answers
81
views
Google Document AI API Returning Worse Results Than Console
I am trying to use the google document ai api.
I have created a custom processor and defined a custom schema. When I upload a document through the console, the processor highlights almost all of the ...
1
vote
1
answer
100
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
49
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
50
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
156
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....
1
vote
1
answer
406
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
199
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
138
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
1k
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
1k
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
65
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
925
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
737
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
226
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
55
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
128
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
1
answer
2k
views
You are not authorized to decode the requested integrity token while decoding play integrity token
I have followed all the steps outlined in https://developer.android.com/google/play/integrity/setup#integrate-into-app to add Play Integrity to my Android library. Configured the app using this ...
0
votes
1
answer
362
views
Google Play Integrity API: PKIX path building failed: ....SunCertPathBuilderException: unable to find valid certification path to requested target
I encounter this exception while trying to decode the Play Integrity token on the server side:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find ...
1
vote
0
answers
945
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, ...
2
votes
2
answers
778
views
How to integrate Google Calendar client with GoogleCredentials in Java
Hi I am trying to use Google Calendar client with GoogleCredentials but not able to find any docs on how to make this work. Please add a doc or let me know how to make it work.
package com.example;
...
0
votes
0
answers
142
views
com.google.api.client.googleapis.json.GoogleJsonResponseException: 500 Internal Server Error in Files list using query search
I am trying to query a list of root files and folders which are owned by me and along with items which are shared with me.
So I am using this query - ((not 'me' in owners and sharedWithMe) or 'root' ...
1
vote
1
answer
451
views
Youtube Data API - Java implementation
Been browsing for a while but can't find concrete answer whether the Java implementation of the Youtube Data API includes handling rate limits out of the box or is this something one has to account ...
1
vote
2
answers
949
views
Error trying to create an instance of GoogleIdTokenVerifier using the Java Google Client Api
i'm trying to integrate the google login function on my website and i'm following the relative google doc for the server side token validation: https://developers.google.com/identity/gsi/web/guides/...
0
votes
1
answer
194
views
Getting 400 when uploading video with YouTube API
When trying to upload a video using YouTube Data API, I get:
Exception in thread "main" com.google.api.client.googleapis.json.GoogleJsonResponseException: 400 Bad Request
POST https://www....
0
votes
1
answer
162
views
How to insert text to tablecell google doc api with java client libary
i want insert text to table 2x3, when insert text with new rows i see strange behavior. How to calculate correct index to insert content in tablecell, or document for that?
List<Request> ...
5
votes
0
answers
131
views
Internal Server error in GoogleDrive V2 API when using maxResults param [closed]
I am using GoogleDrive's V2 java client library to list the files from my GDrive.
I am getting the below error from Google end frequently.
{
"code" : 500,
"errors" : [ {
&...
1
vote
2
answers
375
views
Google cloud dataflow restapi always returns 403-SERVICE_DISABLED
I have this dependency
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-dataflow</artifactId>
<version>v1b3-rev20221025-2....
1
vote
1
answer
1k
views
What is the data processing latency for the Google Analytics data api for (GA4)?
I am reading the analytics data using API call found in this link
Google Analytics Data API (GA4)
What is the google delay to return all the info? for example, at 5 Am can I be sure I am receiving ...
0
votes
1
answer
534
views
Caused by: java.io.IOException: The Application Default Credentials are not available
I'm working on an android app that interfaces with a google sheet. I was following the api documentation for writing values to certain cells but I'm getting this error here:
Caused by: java.io....
1
vote
1
answer
257
views
Create a job on jobs google via api returns "The Application Default Credentials are not available" [closed]
I started to create an application for posting vacancies in jobs.google. I can not find an open api in order to post these vacancies directly on jobs.google through it.
Tell me how to do it.
I found a ...
0
votes
1
answer
147
views
google tag manager api createContainer return 404
When I use this api:
getTagManager().accounts().containers().create(accountPath, container).execute();
return:
Caused by: com.google.api.client.googleapis.json.GoogleJsonResponseException: 404 Not ...
1
vote
0
answers
194
views
How to check if we have more pages in GA4 using JAVA
I am reading the GA4 info according to the code sample provided here in Google Developers Documentation.
I do not know how to check if there are more pages? looking at the result's size I guess I am ...
0
votes
1
answer
184
views
Updating meeting recipient calendar through service account
Can my app update google calendar recipient meeting, if the recipient has given access to the service account of the App? When I try to do that, I get this message:
Exception thrown: 403 Forbidden
...
0
votes
1
answer
779
views
Google authorization as a Service Account (Java)
I'm trying to get authorization through a Service Account to Google Sheets (No confirmation window). I can't find any information about it. If I use the method from https://developers.google.com/...
5
votes
0
answers
1k
views
Google Drive APIs returns 500 - Internal error when page size exceeds 150
I am using Google Drive's java Client Library to list and download files from my application. When trying to list files, I am getting 500 Internal Server error from Google.
{ "code" : 500, &...
0
votes
1
answer
156
views
Handling DST in google api using java
I need to create some events and upload them to a google calendar. Now I have hit an unforeseen bump, as the times and timezone offset gets changed automatically, once uploaded. I am working with a ...
0
votes
1
answer
707
views
Excluding the transitive com.google.http-client:google-http-client:1.42.1 child dependency from included dependencies in Gradle
I'm facing this weird java.lang.NoSuchMethodError in my Groovy project, and I have it pretty much down to that there's some transitive grand-child dependency, that is being included by multiple child ...
1
vote
0
answers
157
views
Google is presenting different certificates for the same Gmail API call
We are using Google's Gmail API (https://gmail.googleapis.com/gmail/v1/users/{userId}/history) in our application and the API is returning Certificate with different CNs: sometimes the CN is “google....
1
vote
1
answer
807
views
When my application is trying to access Google Drive API, I am getting com.google.api.client.auth.oauth2.TokenResponseException: 400 Bad Request
This my application worked successfully before. The issues appeared despite I did not change any application code. Neither I did any changes in the drive api console.
Currently it is being ...
1
vote
0
answers
753
views
Weird java.lang.NoSuchMethodError when trying out the GMail API Quickstart
Problem
In trying this quickstart example, and of course, refactoring it to my needs/coding style, I am facing this weird Error:
Test Cases/Unit Tests/SMDEmailUtils FAILED.
Reason:
java.lang....
6
votes
3
answers
3k
views
Compatibility problems when using 2.0.0 google-api-client for Gmail calls
I've been working on a little project that connects to the user's Gmail inbox and reads the mails using google-api-client 2.0.0 and google-api-services-gmail version v1-rev20220404-2.0.0
When I try to ...
-1
votes
1
answer
757
views
The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise - java android
I making an app using google drive to store files for user to their google drive
I followed google developer guide in https://developers.google.com/drive/api/guides/about-sdk
and when i press the ...
1
vote
2
answers
432
views
Reading labels works but reading messages results in ACCESS_TOKEN_SCOPE_INSUFFICIENT
I have created one poc using Gmail API which read all email and print on console. I have take refrence from Gmail api Java quickstart.
I have follows all the steps like create project, Gmail API ...
1
vote
1
answer
3k
views
Gmail Send request results in "insufficient authentication scopes" error
I try to send mail use Gmail API. My code almost the same like in google tutorial, but when I invoice this send Message method I get error Request had insufficient authentication scopes.
This is full ...
3
votes
1
answer
2k
views
Spring Boot: No converter for [class java.io.ByteArrayOutputStream]
I'm trying to export a document from Google Drive via their Drive API, and there's an example of it in the docs, but I didn't have any luck with it.
Here's my code:
@RequestMapping(value = "/test&...
0
votes
0
answers
760
views
Google Client API and Gradle, com.google.api package does not exist
This is my first time here on StackOverflow, therefore please forgive any possible mistake or lack of details when presenting my issue.
I am trying to make a very simple book database manager for ...