google-api-java-client

Google Calendar Sample app not showing events

旧街凉风 提交于 2019-12-12 03:15:55
问题 I have installed the sample Calendar project from here. When I run this app on the emulator, I see three feeds: Contact's Birthdays and events US Holidays, and my gmail account I added some dummy events to my calendar by logging into my account. But I am not able to see these events from the app. Any suggestions? 回答1: The sample project does not (I believe) include sample code to get events. You will have to enhance the sample project with some of your own code. When writing your code, can I

Google Contacts, Google Drive on Google App Engine 1.7.5 JAVA

霸气de小男生 提交于 2019-12-12 00:38:09
问题 using gdata-contacts-3.0.jar, google-api-services-drive-v2-rev43-1.12.0-beta.jar, guava-13.0.1.jar Google Drive works but not Google Contacts. (i tried all kinds of solutions but never got both working together on Google App Engine where as it works in local devmode.) calling: ContactsService gservice = new ContactsService("..."); Caused by: java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.copyOf([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet; at com.google

app engine mail is not sending

青春壹個敷衍的年華 提交于 2019-12-11 19:46:26
问题 I have App engine Application. I have one servlet named push . I deploy me application and call my servlets GET method. In My servlet, I have two methind: 1) first is that: (that method does not send mails. I dont undestand why? I have no errors) void sendMail() throws UnsupportedEncodingException{ Properties props = new Properties(); Session session = Session.getDefaultInstance(props, null); String msgBody = "TEXT HERE"; try { Message msg = new MimeMessage(session); msg.setFrom(new

Google Calendar Events Watch 401 Unauthorized

隐身守侯 提交于 2019-12-11 14:53:52
问题 I'm having troubles using the Google Calendar Events: watch API. I've setup the client ID and client secret and am able to get access and refresh tokens from a user. Also the domain is verified in the Google API console. As shown below I'm able to insert a new Event using the API. However the call to Events Watch fails with a 401 Unauthorized message. Below I've included the HTTP logs. I'm using the java libraries provided by Google Anybody any idea why i'm getting a 401 Unauthorized response

(Google Embed API) How to change chart-table-style width

徘徊边缘 提交于 2019-12-11 13:47:56
问题 ( This is regarding google-embed-api NOT google charts, Stack Overflow won't let me create a new tag without 1500 reputation) Hello, I'm not incredible at CSS, and am working on a project where I must present a bunch of columns per dimension using googles new charts embed API. The chart is created through a js call to gapi.analytics.googleCharts.DataChart() which creates what I want, perfectly, however the CSS settings in the JS call are overriding the one's I specify. Calling gapi.analytics

Importing zip file as library - Eclipse Java

本秂侑毒 提交于 2019-12-11 12:33:52
问题 I stucked here importing google http library. I made some research in links such as: Eclipse, Java: How to import a library in zip-format? Import Libraries in Eclipse? The thing is, I imported correctly and was working right. But after some point it stopped to work. I creater one user library, imported the zip file which contain the library but it's not sort of "compiling the library". Take a look at the print, please: I'm trying to solve on my own for four hours but I'm getting tired...

Service getting called from Activity but not getting anything in logcat?

拟墨画扇 提交于 2019-12-11 12:28:42
问题 This is kinda a repost and I'm sorry for that, but the last time I posted it I thought I got it down but apparently not. When I tried to call the Service I use to get this error Caused by: java.lang.IllegalStateException: GoogleApiClient is not connected yet. Because I was trying to call LocationServices before GoogleApiClient was even connected. So after changing the code up a bit I wasn't getting the error anymore, in fact I wasn't getting anything in logcat anymore. This is how I start my

Spring MVC : Sign-in with google+ by using API

北慕城南 提交于 2019-12-11 12:05:26
问题 I am working on a Spring-MVC application in which I would like to integrate Google+ signin functionality. Before this, with some help form nice people on SO, I managed to implement Google Calendar functionality. Now, when I am trying to use Google+ sign in, I have 2 options, either use PHP code, or Javascript coupled with some other backend options. My point is, Google Calendar implementation also required authorization by the user, but I was able to do that purely in Java, while I am having

Batch requests throws 404 not found

一曲冷凌霜 提交于 2019-12-11 09:28:31
问题 I'm using the Google Apps Java client library to develop an Android application. I am trying to send a batch request as explained here. This is my request code for the discovery endpoint, which you can see has a batchPath field with "batch" as value: BatchRequest batchRequest = mApi.batch(); mApi.insert(mEntity).queue(batchRequest, callback); batchRequest.execute(); However I keep getting a 404 error . I have already deployed my rebuilt project and double checked the API url. Why is my

GoogleApps client giving SocketTimeOutException only

江枫思渺然 提交于 2019-12-11 09:09:57
问题 We wrote a client to create a user on googleapps using the GoogleNetHttpTransport, but we are getting a socketTimeoutException when making the user as Super Admin through superadmin api. Connecting User has superAdmin Privileges itself. How to increase the ReadTimeOut/SocketTimeout when we are using the GoogleNetHttpTransport . Please find below code snippent on connecting to target and making the client httpTransport = GoogleNetHttpTransport.newTrustedTransport() ; GoogleCredential