gdata-api

How to convert Google spreadsheet's worksheet string id to integer index (GID)?

点点圈 提交于 2019-12-28 03:39:06
问题 To export google spreadsheet's single worksheet to CSV, integer worksheet index(GID) is required to be passed. https://spreadsheets.google.com/feeds/download/spreadsheets/Export?key=%s&gid=%d&exportFormat=csv But, where are those informations? With gdata.spreadsheets.client, I could find some string id for worksheet like "oc6, ocv, odf". client = gdata.spreadsheets.client.SpreadsheetsClient() feed = client.GetWorksheets(spreadsheet, auth_token=auth_token) And it returns below atom XML. (part

Change acl of pdf and non-google documents (EDU domain)

依然范特西╮ 提交于 2019-12-25 06:01:18
问题 I'm receiving this error when trying to change file ownership from Google Apps Script (Google Apps for Education): GData ServiceException You can't yet change the owner of this item. (We're working on it.) The same code works on a Google Apps for Business domain. Is there a limitation for EDU domains? 回答1: Ok, found the answer in the Google Drive support pages: Only Google Apps customers in Premier and Government domains can transfer ownership of a synced or uploaded file (such as a PDF or

How can I get the list of followers from the Google Data API for Blogger?

烂漫一生 提交于 2019-12-25 05:58:10
问题 I am able to get the list of 'authored' blogs for a particular user profile-id and its response is available in JSON. However, when I try to request the profile (which has the list of followers), I can only get the result in HTML. Is there any way to get the list in a data-protocol format (i.e., XML or JSON)? 回答1: After spending several days trying different APIs, I am convinced that the list of followers is not available through Blogger. I worked with the Blogger API, the Client Libraries

Is Client Login required for pulling the data from google analytics data export API

纵然是瞬间 提交于 2019-12-25 04:55:47
问题 Coding in ASP.NET 4.0 / javascript/ jQuery/ WebServices The Scenario I have an analytics account i have set up at, say, some-name@gmail.com with password as pass123 I also know the table id,say ga:30037474 My question is can I pull data like // Load the Google data JavaScript client library. google.load('gdata', '2.x', { packages: ['analytics'] }); // Set the callback function when the library is ready. google.setOnLoadCallback(init); function init() { myService = new google.gdata.analytics

Google contacts API returns low resolution photos

别来无恙 提交于 2019-12-25 03:55:18
问题 I'm using Google's Data APIs Java library to access contacts and when using the getContactPhotoLink() method I can only get low resolution (96x96) photos. Is there anyway I can get bigger resolution photos? On my Android phone the photos showing up are definitely not 96x96 pixels... Thanks 回答1: It heavily depends on the version of Android. If you have anything under ICS 4.0 then the maximum image size is 96x96. It may look bigger on your phone, but thats because the image is being scaled to

Gdata signed request error: “Unknown authorization header”

ぃ、小莉子 提交于 2019-12-25 03:39:10
问题 I have a problem with Updating and Deleting events using signed requests. Inserting events works just fine. But when Updating and Deleting I receive an "Unknown authorization header" 401 error. For ALL three operations I first generate the client like this: $client = new Zend_Gdata_HttpClient(); $client->setAuthSubPrivateKeyFile('certificates/gcalkey.pem', null, true); $client->setAuthSubToken($session_token); $gdataCal = new Zend_Gdata_Calendar($client); To Update an event I use this:

Reading a document's content from the gdata API?

走远了吗. 提交于 2019-12-24 19:46:45
问题 I'm using the java library to access the gdata api. I just want to be able to print the contents of a document. I setup my project to list all the docs in my feed, now that I have a document listing, I want to print its contents: for (DocumentListEntry entry : feed.getEntries()) { // Ok, how do we print the doc's contents now? entry.getContents(); } It looks like we're supposed to get the URL from the entry, then read the contents at the URL ourselves. I found a post stating that this is how

Time difference issue when adding a Google Calendar Event using C#

牧云@^-^@ 提交于 2019-12-24 14:01:16
问题 I am using "Google.GData.Calendar" API to add Events to the Google Calendar using c#. But there is time difference between the events created in my DB and Google Calendar. Following is the Code to add an Event to Google Calendar using the Google.GData API: public static void AddEventToGoogle() { //string timezone = "US Mountain Standard Time"; Uri postUri = new Uri("https://www.google.com/calendar/feeds/default/private/full"); try { GOAuthRequestFactory authFactory = new GOAuthRequestFactory(

Spreadsheet Authentication in GData API

家住魔仙堡 提交于 2019-12-24 07:56:27
问题 I'm trying to edit a gdocs spreadsheet using the GData API. I have the following code: _service = new DocsService("attask-gdocsintegration-1.0"); _service.setUserCredentials(username, password); String feedUrl = "https://docs.google.com/feeds/default/private/full"; SpreadsheetQuery query = new SpreadsheetQuery(new URL(feedUrl)); query.setMaxResults(1); query.setTitleExact(true); query.setTitleQuery(title); SpreadsheetFeed feed = _service.getFeed(query, SpreadsheetFeed.class); if(feed

Google Talk API for iPhone

烂漫一生 提交于 2019-12-24 03:12:24
问题 Does anyone know how to connect to Google Talk using GData API. IS there a better api for iphone development for connection to Google Talk? I have been looking thru the examples I downloaded for the API but I don't see any support. This is what I have been looking at. 回答1: Google Talk uses XMPP, and it has no GData API. I suggest you look at: http://code.google.com/apis/talk/talk_developers_home.html 来源: https://stackoverflow.com/questions/4550784/google-talk-api-for-iphone