gdata

How to make a maven sub-dependency “provided” in 3rd party dependency?

a 夏天 提交于 2020-01-04 00:13:27
问题 I am getting this error, when I run mvn tomcat:run in my web modulo. SEVERE: Servlet /web threw load() exception java.lang.ClassCastException: org.springframework.web.servlet.DispatcherServlet cannot be cast to javax.servlet.Servlet The problem happens when I add a dependency to one other modulo I have, specifically because that other modulo contains com.google.gdata:core dependency. I ran mvn dependency:tree I saw that this google dependency has servlet-api down its dependency tree, and so I

How to make a maven sub-dependency “provided” in 3rd party dependency?

主宰稳场 提交于 2020-01-04 00:11:25
问题 I am getting this error, when I run mvn tomcat:run in my web modulo. SEVERE: Servlet /web threw load() exception java.lang.ClassCastException: org.springframework.web.servlet.DispatcherServlet cannot be cast to javax.servlet.Servlet The problem happens when I add a dependency to one other modulo I have, specifically because that other modulo contains com.google.gdata:core dependency. I ran mvn dependency:tree I saw that this google dependency has servlet-api down its dependency tree, and so I

Uploading Any File To Google Docs Using GData

荒凉一梦 提交于 2020-01-03 05:06:26
问题 I'm trying to use the Google Docs GData API (.NET) to upload a file to my docs, but I keep getting errors thrown. I can't find any example that uses this method, so I'm not even sure that I am usign it correctly. DocumentsService docService = new DocumentsService("MyDocsTest"); docService.setUserCredentials("w****", "*****"); DocumentsListQuery docQuery = new DocumentsListQuery(); DocumentsFeed docFeed = docService.Query(docQuery); foreach (DocumentEntry entry in docFeed.Entries) { Console

gdata Unknown authorization header - started 12/11/13

僤鯓⒐⒋嵵緔 提交于 2020-01-02 08:25:20
问题 The google calendar sync had been working fine for a long time now suddenly starting yesterday we started getting the following error. I saw that this has happened in the past and google engineers (SRE) had to apply a patch to fix this. com.google.gdata.util.AuthenticationException: Unknown authorization header 回答1: Google Account Authentication APIs ( ClientLogin, AuthSub and OAuth 1.0 ) are deprecated as per deprecation policy. http://googledevelopers.blogspot.com/2012/04/changes-to

Pulling data from Google Calendar on Android in JSON

半世苍凉 提交于 2020-01-02 06:37:12
问题 I'm using Android SDK level 8, Java. I have an app with a WebView and I want to import JSON in it. What I want to achieve is: Send HTTP requests to the Google Calendar API v3 and receive data in raw JSON, however, authenticating the request using the Android account manager. I've been looking at the GData Java Client, more specifically at the Calendar Android Sample, which authenticates properly, but I want to specifically avoid the following things: Using the GData API - unacceptable since I

Youtube Upload Quality

纵然是瞬间 提交于 2020-01-01 09:55:06
问题 I am using google's GData API in order to upload a video to youtube from my app. The upload works fine however the quality of the video uploaded is only 360p whereas the quality of the original video is 720p. Is this working as intended? If so is there any way around this video compression that will allow my app to upload HQ movies? Here's the code I'm using to achieve the video upload if that's any help. GDataYouTubeMediaGroup *mediaGroup = [GDataYouTubeMediaGroup mediaGroup]; [mediaGroup

com.google.gdata.client.GoogleService.setUserToken(android.accounts.AccountManager.getAuthToken(???))

情到浓时终转凉″ 提交于 2020-01-01 03:44:21
问题 I've got working code that uses the gdata to retrieve feeds from my user's Google Finance portfolios, but I had to use setUserCredentials(username,password) . What I'd like to do is avoid asking the user for their username/password since the Android device already has access to their Google account. I believe I should be able to do this with setUserToken(String) , but I can't figure out how to get the appropriate token from Android. I've tried AccountManager.get(context).blockingGetAuthToken(

Getting an specific ProfileId from registered Accounts using GData .NET Analytics API 2.4

北城余情 提交于 2019-12-31 05:05:11
问题 In a past entry I figured out how to retrieve the metrics data for a certain profile id: Exception thrown when using GData .NET Analytics API Now I would like to retrieve a certain profile id that matches a registered domain name on my accounts list in Google Analytics, this was easy before, but after the last Google upgrade to Management/Core Reporting API 3.0, the old 2.3 feed has been shutdown and the AccountsFeed related code is not working as expected. 回答1: Using a suggestion posted here

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

梦想与她 提交于 2019-12-28 04:13: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

Google Data API Client Libraries with proxy

爷,独闯天下 提交于 2019-12-25 18:37:57
问题 I use java and gdata API to manage my Calendar's data. But it works only if I have direct access to the Internet. In my case I have to use proxy. Is there any way to manage my Google calendar's data through the proxy? I'v tried this way: System.setProperty("http.proxyHost", "myproxy.mydomain.com"); System.setProperty("http.proxyPort", "3128"); URL feedUrl = new URL("http://www.google.com/calendar/feeds/...."); CalendarService myService = new CalendarService("exampleCo-exampleApp-1"); String