gdata-java-client

gdata-java-client + oauth2 + access_token secret

倾然丶 夕夏残阳落幕 提交于 2019-12-17 19:00:26
问题 I'm currently trying to use the new java client(s) and due to legacy reasons for current state of google libraries, I need to use both the gdata and the new google java client api. Obviously I'd like to use OAuth2 -- however with OAuth2 I am not getting the access token secret -- which causes an issue b/c gdata requires the access token secret. Could anyone pls advise on a workaround eg. - is there a way to use gdata java libraries with only access token(OAuth2) and not access token secret?

Trouble fetching Google calendar event exceptions by event id in Java

本秂侑毒 提交于 2019-12-13 21:52:21
问题 I've been working with the Gdata API for Java (v2), and have figured out how to fetch events by their id. However, I'm having trouble fetching exceptions to recurring events. For a regular event, I would fetch it as such: CalendarEventEntry event = getCalendarService().getEntry(new URL("https://www.google.com/calendar/feeds/"+googleCalId+"/private/full/"+eventId), CalendarEventEntry.class); and the url being queried would look something like this: https://www.google.com/calendar/feeds

com.google.gdata.util.AuthenticationException: Error connecting with login URI

假装没事ソ 提交于 2019-12-11 05:36:10
问题 I have written a Java application which I am launching with the following command: java -jar MyApp.jar The application uses Google's GData Java libraries to edit a Google Spreadsheet. When I run this application from my Mac, it runs fine. However, I need to run it on my dedicated server. When I upload it there and try to run it, I receive the following error: $ java -jar MyApp.jar com.google.gdata.util.AuthenticationException: Error connecting with login URI at com.google.gdata.client

Using Android AccountManager to get authtoken for gdata

*爱你&永不变心* 提交于 2019-12-04 13:49:19
问题 So I am trying to sync to google docs, without having to ask the user for his credentials. I use this code to get an auth-token: AccountManager mgr = AccountManager.get(activity); authToken = mgr.blockingGetAuthToken(account, DocsService.DOCS_SERVICE, true); This returns a auth-token that looks well-formated. So on my DocsService I run: service.setAuthSubToken(authToken); However, when I try to use the API I just get a AuthenticationException. Any ideas on how to approach this error? edit: I

gdata-java-client + oauth2 + access_token secret

无人久伴 提交于 2019-11-28 09:28:46
I'm currently trying to use the new java client(s) and due to legacy reasons for current state of google libraries, I need to use both the gdata and the new google java client api. Obviously I'd like to use OAuth2 -- however with OAuth2 I am not getting the access token secret -- which causes an issue b/c gdata requires the access token secret. Could anyone pls advise on a workaround eg. - is there a way to use gdata java libraries with only access token(OAuth2) and not access token secret? Code examples(and attempt) do not corroborate this but perhaps I'm doing something incorrectly or do I