google-api-java-client

“Requested entity was not found.” - Apps Script Execution API error

99封情书 提交于 2019-12-11 08:38:51
问题 We have an Apps Script that is installed in five G Suite accounts. I am invoking the app scripts from the Java code that is being deployed in Google App Engine. I have stored the five refresh tokens in a properties file and set them in GoogleCredential in a round robin fashion before invoking the Apps Script. When I am trying to invoke the Apps Script Requested entity was not found. , an error is returned. But the same refresh tokens and client secrets work fine when I create a simple java

Error while using PicasawebService with GAE

一曲冷凌霜 提交于 2019-12-11 07:40:07
问题 I am trying to connect to picassa webalbum from my GAE application.But I am not able to authenticate. PicasawebService myService = new PicasawebService("myclub"); myService.setUserCredentials("username@gmail.com", "my_password"); The error im getting is com.google.gdata.util.AuthenticationException: Error connecting with login URI at com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken(GoogleAuthTokenFactory.java:549) at com.google.gdata.client.GoogleAuthTokenFactory.setUserCredentials

`gradle jar` doesn't seem to be adding dependencies to jar file

别等时光非礼了梦想. 提交于 2019-12-11 06:47:43
问题 I'm wanting to make an executable file that will automatically create a Google Task list with associated tasks. Right now, however, I'm trying to simply create an executable using the default code that Google provides here. Once you add the credentials.json file (explained below) and enter gradle run (in the repo I've provided) in a terminal/cmd, it will work as expectedly. However, if you run gradle jar to create a jar, you will get this error when you try to run the jar: java.lang

Google push notifications java handler

寵の児 提交于 2019-12-11 04:59:34
问题 I have subscribed my app to listen to Google push notifications. Channel details was persisted. I can receive notifications from google to my endpoint. @PostMapping("/google/calendars/") public void watch(HttpServletRequest request, @RequestHeader(value = "X-Goog-Channel-ID", required = false) String googleChannelId, @RequestHeader(value = "X-Goog-Channel-Token", required = false) String googleChannelToken, @RequestHeader(value = "X-Goog-Channel-Expiration", required = false) String

Incompatibility issue between gdata-java-client and google-api-java-client

烈酒焚心 提交于 2019-12-11 04:47:34
问题 We have an app built on App Engine using OAuth1 and the Google Analytics API version 2.3 (using gdata-analytics-2.1.jar from the gdata-java-client). We have started to gradually update our app to use OAuth2 and the Core Reporting API v3.0. In the first step we just want to allow our users to request OAuth2 tokens, while the rest of the application will keep on using the old libraries. According to Google documentation when it comes to migrate to API Java client (http://code.google.com/p/gdata

Xml model for adding contact to google contacts

人走茶凉 提交于 2019-12-11 04:47:12
问题 I try to write xml model by hand(as described in google-api-java-client site) to add contact to google contacts,but I have always got 400 bad request when trying to POST my contact,I have include all required fields to my model and try different possibilities but it doesn't work.Can anyone write single xml model to add contact with name and phone Number? This is my ContactEntry model: public class ContactEntry { @Key public Category category; @Key("gd:name") public Name name; @Key public

Google Books API 403 Access Not Configured

不羁的心 提交于 2019-12-11 04:03:42
问题 I'm trying to contact the Google Books API and perform a title search, which only requires a public API key and no OAUTH2. All I get is the following error: { "error": { "errors": [ { "domain": "usageLimits", "reason": "accessNotConfigured", "message": "Access Not Configured" } ], "code": 403, "message": "Access Not Configured" } } After having googled around for hours, it seems many others have the same problem but with other Google APIs. What I've done so far: Registered a project in my

Missing a valid API key about Google Translation API Client issue?

筅森魡賤 提交于 2019-12-11 03:54:38
问题 I follow the https://cloud.google.com/translate/docs/reference/libraries#client-libraries-usage-java to get started java client demo. I have already set authentication json file to the environment variable GOOGLE_APPLICATION_CREDENTIALS . However, I got the translateException when I run java sample code. Exception in thread "main" com.google.cloud.translate.TranslateException: The request is missing a valid API key. at com.google.cloud.translate.spi.v2.HttpTranslateRpc.translate

java.lang.NoClassDefFound error javax Gmail API

和自甴很熟 提交于 2019-12-11 03:18:39
问题 I'm running into an exception in a gmail client I'm working on. The exception is the java.lang.NoClassDefFound that is triggered on the getDefaultInstance line Properties props = new Properties(); Session session = Session.getDefaultInstance(props, null); I've included the javax jar as follows: dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.2.0' compile 'com.google.android.gms:play-services:7.3.0' compile 'com.google.api-client

Google Contacts - Get contacts of another user using service account

廉价感情. 提交于 2019-12-11 02:08:23
问题 I am trying to get contacts of another user using Google Service Account. I even set the user credentials to the username and password of the account for which I want to fetch the contacts. However, I keep getting an error - Exception in thread "main" com.google.gdata.util.ServiceForbiddenException: Cannot request contacts belonging to another user Initially I was using admin account to get the contacts of another user for which I kept getting a Forbidden error. I was told that service