gdata

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

NoSuchMethod error getting a gdata service

笑着哭i 提交于 2019-11-28 08:50:17
I get the following error: Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.of([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet; at com.google.gdata.wireformats.AltFormat$Builder.setAcceptableTypes(AltFormat.java:399) at com.google.gdata.wireformats.AltFormat$Builder.setAcceptableXmlTypes(AltFormat.java:387) at com.google.gdata.wireformats.AltFormat.<clinit>(AltFormat.java:49) at com.google.gdata.client.Service.<clinit>(Service.java:558) at testproject.TestProject.run(TestProject.java:22) at testproject.TestProject.main(TestProject.java

MPMoviePlayerController is playing YouTube video?

与世无争的帅哥 提交于 2019-11-28 06:04:11
问题 I found a method to play YouTube video on MPMoviePlayerController. For this simply need a right url. That url may be obtained after playing YouTube video in iframe. My UIWebView uses this html: <html> <head> </head> <body style="margin:0"> <iframe class="youtube-player" type="text/html" width="280" height="200" src="http://www.youtube.com/embed/VJRKaQ52ImE" frameborder="0"> </iframe> </body> So after click on play in video rect, we can see msg in console like this: YT_Player[1520:207] setting

ClassNotFoundException for included dependency

萝らか妹 提交于 2019-11-28 02:27:38
I'm using maven to include the google gdata module in my project and everything compiles fine, but I get this runtime exception: Exception in thread "main" java.lang.NoClassDefFoundError: com/google/gdata/util/ServiceException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2570) at java.lang.Class.getMethod0(Class.java:2813) at java.lang.Class.getMethod(Class.java:1663) at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486) Caused by: java.lang

When authenticating with oAuth and youtube, always get error : invalid_grant on 2nd auth attempt, why?

霸气de小男生 提交于 2019-11-27 18:05:55
问题 As of yesterday, my application is able to authenticate with google (youtube) via oAuth 2.0 the first time no problem but the 2nd time (re-authentication, same app + same user), when I exchange the requestToken for an accessToken I get an error: error : invalid_grant I'm using: grant_type = authorization_code like they suggest. What used to happen, before 2 days ago, was on re-authentication the web page would say 'you've already authenticated with this application before, would you like to

Google.GData.Client.GDataRequestException - Authentication suddenly fails in old code

拜拜、爱过 提交于 2019-11-27 14:41:31
I'm suddenly starting to get the following exception when attempting to authenticate and access a spreadsheet on Google drive: Unhandled Exception: Google.GData.Client.GDataRequestException: Execution of aut hentication request returned unexpected result: 404 at Google.GData.Client.Utilities.getAuthException(TokenCollection tokens, Htt pWebResponse response) at Google.GData.Client.Utilities.QueryClientLoginToken(GDataCredentials gc, S tring serviceName, String applicationName, Boolean fUseKeepAlive, IWebProxy prox yServer, Uri clientLoginHandler) at Google.GData.Client.GDataGAuthRequest

jQuery.getJSON not working properly in IE8 with gdata json-c. Why? [duplicate]

戏子无情 提交于 2019-11-27 12:57:00
This question already has an answer here: How to make cross-domain AJAX calls to Google Maps API? 1 answer Using jQuery: $.getJSON('http://gdata.youtube.com/feeds/api/videos/b2-5GSjZvW8?v=2&alt=jsonc', function(meta){alert(meta.data.title);}); Firefox and Chrome both work as expected, but IE keeps triggering the error function (when using $.ajax ) instead of success. The error status is "0" which doesn't help much. I've also tried using $.ajax with cache:false to no avail. Any ideas? I can't tell you if it's an error in jquery or IE, but it looks like the XDomainRequest fails in IE. Add this

How to get only recalculated cells from a google spreadsheet via Google spreadsheet API (gdata)

自古美人都是妖i 提交于 2019-11-27 08:41:15
问题 Gdata offers a way to get only changed cells from a google spreadsheet, based on a time stamp. How should I create the time stamp for the Gdata call? i.e. "Only entries with a published time equal to or later than the specified timestamp will be returned." setPublishedMax() https://developers.google.com/gdata/javadoc/com/google/gdata/client/Query#setPublishedMax(com.google.gdata.data.DateTime) Is there are a way to pull the current time from the server? If I create a local time stamp, how can

ClassNotFoundException for included dependency

落花浮王杯 提交于 2019-11-27 04:56:23
问题 I'm using maven to include the google gdata module in my project and everything compiles fine, but I get this runtime exception: Exception in thread "main" java.lang.NoClassDefFoundError: com/google/gdata/util/ServiceException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2570) at java.lang.Class.getMethod0(Class.java:2813) at java.lang.Class.getMethod(Class.java:1663) at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper

NoSuchMethod error getting a gdata service

本秂侑毒 提交于 2019-11-27 02:27:55
问题 I get the following error: Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.of([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet; at com.google.gdata.wireformats.AltFormat$Builder.setAcceptableTypes(AltFormat.java:399) at com.google.gdata.wireformats.AltFormat$Builder.setAcceptableXmlTypes(AltFormat.java:387) at com.google.gdata.wireformats.AltFormat.<clinit>(AltFormat.java:49) at com.google.gdata.client.Service.<clinit>(Service.java:558