gdata

Getting Zend_GData Feed for a Specific Google Calendar

北城余情 提交于 2019-12-05 08:52:35
I had a long detailed question about how to get a specific calendar's event feed, but figured (I think) a solution out before I posted. However, even with the solution I'm left wondering what I'm missing about this process. To get a single calendar's event feed (or to search that feed) I do the following: Authenticate (obviously) Get a list of Calendars: getCalendarListFeed(); Get the id property from one of the 'calendar' objects Change: .../calendar/feeds/default/XXX%40YYY To: .../calendar/feeds/XXX%40YYY/private/full Pass that to getCalendarEventFeed() to query for that calendar. Why do I

Google Calendar feed api deleted events

我是研究僧i 提交于 2019-12-05 08:50:22
I'm syncing the Google Calendar with my application (I store events in a database). When an event is updated I can easily find the last updates by sorting the event feed on the 'updated' order. However, if an event is removed / deleted, how can I track this update from the feed? Try to add showdeleted=true to your query feed and then check for EventStatus.CANCELED on retrieved entries. Check this thread for further information. I did exactly the thing you want to do (see this post: http://code.pui.ch/2009/12/29/fetch-publicly-available-google-calendar-data-with-python/ ): I have a database

Duplicate symbol in admob static library

僤鯓⒐⒋嵵緔 提交于 2019-12-05 08:25:25
In my application i am using libGoogleAdMobAds.a and libGDataTouchStaticLib.a for ads and video sharing on YouTube but it shows the duplicate symbols for architecture i386 for libGDataTouchStaticLib.a(SBJSON.o) How can i avoid this error in my app? 来源: https://stackoverflow.com/questions/18486349/duplicate-symbol-in-admob-static-library

Update google spreadsheet using python client API on GAE app

社会主义新天地 提交于 2019-12-04 20:03:51
I've got a google spreadsheet owned by a GAE service account and I want my GAE Python app to update a cell in one of the rows. Based on some reading, these are my findings: the spreadsheets service is old-school. It's a Google Data API and most Google services are now on the Google API platform. For Google API services, one can use a service account to do two-legged oauth2 access, but not for Google Data API services. Oh, it seems one can do two-legged oauth on Google Data API services, but only if the app is on a Google Apps domain (which mine isn't) I could implement a similar effect (i.e. a

How to upload documents with new python-gdata (2.0.16)?

这一生的挚爱 提交于 2019-12-04 19:23:48
With python-gdata 2.0.14, I used the following pieces of code to create and upload documents: # To create a document import gdata.docs import gdata.docs.client from gdata.data import MediaSource gdClient = gdata.docs.client.DocsClient(source="my-app") gdClient.ssl = True gdClient.ClientLogin("login", "pa$$word", gdClient.source) ms = MediaSource(file_path="temp.html", content_type="text/html") entry = gdClient.Upload(ms, "document title") print "uploaded, url is", entry.GetAlternateLink().href and # To update a document entry.title.text = "updated title" entry = gdClient.Update(entry, media

Using Spreadsheet API OAuth2 with Certificate Authentication

邮差的信 提交于 2019-12-04 18:21:45
I am trying to use Gdata Spreadsheet API with OAuth2. Using OAuth2.0 ClientID works with OAuth2WebServerFlow on a domain, But using Service Accounts / Certificate causes a 400 BAD Request The scopes used are https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/admin.directory.group.readonly https://www.googleapis.com/auth/admin.directory.user.readonly https://docs.google.com/feeds/ https://spreadsheets.google.com/feeds Here is the code that I am using SUCCEEDS : OAuth2.0 flow = OAuth2WebServerFlow(client_id=CLIENT_ID,

Google Analytics API in C# -Execution of request failed: https://www.google.com/analytics/feeds/accounts/default

末鹿安然 提交于 2019-12-04 15:49:48
问题 i want to access Google analytic data and i got samples from Google data API SDK. but these coding does not working and throws exception Execution of request failed: https://www.google.com/analytics/feeds/accounts/default so i found the reason for this is Google updated it's to v3.0. i searched updated coding for the C#, but i couldn't find solution for this. i have same problem as this, but with C#. Exception thrown when using GData .NET Analytics API i tried coding with doing changes as

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

insert row python gdata.spreadsheets.client

妖精的绣舞 提交于 2019-12-04 13:05:17
I'm a bit stuck with the python gdata API for specifically google spreadsheets. Using gdata.spreadsheet.service it was easy to throw together a dict and insert that as a new row in a google spreadsheet like this http://www.mattcutts.com/blog/write-google-spreadsheet-from-python/ : Dict = {'weight':'600'} spr_client.InsertRow(Dict, spreadsheet_key, worksheet_id) Now i need to use the module gdata.spreadsheets.client as i require the Oauth stuff. I was able to do the authentication and edit exisiting cells however i have not been able to insert new cells or rows based on the value in the column

Authenticating to Calendar with Python gdata and oAuth 2

ぐ巨炮叔叔 提交于 2019-12-04 11:31:20
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) This token, secret pair would be long lived. With oAuth 2: I registered my app in the Google API