gdata

(PHP) How to parse URLs in google search results?

我怕爱的太早我们不能终老 提交于 2019-12-06 07:47:55
How get google search results url? (I use Zend_Gdata_Gbase for get search google results and not DomDocument/htmlsimpleparser because its looks to me that Zend_Gdata_Gbase done specially for parsing google results. if I wrong in my selection, please write.) My function to get google search results for 'yahoo' or other query search string: (the function get a feed that should have search result for word 'yahoo', but when i use prin_t($feed) I don't see url for each result) <?php function queryGoogleSearch($queryString='yahoo'){ $service = new Zend_Gdata_Gbase(); $query = $service-

Authenticating to Calendar with Python gdata and oAuth 2

好久不见. 提交于 2019-12-06 05:27:30
问题 I'm migrating a Python application from oAuth 1 to oAuth 2 that reads a user's Google calendar feed. With oAuth 1: My app would open a browser were user can authenticate with his GMail account and authorize access, and my app would obtain a user_token, user_secret for that user, then authenticate to the calendar feed: client = gdata.calendar.client.CalendarClient(source='test') client.auth_token = gdata.gauth.OAuthHmacToken(app_key, app_secret,user_token,user_secret,gdata.gauth.ACCESS_TOKEN)

Retrieving data from Google Analytics API using .NET/C#

落花浮王杯 提交于 2019-12-06 03:40:01
问题 I'm trying to retrieve data from google analytics with a local console app. Im able to extract some data without having to log in to google account and only using the API. The problem is i'm not getting the right values and im not sure how to format the code to extract the correct values. I wan't to retrieve all visitors within a certain time frame, in this case "2012-01-01" - "2014-02-20". The real number of visitors is like 10 times larger when looking in the Google Analytics dashboard. I'm

gdata Unknown authorization header - started 12/11/13

核能气质少年 提交于 2019-12-06 02:35:38
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 Google Account Authentication APIs ( ClientLogin, AuthSub and OAuth 1.0 ) are deprecated as per deprecation policy. http://googledevelopers.blogspot.com/2012/04/changes-to-deprecation-policies-and-api.html Important: AuthSub has been officially deprecated as of April 20, 2012. It will

Loading a generic Google Spreadsheet in Pandas

我的未来我决定 提交于 2019-12-06 01:23:00
问题 When I try to load a Google Spreadsheet in pandas from StringIO import StringIO import requests r = requests.get('https://docs.google.com/spreadsheet/ccc?key=<some_long_code>&output=csv') data = r.content df = pd.read_csv(StringIO(data), index_col=0) I get the following: CParserError: Error tokenizing data. C error: Expected 1316 fields in line 73, saw 1386 Why? I would think that one could identify the spreadsheet set of rows and columns with data and use the spreadsheets rows and columns as

Pulling data from Google Calendar on Android in JSON

为君一笑 提交于 2019-12-05 17:37:06
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 want a raw JSON string. Pulling the data directly through JavaScript in the WebView - unacceptable

Retrieving token and secret from gdata.gauth.OAuthHmacToken python object

不打扰是莪最后的温柔 提交于 2019-12-05 16:45:35
I'm following Google's great sample code for three-legged OAuth. Specifically, I'm looking at the python version of the code. I'm stuck between 'Upgrading to an access token' and 'Using an access token'. In 'Upgrading to an access token', there is a line of code as follows: access_token = client.GetAccessToken(request_token) In 'Using an access token', there is a line of code as follows: client.auth_token = gdata.gauth.OAuthHmacToken(CONSUMER_KEY, CONSUMER_SECRET, TOKEN, TOKEN_SECRET, gdata.gauth.ACCESS_TOKEN) I assume TOKEN and TOKEN_SECRET are packed into the access_token object ( gdata

NoSuchMethodError : google common ImmutableSet.copyOf(..)

夙愿已清 提交于 2019-12-05 13:58:47
I upgraded my Google app Engine app from 1.7. to 1.8. + Java 7 and i leveled up all API libraries to be up-to-date. I am getting strange exceptions during app inicialization in GAE container : Constructor threw exception; nested exception is java.lang.NoSuchMethodError: java.lang.NoClassDefFoundError: Could not initialize class com.google.gdata.client.contacts.ContactsService . and this exception follows : . java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.copyOf([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;: . . com.google.apphosting.runtime.jetty

Google contacts gdata (Java) fails on No parser for content type:application-xml[application/xml]

て烟熏妆下的殇ゞ 提交于 2019-12-05 12:21:51
Recently, a 2 days ago we started to experience exception in google gdata client in Java, when trying to access contacts (feed : /m8/feeds/contacts/default/full). The exception is : com.google.gdata.util.ParseException: No parser for content type:application-xml[application/xml] at com.google.gdata.client.Service.parseResponseData(Service.java:2142) at com.google.gdata.client.Service.parseResponseData(Service.java:2098) at com.google.gdata.client.Service.getFeed(Service.java:1136) at com.google.gdata.client.Service.getFeed(Service.java:1077) at com.google.gdata.client.GoogleService.getFeed

Google's Oauth for Installed apps vs. Oauth for Web Apps

人盡茶涼 提交于 2019-12-05 09:22:43
So I'm having trouble understanding something... If you do Oauth for Web Apps, you register your site with a callback URL and get a unique consumer secret key. But once you've obtained an Oauth for Web Apps token, you don't have to generate Oauth calls to the google server from your registered domain. I regularly use my key and token from scripts running via an apache server at localhost on my laptop and Google never says "you're not sending this request from the registered domain." It just sends me the data. Now, as I understand it, if you do Oauth for Installed Apps, you use "anonymous"