[Google-Docs-Data-APIs] Re: Revision history spreadsheet
Please ask in the DocList forum: http://groups.google.com/group/google-documents-list-api Short answer is yes! Eric On Aug 28, 3:24 am, phanya stefy...@gmail.com wrote: Hi,I'd like to know if it's possible to export a specific version/ revison of a spreadsheet. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Spreadsheet key inconsistency between Apps vs. API
Check the issue. It's been fixed for some time. http://code.google.com/p/gdata-issues/issues/detail?id=1328 On Aug 19, 1:46 pm, avolcoff volcarisupp...@gmail.com wrote: when are you expecting to fix this issue ? we have customers that cannot connect to google docs that are part of our blackberry application On Jul 30, 10:43 am, Raj zeem...@gmail.com wrote: I am also experiencing this issue (today) while trying to access a spreadsheet using the Java API (version 1.35 download). The issue tracker says that this issue was fixed. Do I need to download a different version of the Java library for the fix, or was this a server side fix? Thanks Raj On Jul 22, 12:17 pm, Eric Bidelman api.e...@google.com wrote: I'm fairly certain this is your problem:http://code.google.com/p/gdata-issues/issues/detail?id=1328 http://code.google.com/p/gdata-issues/issues/detail?id=1328A fix will be pushed sometime next week. Eric On Wed, Jul 22, 2009 at 8:02 AM, Kemal dis...@gmail.com wrote: Hello, Creating a new spreadsheet on Apps, the key I see on the address bar (assigned by /ccc?new) is t54Rt5ws-UGNQoT5gUbpedQ I name the spreadsheet, optionally fill it with data, set up sharing, and then SaveClose. When I open this spreadsheet again from the docs listing, I see that the key is now changed to 0AvH_RcXlCccmdDU0UnQ1d3MtVUdOUW9UNWdVYnBlZFE. OK, no problem. If I access the docs listing via API, http://spreadsheets.google.com/feeds/spreadsheets/private/full tells me the key for that spreadsheet is in fact the first one (t54Rt5ws-UGNQoT5gUbpedQ). Weird but ok. Both keys/urls work if I try to open the spreadsheet on the web, using /ccc?key=key. When I try to access this spreadsheet via the API, using the second key, (mind you it's not listed in the spreadsheets list I get using the API) http://spreadsheets.google.com/feeds/worksheets/0AvH_RcXlCccmdDU0UnQ1... gives me HTTP500, InternalError. The problem is, my users aren't aware of the first (original, the one without the underscore) key, so in my application they enter the second URL. Which my app can't access via the API. Any pointers? A way to convert the second key to the first? Maybe enable the API to let me in with the second key? Should I submit this in the issue tracker? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] New DocList API dedicated forum
If you have questions regarding the Documents List API (e.g. not the Spreadsheets API), please visit and join the new dedicated forum for that API: http://groups.google.com/group/google-documents-list-api/ Cheers, Eric --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: all samples requiring login breaking
http://groups.google.com/group/Google-Docs-Data-APIs/browse_thread/thread/9c763db8effeeff7# Something we're investigating. On Aug 15, 12:11 am, MK m...@games2win.com wrote: Hi, Running the samples like ant -f build-samples.xml sample.spreadsheet.guidemo.run returns a prompt for username and password. It worked fine yesterday [13th Aug 2009] (logging in and listing all my spreadsheets). From this morning, the console returns the following error message : Google had an error processing the request : Google returned the error: Unrecognized content type:text/ html;charset=UTF-8 Seems like the response from the login API is now broken and redirecting to a webpage ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Get Atom Dump of Spreadsheets
Do a var_dump($feed); to see how the Atom XML is parsed into an object. Also var_dump($feed-entries[0]); will give you just entry ($feed contains a lot of extras). Eric On Aug 8, 3:48 am, jwill...@uncc.edu jwill...@uncc.edu wrote: How Do I get a dump of the feed from a google docs account... if I do a simple: print $feed; nothing shows up, but it is able to parse it into it's individual components (i.e $feed-entries). I'm unable to find a good doc that shows everything the feed returns, so I'd like to see what my feed looks like when i call it up... Thanks... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: deleting a DocumentListEntry
Lets consolidate threads: http://groups.google.com/group/Google-Docs-Data-APIs/browse_thread/thread/8afd6d7ac18f112e/579156e87ca0ec28 Eric On Aug 5, 2:00 pm, Grant grantm...@googlemail.com wrote: I have read a few posts of people having problems trying to use the documentListEntry.delete() method to trash the document. I am also using the method (as specified in the Developer's Guide) but it doesn't delete the document, nor does it throw any IOExceptions or ServiceExceptions. has anyone successfully deleted a document using the delete() method in the DocumentListEntry class? Or is there a workaround? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: 415 Unsoported Media Type
Make sure the actual request being made looks like one of these examples (depending on what you're using): http://code.google.com/apis/documents/docs/2.0/developers_guide_protocol.html#UploadingDocs Also, I'm not sure how you are filling in the variable serverDoc. How are you reading the binary .doc file? Eric On Jul 28, 2:32 am, cgrizz cartergre...@gmail.com wrote: Alright Eric that info you gave me helped me out a lot i understood it and i'm actually working with uploading word documents. i was able to upload a .txt file just fine. my issue is now dealing with .doc files. when i try to upload a .doc file i get a 400 Bad Request: Multipart must have Atom and media part. i tried to google this error but all i got was more youtube api issues. can you help me out again? this is my code: GoogleDoc.upload1 = function(){ //---get from the server--// var url = HCI_usability_methods.doc; var request = new XMLHttpRequest(); var serverDoc=''; var uploadedDoc=''; request.open('GET', url, true); request.onreadystatechange = function () { if (this.readyState == 4 this.status == 200){ serverDoc=request.responseText;//Request Done //--post to google docs---// var data = '--END_OF_PART\r\n'+ 'Content-Type: application/atom+xml\r\n\r \n'+ ?xml version='1.0' encoding='UTF-8'?+ 'atom:entry xmlns:atom=http://www.w3.org/2005/Atom;'+ 'atom:category scheme=http://schemas.google.com/g/2005#kind;'+ ' term=http://schemas.google.com/docs/2007#document; label=document/'+ 'atom:titleHCI Methods/atom:title'+ '/atom:entry\r\n'+ '--END_OF_PART\r\n'+ 'Content-Type: application/msword\r\n\r\n'+ serverDoc+'\r\n'+ '--END_OF_PART--\r\n'; var Gurl = /proxy/docs.google.com/feeds/documents/private/full; var http = new XMLHttpRequest(); http.open('POST', Gurl, true); http.setRequestHeader(Content-Type, 'multipart/related; boundary=END_OF_PART'); http.setRequestHeader(Content-Length, data.length); http.setRequestHeader(Authorization, GoogleLogin auth=+authToken); http.setRequestHeader(Slug, HCI Methods); http.onreadystatechange = function () { if (this.readyState == 4 this.status == 201){ uploadedDoc=http.responseText;//Request Done } }; http.send(data); } }; request.send(null); } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: 415 Unsoported Media Type
This isn't an issue. It seems that charset:UTF8 is being appended onto the content type when using xmlHttpRequests. My solution was to use a mime multipart request that creates a new spreadsheet entry from Atom XML and upload text/csv content at the same time. I've posted a tip that should help with that: http://gdatatips.blogspot.com/2009/07/create-new-google-docs-spreadsheet-from.html Eric On Jul 27, 2:46 am, cgrizz cartergre...@gmail.com wrote: i feel this issue is getting a little ignored. did somebody find a solution to this. im still having a problem uploading any type of format of text. I'd really like to see a fix to this issue soon! On Jul 24, 3:30 pm, cgrizz cartergre...@gmail.com wrote: i just tried to do it with a simple txt file and i also got the 415 error. im making my post in javscript. On Jul 23, 1:42 pm, Spanishgringo freeman...@gmail.com wrote: Yes. I have tried various MIME types that are all officially supported I still get the same415error. On Jul 22, 8:40 pm, Eric Bidelman api.e...@google.com wrote: Have you tried 'text/csv'?http://code.google.com/apis/documents/faq.html#WhatKindOfFilesCanIUpload http://code.google.com/apis/documents/faq.html#WhatKindOfFilesCanIUpload Eric On Wed, Jul 22, 2009 at 1:23 AM, Spanishgringo freeman...@gmail.com wrote: At this point in the script I have obtained a valid Auth token using the Client Login process and I am passing a valid string that is of type text/tab-separated-values If you need to see other code please let me know. Thanks for the help function upload2GDocs(authToken, content){ //function used to upload the content to GDocs /* I have tried with and without the ?v=2 parameter */ var gdocURL = 'http://docs.google.com/feeds/documents/private/ full'; //unsafeWindow.console.log(content); authToken = authToken.toString(); if (authToken.length 1) { GM_xmlhttpRequest({ method: 'POST', url: gdocURL, overrideMimeType: text/tab-separated-values, headers: { 'Authorization': 'GoogleLogin ' + authToken, 'Content-Length': content.length, //'Content-Type': 'text/csv', 'Content-Type': 'text/tab-separated-values', 'Slug': download_report_ref+'.csv' }, data: content, onreadystatechange: function(responseDetails){ //unsafeWindow.console.log(responseDetails.readyState); }, onload: function(responseDetails){ unsafeWindow.console.log(responseDetails.status + ': '+ responseDetails.statusText); //unsafeWindow.console.log(responseDetails.responseHeaders); unsafeWindow.console.log(responseDetails.responseText); //wait till the file is downloaded, and execute this when ready if (responseDetails.status == 201) { var ans = confirm('Successfully uploaded to Google Docs \nFilename: ' + download_report_ref + '\n\n Click OK to open Google Docs in a new tab \n\n(you must allow popups fromwww.google.com )'); if (ans) { window.open(http://docs.google.com/#all;, 'external'); } } else { //unsafeWindow.console.log (responseDetails.responseHeaders); //unsafeWindow.console.log (responseDetails.responseText); if (responseDetails.status == 400) { retryLessWin(responseDetails); } else { alert('Whoops! There was a problem \n\n Error: ' + responseDetails.status + ': ' + responseDetails.statusText); }; }; showLoad(false); }, onerror: function(responseDetails){ alert('There seems to be a problem connecting...\n' + responseDetails.status + ': ' + responseDetails.statusText); showLoad(false); } }); } } On Jul 17, 7:45 pm, Eric Bidelman api.e...@google.com wrote: Can I see the code? On Fri, Jul 17, 2009 at 4:13 AM, Spanishgringo freeman...@gmail.com wrote: I have a script that I have been using for the last year to export reports directly from Google Analytics to Google Docs Spreadsheets. Something seems to have changed on the Google Docs Data List API side where I always get a415error.
[Google-Docs-Data-APIs] Re: Invalid alt value for entry InvalidEntryException
This has been fixed. On Jul 21, 6:38 pm, Carlos charleswe...@gmail.com wrote: thanks! On Jul 21, 3:45 pm, Eric (Google) api.e...@google.com wrote: Thank you. That's a bug that only occures with GData-Verion:2.0 requests:http://code.google.com/p/gdata-issues/issues/detail?id=1336 Eric On Jul 21, 1:41 pm, charlesweird charleswe...@gmail.com wrote: I am using DocsService.getEntry(entryUri, DocumentListEntry.class) to retrieve a DocumentListEntry. The code has been working fine, but it stop working today. I got the following exception. Can anyone help? com.google.gdata.util.InvalidEntryException: Bad Request Invalid alt value for entry and my entryUrl ishttp://docs.google.com/feeds/documents/private/full/spreadsheet:r_goQ... thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Get Content of a Document
Are you trying to download a spreadsheet? If so, be sure to also obtain an AuthSub token good for http://spreadsheets.google.com/feeds. Also, there's a mistake in that snippet I posted. The feed URI should be 'http://docs.google.com/feeds/documents/private/full/-/document' Eric On Jul 22, 6:00 am, faninator fanina...@gmail.com wrote: Hi Eric, I tried your method of using file_get_contents with the example code that you posted but I was unable to download the file to the server. If I echo the result from the download function, I get a broken google login page and then a prompt for download. However, when I'm trying to write the file content to a new file on my server (which is my ultimate goal here), it writes the google login page into the file. Do you know what could be causing the problem? Thanks, Fan On Jul 15, 4:32 pm, Eric (Google) api.e...@google.com wrote: Posted a tip on this:http://gdatatips.blogspot.com/2009/07/download-google-doc-using-php-l... On Jul 15, 1:13 pm, Eric (Google) api.e...@google.com wrote: Hi, You should be using the entry's content src link and not the alternate (/View?docID=...) link that points to Google Docs. Having said that, you'll need to write a download method yourself b/c the Zend_Gdata_Docs component doesn't contain this latest API feature. Here's how you _could_ use file_get_contents() to export a doc as a .txt file. Note: to export spreadsheets, you'll need a valid AuthSub session token for scope=http://spreadsheets.google.com/feeds/ as well. $feed = $gdClient-getDocumentListFeed( 'http://docs.google.com/feeds/documents/private/full/-document'); // download first entry $contentLink = $feed-entries[0]-content-getSrc(); $fileContents = download($gdClient, $contentLink, 'txt'); echo 'Contents of document ' . $feed-entries[0]-title . ':hr'; echo pre$fileContents/pre; function download($client, $url, $format=null) { $token = $client-getHttpClient()-getAuthSubToken(); $opts = array( 'http' = array( 'method' = GET, 'header' = GData-Version: 2.0\r\n. Authorization: AuthSub token=\$token\\r\n ) ); $context = stream_context_create($opts); if ($url != null) { $url = $url . exportFormat=$format; } return file_get_contents($url, false, $context); } Eric On Jul 14, 7:56 pm, infinitas john.cia...@gmail.com wrote: $service = Zend_Gdata_Docs::AUTH_SERVICE_NAME; $httpClient = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $service); $gdClient = new Zend_Gdata_Docs($httpClient); echo file_get_contents(http://docs.google.com/View?docID={$id} revision=_latesthgd=1); More or less, this is what I have *working* which raises three questions. 1. Is fopen/curl/file_get_contents the accepted method of getting the content or is there an API call I should be using? 2. Does the document HAVE to be published for it to work? 3. Is it necessary to have the Google Docs -- Web word processing, presentations and spreadsheets. in the footer? (I am assuming number one is no and the correct method would probably have an option for this). On Jul 14, 12:11 am, Eric Bidelman api.e...@google.com wrote: What have you tried? On Mon, Jul 13, 2009 at 7:53 PM, infinitas john.cia...@gmail.com wrote: I am using the PHP Zend_Gdata API. I have successfully been able to retrieve a list of my documents and search through my documents, but I have not been able to retrieve the actual content inside a document. Could someone please point me in the right direction? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Invalid alt value for entry InvalidEntryException
Thank you. That's a bug that only occures with GData-Verion:2.0 requests: http://code.google.com/p/gdata-issues/issues/detail?id=1336 Eric On Jul 21, 1:41 pm, charlesweird charleswe...@gmail.com wrote: I am using DocsService.getEntry(entryUri, DocumentListEntry.class) to retrieve a DocumentListEntry. The code has been working fine, but it stop working today. I got the following exception. Can anyone help? com.google.gdata.util.InvalidEntryException: Bad Request Invalid alt value for entry and my entryUrl ishttp://docs.google.com/feeds/documents/private/full/spreadsheet:r_goQ... thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Problem with getEntry() method of Java
Please see: http://code.google.com/p/gdata-issues/issues/detail?id=1336 On Jul 21, 11:46 am, Carlos charleswe...@gmail.com wrote: I just run into the same issue. My code was working yesterday and then all of the sudden. I got this error Caused by: com.google.gdata.util.InvalidEntryException: Bad Request Invalid alt value for entry On Jul 21, 2:26 am, bhagya bhagyagde...@gmail.com wrote: Hi, I am trying to run the DocumentListDemo.java and when I try to trash a object I get the below error. com.google.gdata.util.InvalidEntryException: Bad Request Invalid alt value for entry I checked that the getEntry() method itself returns this error. This was working all these day. Any problem in this? Thank you Regards - Bhagya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Changes not being reflected on site
Hi, I have a few questions. - Is this still any issue...meaning, were your API changes ever seen in docs.google.com? - Can you provide a few docIds? - Are these issues only for PUT/DELETE operations? - Are you using a Google Apps account or Google Account? Eric On Jul 17, 2:30 pm, Chewy81 tfru...@gmail.com wrote: It looks like this is only affecting documents in the root (not in folders). On Jul 17, 2:20 pm, Chewy81 tfru...@gmail.com wrote: Is anyone else noticing that changes made from the API are not being reflected at docs.google.com? I have deleted a few documents from the API, and they still show on the site. If I retrieve a list of documents from the API the files are NOT there. This is also happening with moving/renaming documents. The changes are reflected on the API side but not at docs.google.com. Help! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Why does the list contain content that isn't there?
Hi Kevin, Can you provide more information such as a http packet capture or code snippet? Were these documents ever part of your account? Are you including 'trashed' documents in your query? Fetching the worksheets feed is a bug: http://code.google.com/p/gdata-issues/issues/detail?id=1328 ...although others are getting a 500 for that. Can you provide a request/response http capture? Eric On Jul 17, 6:48 am, kevin kevin.revi...@gmail.com wrote: I am using the PHP ZendFramework -- getDocumentListFeed to retrieve a list of spreadsheets In the list of results (for two different accounts where there are many shared spreadsheets (e.g., 3000+) that are not owned by the account), there are a couple of previously shared spreadsheets that show up in the feed that are no longer in the account. If I try to get the worksheet feed for each spreadsheet, I receive a file not found error. Why does the list contain content that isn't there? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Internal Server Error when downloading documents
Feel free to mail me directly with some information. Eric On Jul 17, 9:31 am, Mike M mikem8...@gmail.com wrote: Thanks for your help Eric. We and our many customers would very much appreciate it if a fix could be accelerated. One other question - is there a way for us to be able to test GData changes before they are released? We're developing an enterprise product that is dependent on Google Docs and we have real concerns about future problems like this. Thanks again. Mike On Jul 16, 4:21 pm, Eric Bidelman api.e...@google.com wrote: I'll see what I can do, esp. since release schedules can slip.You an anyone subscribing to that bug will be the first to know on any updates. Cheers, Eric On Thu, Jul 16, 2009 at 12:46 PM, Mike M mikem8...@gmail.com wrote: Eric - Is there any chance of expediting this issue? I have thousands of customers that are basically dead in the water, and if we patch the iPhone application it'll still take up to two weeks to get Apple to push the fix onto the app store. This code has been working fine for over a year, can't they fix (or unfix) it sooner? Thanks Mike p.s. I did file the external issue. On Jul 16, 3:00 pm, Eric (Google) api.e...@google.com wrote: Hi Mike, In the future, both of these IDs will work (so you can use whatever the API returns in each link), but for now please use the legacy style IDs (tAjz8-9ai_Du4js1LAYuKaw, rather than the ones that start with 0). A fix should be available later this month. Also if you can, please file an external issue on this so others can follow: http://code.google.com/p/gdata-issues/issues/entry?template=Spreadshe...) Eric On Jul 16, 8:37 am, Mike M mikem8...@gmail.com wrote: Here is the debugging information that I believe shows what's causing the problem. This is coming from a document list feed: link0 rel alternate type text/html hrefhttp:// spreadsheets.google.com/ccc?key=0AtIJIPgeo0X3dEFqejgtOWFpX0R1N... link1 relhttp://schemas.google.com/spreadsheets/2006#worksheetsfeed type application/atom+xml hrefhttp:// spreadsheets.google.com/feeds/worksheets/0AtIJIPgeo0X3dEFqejgt... link2 relhttp://schemas.google.com/spreadsheets/2006#tablesfeedtype application/atom+xml hrefhttp:// spreadsheets.google.com/feeds/0AtIJIPgeo0X3dEFqejgtOWFpX0R1NGp... link3 rel self type application/atom+xml hrefhttp:// docs.google.com/feeds/documents/private/full/spreadsheet%3AtAj... The document key as shown here in link0 is 0AtIJIPgeo0X3dEFqejgtOWFpX0R1NGpzMUxBWXVLYXc. If you look at link3 the key is AtAjz8-9ai_Du4js1LAYuKaw. According to the protocol documentation (http://code.google.com/apis/documents/docs/2.0/ developers_guide_protocol.html#DownloadingDocs) these are supposed to be the same. If I attempt to access the worksheet feed using the link in link1, it fails. However, if I replace the key so that the URI uses the key in link3, it works. (i.e. http://spreadsheets.google.com/feeds/worksheets/AtAjz8-9ai_Du4js1LAYu... ) Can you please advise us ASAP on what course of action we should take to fix this? Again, this is causing us a lot of customer problems. Please feel free to contact me directly (mikem8...@gmail.com). On Jul 15, 5:56 pm, Trevor Johns tjo...@google.com wrote: On Jul 15, 12:26 pm, Mike M mikem8...@gmail.com wrote: The problem appears to be getting worse. I have several files that I cannot download at all anymore. Here is the feed I'm trying to use. It returns Internal Error: http://spreadsheets.google.com/feeds/worksheets/0AjYgKf54R0DRdFNlb2xI... Even if you put it into a browser it returns the Internal Error (I don't know if this is because there's not an auth token in the browser tho) Mike, I just tried that link in my browser and didn't have any problems (other than not being authenticated). Are you still getting this error? -- Trevor Johns --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Error when trying to download Word documents
This was fixed late last night PST. On Jul 14, 11:47 pm, Eric (Google) api.e...@google.com wrote: This is indeed a major problem that we're investigating. I'll respond to this group as updates are available. Sorry for the troubles. Eric On Jul 14, 11:36 pm, hitoshi uchida hitoshi.uch...@gmail.com wrote: Dear Clint, Me too. I wondered if my program had bugs. On 7月15日, 午後2:29, Clint offis...@gmail.com wrote: As of today all calls to the API to download Word docs (Excel works fine) return the following: Execution of request failed:http://docs.google.com/feeds/download/documents/Export?docID=dgbhd4c3... The remote server returned an error: (400) Bad Request. - Invalid request URI Anything? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: JS GDATA API: google.accounts.user.logout() inconsistent behavior
Kumar, Your google.accounts.user.logout() is used incorrectly. That method takes an optional callback as a first argument and an optional scope string as the second. So, to revoke just the docs token: google.accounts.user.logout(function() { alert('docs token revoked'); window.location.reload(); // just refresh the page }, 'http://docs.google.com/feeds/'); Eric On Jul 14, 9:42 pm, widget develop widgetdeve...@gmail.com wrote: Hi Kumar , I tried to login gmail with userid and password ,but i am unable to login ,can you please solve this problem? My code is : html head meta http-equiv=Content-Type content=text/html; charset=utf-8 titleGmailUI/title /head script type=text/javascript src=http://www.google.com/jsapi;/ script script type=text/javascript google.load('gdata', '1'); google.setOnLoadCallback(logMeIn); google.accounts.user(); function logMeIn() { var token = google.accounts.user.login('http:// userid:passw...@gmail.google.com/gmail/feed/atom','http://www.gmail.com'); alert(Value is:,token); } function onLoadNotify(){ alert(Page laoded); } /script body onload=onLoadNotify(); input type=button value =Login onclick=logMeIn();/ /body /html Thanx Regards Ajay On Jun 22, 11:48 pm, Kumar kumaravel.kandas...@gmail.com wrote: Hi, I would like to get feedback from the community whether the following is an expected behavior or bug. Feedback appreciated. Thanks, Kumar Steps: 1) Got access token for docs.google.com to create spreadsheets. var docToken = google.accounts.user.login('http://docs.google.com/ feeds/'); 2) Got access token for spreadsheets.google.com to modify spreadsheets. var spToken = google.accounts.user.login('http:// spreadsheets.google.com/feeds/'); 3) Remove the docToken created in step 1. google.accounts.user.logout('http://docs.google.com/feeds/'); Expected result based of the documentationhttp://code.google.com/apis/gdata/jsdoc/1.10/google/accounts/user.htm..., the user should be only logged out of the docs.google.com - i.e. docToken removed. However, what is happening is spToken is removed and docToken still remains. Sample Code: html head titleTest/title meta name=viewport content=user-scalable=false script type=text/javascript src=http://www.google.com/ jsapi/script script google.load('gdata', '1'); google.setOnLoadCallback(toggleBtn);//do nothing. function toggleBtn() { if (google.accounts.user.checkLogin('http:// docs.google.com/feeds/') == '') { document.getElementById(dBtn).value = Grant Docs Access; document.getElementById(dBtn).onclick = function () {grantDocAccess();}; } else { document.getElementById(dBtn).value = Revoke Docs Access; document.getElementById(dBtn).onclick = function () {revokeDocAccess();}; } if (google.accounts.user.checkLogin('http:// spreadsheets.google.com/feeds/') == '') { document.getElementById(sBtn).value = Grant Spreadsheet Access; document.getElementById(sBtn).onclick = function() {grantSpreadsheetAccess();}; } else { document.getElementById(sBtn).value = Revoke Spreadsheet Access; document.getElementById(sBtn).onclick = function () {revokeSpreadsheetAccess();}; } checkStatus(); } function grantDocAccess() { var token = google.accounts.user.login('http:// docs.google.com/feeds/'); toggleBtn(); } function revokeDocAccess() { var status = google.accounts.user.logout('http:// docs.google.com/feeds/'); toggleBtn(); } function grantSpreadsheetAccess() { var token = google.accounts.user.login('http:// spreadsheets.google.com/feeds/'); toggleBtn(); } function revokeSpreadsheetAccess() { var status = google.accounts.user.logout('http:// spreadsheets.google.com/feeds/'); toggleBtn(); } function checkStatus() { document.getElementById(doc_token).innerHTML = 'http://docs.google.com/feeds/'+: + google.accounts.user.checkLogin('http://docs.google.com/feeds/');; document.getElementById(sp_token).innerHTML = 'http://spreadsheets.google.com/feeds/'+: +
[Google-Docs-Data-APIs] Re: Problem of moving document to other folders
You should think about folders as labels. So a single Google Doc can exist in multiple folders (e.g. multiple labels are applied to it). To 'move' the doc out of folder A, you need to actually delete that folder(label)/doc association: http://code.google.com/apis/documents/docs/2.0/developers_guide_protocol.html#MovingOutOfFolders Eric On Jul 14, 8:28 pm, hitoshi uchida hitoshi.uch...@gmail.com wrote: Dear Eric, Though I tried to send simple entry as you mentioned, the problem isn't resolved yet. The sent entry contains only id which is equal to id of the entry returned from the server. The post url is entry/cont...@src of the entry returned the server. What do you think ? POST /feeds/folders/private/full/folder%3A9dc6ecf7-0d02-416e- aebe-2ea2924075b9 HTTP/1.1 Content-Type: application/atom+xml Authorization: GoogleLogin auth=MY KEY Host: docs.google.com Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Content-Length: 212 atom:entry xmlns:atom=http://www.w3.org/2005/Atom; atom:idhttp://docs.google.com/feeds/folders/private/full/folder %3A9f95dbd2-2bd3-4158-a7d2-2d5575b4203b/document %3Ad8wb69d_2129hzckkrcj/atom:id /atom:entry On 7月12日, 午後6:14, hitoshi uchida hitoshi.uch...@gmail.com wrote: Dear Eric, I got it. Thank you. On 7月12日, 午前4:12, Eric (Google) api.e...@google.com wrote: Try stripping that entry to something simple. Just create a new entry and reference the id of the entry returned by the server: POST /feeds/folders/private/full/folder%3Adestination_folder_id HTTP/ 1.1 Host: docs.google.com Authorization: your authorization header here Content-Length: 180 Content-Type: application/atom+xml ?xml version='1.0' encoding='UTF-8'? entry xmlns=http://www.w3.org/2005/Atom; idhttp://docs.google.com/feeds/documents/private/full/document %3Adocument_id/id /entry Eric On Jul 10, 10:58 am,hitoshiuchida hitoshi.uch...@gmail.com wrote: Dear Eric, Thank you very much for your always helping. Below is a wireshark log when the move operation was executed. As you can see, I sent below atom:entry which was a reponse entry of the document creating operation into A folder, that is 1. Upload a document to folder 'A' . Do you think the my posted atom:entry caused this problem ? - BEGIN - POST /feeds/folders/private/full/folder%3Adfe5bcec-0acd-491f-9753- b9eb98a3d40c HTTP/1.1 Content-Type: application/atom+xml Authorization: GoogleLogin auth=MY PRIVATE KEY Host: docs.google.com Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive Content-Length: 1815 entry xmlns=http://www.w3.org/2005/Atom; xmlns:docs=http:// schemas.google.com/docs/2007 xmlns:batch=http://schemas.google.com/ gdata/batch xmlns:gd=http://schemas.google.com/g/2005;idhttp:// docs.google.com/feeds/folders/private/full/folder %3A82e79a61-0c1f-4989-925c-47bc64602115/document %3Adfgh796s_14f4849j7t/idpublished2009-07-10T15:12:54.552Z/ publishedupdated2009-07-10T15:12:54.553Z/updatedcategory scheme=http://schemas.google.com/g/2005#kind; term=http:// schemas.google.com/docs/2007#document label=document/ categorytitle type=texttest/titlecontent type=text/html src=http://docs.google.com/feeds/download/documents/Export? docId=dfgh796s_14f4849j7t/contentlink rel=alternate type=text/ html href=http://docs.google.com/Doc?id=dfgh796s_14f4849j7t;/ linklink rel=self type=application/atom+xml href=http:// docs.google.com/feeds/folders/private/full/folder %3A82e79a61-0c1f-4989-925c-47bc64602115/document %3Adfgh796s_14f4849j7t/linklink rel=edit type=application/atom +xml href=http://docs.google.com/feeds/folders/private/full/folder %3A82e79a61-0c1f-4989-925c-47bc64602115/document %3Adfgh796s_14f4849j7t/ fwz1rhnd/linklink rel=edit-media type=text/html href=http:// docs.google.com/feeds/media/private/full/document %3Adfgh796s_14f4849j7t/fwz1rhnd/linkauthornamehitoshi.uchida/ nameemailhitoshi.uch...@gmail.com/email/ authorgd:resourceIddocument:dfgh796s_14f4849j7t/ gd:resourceIdgd:lastModifiedBynamehitoshi.uchida/ nameemailhitoshi.uch...@gmail.com/email/ gd:lastModifiedBydocs:writersCanInvite value=true/ docs:writersCanInvitegd:feedLink rel=http://schemas.google.com/acl/ 2007#accessControlList href=http://docs.google.com/feeds/acl/ private/ full/document%3Adfgh796s_14f4849j7t/gd:feedLink/entry - END - On 7月9日, 午前3:44, Eric (Google) api.e...@google.com wrote: Can you provide a code snippet or http request/response headers? Eric On Jul 3, 1:06 am,hitoshiuchida hitoshi.uch...@gmail.com wrote: Currently I'm using Moving a document into a folder as below.http://code.google.com/intl/ja/apis/documents/docs/2.0/developers_gui... I executed successfully as below without using GData client
[Google-Docs-Data-APIs] Re: Get Content of a Document
Hi, You should be using the entry's content src link and not the alternate (/View?docID=...) link that points to Google Docs. Having said that, you'll need to write a download method yourself b/c the Zend_Gdata_Docs component doesn't contain this latest API feature. Here's how you _could_ use file_get_contents() to export a doc as a .txt file. Note: to export spreadsheets, you'll need a valid AuthSub session token for scope=http://spreadsheets.google.com/feeds/ as well. $feed = $gdClient-getDocumentListFeed( 'http://docs.google.com/feeds/documents/private/full/-document'); // download first entry $contentLink = $feed-entries[0]-content-getSrc(); $fileContents = download($gdClient, $contentLink, 'txt'); echo 'Contents of document ' . $feed-entries[0]-title . ':hr'; echo pre$fileContents/pre; function download($client, $url, $format=null) { $token = $client-getHttpClient()-getAuthSubToken(); $opts = array( 'http' = array( 'method' = GET, 'header' = GData-Version: 2.0\r\n. Authorization: AuthSub token=\$token\\r\n ) ); $context = stream_context_create($opts); if ($url != null) { $url = $url . exportFormat=$format; } return file_get_contents($url, false, $context); } Eric On Jul 14, 7:56 pm, infinitas john.cia...@gmail.com wrote: $service = Zend_Gdata_Docs::AUTH_SERVICE_NAME; $httpClient = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $service); $gdClient = new Zend_Gdata_Docs($httpClient); echo file_get_contents(http://docs.google.com/View?docID={$id} revision=_latesthgd=1); More or less, this is what I have *working* which raises three questions. 1. Is fopen/curl/file_get_contents the accepted method of getting the content or is there an API call I should be using? 2. Does the document HAVE to be published for it to work? 3. Is it necessary to have the Google Docs -- Web word processing, presentations and spreadsheets. in the footer? (I am assuming number one is no and the correct method would probably have an option for this). On Jul 14, 12:11 am, Eric Bidelman api.e...@google.com wrote: What have you tried? On Mon, Jul 13, 2009 at 7:53 PM, infinitas john.cia...@gmail.com wrote: I am using the PHP Zend_Gdata API. I have successfully been able to retrieve a list of my documents and search through my documents, but I have not been able to retrieve the actual content inside a document. Could someone please point me in the right direction? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Get Content of a Document
Posted a tip on this: http://gdatatips.blogspot.com/2009/07/download-google-doc-using-php-library.html On Jul 15, 1:13 pm, Eric (Google) api.e...@google.com wrote: Hi, You should be using the entry's content src link and not the alternate (/View?docID=...) link that points to Google Docs. Having said that, you'll need to write a download method yourself b/c the Zend_Gdata_Docs component doesn't contain this latest API feature. Here's how you _could_ use file_get_contents() to export a doc as a .txt file. Note: to export spreadsheets, you'll need a valid AuthSub session token for scope=http://spreadsheets.google.com/feeds/ as well. $feed = $gdClient-getDocumentListFeed( 'http://docs.google.com/feeds/documents/private/full/-document'); // download first entry $contentLink = $feed-entries[0]-content-getSrc(); $fileContents = download($gdClient, $contentLink, 'txt'); echo 'Contents of document ' . $feed-entries[0]-title . ':hr'; echo pre$fileContents/pre; function download($client, $url, $format=null) { $token = $client-getHttpClient()-getAuthSubToken(); $opts = array( 'http' = array( 'method' = GET, 'header' = GData-Version: 2.0\r\n. Authorization: AuthSub token=\$token\\r\n ) ); $context = stream_context_create($opts); if ($url != null) { $url = $url . exportFormat=$format; } return file_get_contents($url, false, $context); } Eric On Jul 14, 7:56 pm, infinitas john.cia...@gmail.com wrote: $service = Zend_Gdata_Docs::AUTH_SERVICE_NAME; $httpClient = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $service); $gdClient = new Zend_Gdata_Docs($httpClient); echo file_get_contents(http://docs.google.com/View?docID={$id} revision=_latesthgd=1); More or less, this is what I have *working* which raises three questions. 1. Is fopen/curl/file_get_contents the accepted method of getting the content or is there an API call I should be using? 2. Does the document HAVE to be published for it to work? 3. Is it necessary to have the Google Docs -- Web word processing, presentations and spreadsheets. in the footer? (I am assuming number one is no and the correct method would probably have an option for this). On Jul 14, 12:11 am, Eric Bidelman api.e...@google.com wrote: What have you tried? On Mon, Jul 13, 2009 at 7:53 PM, infinitas john.cia...@gmail.com wrote: I am using the PHP Zend_Gdata API. I have successfully been able to retrieve a list of my documents and search through my documents, but I have not been able to retrieve the actual content inside a document. Could someone please point me in the right direction? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Getting a different URL when creating a Google Spreadsheet?
Can you post the two different examples? On Jul 15, 12:11 pm, jonathan. jonathan.ri...@gmail.com wrote: Hello everyone, I started to get an error today when uploading a document as a Google Spreadsheeet, the URL for accessing the spreadsheet contains a different key from the one in gd:resourceId. If I navigate to the url provided with the new key I get an 405 error... any ideas on why this is happening? This just started today... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Internal Server Error when downloading documents
So this isn't downloading/exporting a spreadsheet, it's just fetching the worksheets? -- If you're actually trying to export the content of a Spreadsheet.. there was a problem with downloading Docs yesterday: http://groups.google.com/group/Google-Docs-Data-APIs/browse_thread/thread/03a61fc46657b4c7# What is the full export URL that you're using? It should look something like this: /feeds/download/spreadsheets/Export? key=SPREADSDHEET_KEYexportFormat=FORMAT Eric On Jul 15, 12:26 pm, Mike M mikem8...@gmail.com wrote: Some more detail. We present the user with a list created by querying the document feed, and then extract the spreadsheet feed to attempt to download it. The problem appears to be getting worse. I have several files that I cannot download at all anymore. Here is the feed I'm trying to use. It returns Internal Error: http://spreadsheets.google.com/feeds/worksheets/0AjYgKf54R0DRdFNlb2xI... Even if you put it into a browser it returns the Internal Error (I don't know if this is because there's not an auth token in the browser tho) Anybody else seeing this behavior? Suggestions??? Mike On Jul 15, 2:15 pm, Mike M mikem8...@gmail.com wrote: We've noticed within the last week or so an increasing number of reports from our users about not being able to download some spreadsheets via the GData interface. Sometimes if they try later it clears, sometimes it does not. When we check the code (both homegrown and the gdata library) we are getting a 500 (Internal Error) error intermittently. Is anybody else seeing this? This is code that's been working fine for over a year and it's just recently started to be a problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Did something change since yesterday with document URL over API ?
That's a bug: http://code.google.com/p/gdata-issues/issues/detail?id=1324 Eric On Jul 15, 12:56 pm, alex a...@manymoon.com wrote: I am trying to get URL of the document from DocumentListEntry calling API method that worked up until today. Calling someDoc.getDocumentLink().getHref() worked before just fine but now what i get back some how has my google app domain pre-appended twice so it looks like this: https://docs.google.com/a/somedomain.com/a/somedomain.com/Doc?docid=0... instead of https://docs.google.com/a/somedomain.com/Doc?docid=0ARi0wkC_sEtOZGN6M... I didnt check yet for normal google accounts but seems like an issue for google app accounts. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Problem of moving document to other folders
Try stripping that entry to something simple. Just create a new entry and reference the id of the entry returned by the server: POST /feeds/folders/private/full/folder%3Adestination_folder_id HTTP/ 1.1 Host: docs.google.com Authorization: your authorization header here Content-Length: 180 Content-Type: application/atom+xml ?xml version='1.0' encoding='UTF-8'? entry xmlns=http://www.w3.org/2005/Atom; idhttp://docs.google.com/feeds/documents/private/full/document %3Adocument_id/id /entry Eric On Jul 10, 10:58 am, hitoshi uchida hitoshi.uch...@gmail.com wrote: Dear Eric, Thank you very much for your always helping. Below is a wireshark log when the move operation was executed. As you can see, I sent below atom:entry which was a reponse entry of the document creating operation into A folder, that is 1. Upload a document to folder 'A' . Do you think the my posted atom:entry caused this problem ? - BEGIN - POST /feeds/folders/private/full/folder%3Adfe5bcec-0acd-491f-9753- b9eb98a3d40c HTTP/1.1 Content-Type: application/atom+xml Authorization: GoogleLogin auth=MY PRIVATE KEY Host: docs.google.com Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive Content-Length: 1815 entry xmlns=http://www.w3.org/2005/Atom; xmlns:docs=http:// schemas.google.com/docs/2007 xmlns:batch=http://schemas.google.com/ gdata/batch xmlns:gd=http://schemas.google.com/g/2005;idhttp:// docs.google.com/feeds/folders/private/full/folder %3A82e79a61-0c1f-4989-925c-47bc64602115/document %3Adfgh796s_14f4849j7t/idpublished2009-07-10T15:12:54.552Z/ publishedupdated2009-07-10T15:12:54.553Z/updatedcategory scheme=http://schemas.google.com/g/2005#kind; term=http:// schemas.google.com/docs/2007#document label=document/ categorytitle type=texttest/titlecontent type=text/html src=http://docs.google.com/feeds/download/documents/Export? docId=dfgh796s_14f4849j7t/contentlink rel=alternate type=text/ html href=http://docs.google.com/Doc?id=dfgh796s_14f4849j7t;/ linklink rel=self type=application/atom+xml href=http:// docs.google.com/feeds/folders/private/full/folder %3A82e79a61-0c1f-4989-925c-47bc64602115/document %3Adfgh796s_14f4849j7t/linklink rel=edit type=application/atom +xml href=http://docs.google.com/feeds/folders/private/full/folder %3A82e79a61-0c1f-4989-925c-47bc64602115/document %3Adfgh796s_14f4849j7t/ fwz1rhnd/linklink rel=edit-media type=text/html href=http:// docs.google.com/feeds/media/private/full/document %3Adfgh796s_14f4849j7t/fwz1rhnd/linkauthornamehitoshi.uchida/ nameemailhitoshi.uch...@gmail.com/email/ authorgd:resourceIddocument:dfgh796s_14f4849j7t/ gd:resourceIdgd:lastModifiedBynamehitoshi.uchida/ nameemailhitoshi.uch...@gmail.com/email/ gd:lastModifiedBydocs:writersCanInvite value=true/ docs:writersCanInvitegd:feedLink rel=http://schemas.google.com/acl/ 2007#accessControlList href=http://docs.google.com/feeds/acl/ private/ full/document%3Adfgh796s_14f4849j7t/gd:feedLink/entry - END - On 7月9日, 午前3:44, Eric (Google) api.e...@google.com wrote: Can you provide a code snippet or http request/response headers? Eric On Jul 3, 1:06 am, hitoshi uchida hitoshi.uch...@gmail.com wrote: Currently I'm using Moving a document into a folder as below.http://code.google.com/intl/ja/apis/documents/docs/2.0/developers_gui... I executed successfully as below without using GData client library. 1. Upload a document to folder A 2. Move the document to folder B Then I can find the document in folder B, but also find it in folder A in my browser. But when I checked the document by clicking all item view in Docs UI, I can find only one document, not two. And when I deleted the document in folder B, a document in folder A was also deleted automatically. So the documents of folder A and B were same in Docs database. How can I resolve such a problem ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: ServiceException: 500 Internal Server Error - While creating folder using Java
This is bug: http://code.google.com/p/gdata-issues/issues/detail?id=1152 Eric On Jul 5, 4:33 am, bhagya bhagyagde...@gmail.com wrote: One more update - I am using API version 1.33 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: The response from modifying the ACL is returning false-positives
Well, you should only be adding ACLs that correspond to gDocs users. A combination of anything else may appear to work, but I wouldn't trust it. Eric On Jun 24, 10:02 am, Daniel Marashlian daniel...@gmail.com wrote: please go ahead :) I haven't done too much testing after the fact. I'm going to do some testing on that scenario you just described. On Jun 24, 7:33 am, Patricia Goldweic pgoldw...@northwestern.edu wrote: I've seen this behavior too. In fact, I concluded that, if you add (through the api) an acl entry for a (not yet)existent account, you get no errors at the time you are doing this. However, if the account gets later created, those acls which should have been placed in the feed in the previous step, are really not working. This is consistent with the behavior you just described David, mainly the fact that non-existent account acls ACTUALLY DO FAIL when they are added (and therefore are not really being added), but this is not being reported by Google. I think this definitely deserves a bug report. Are you going to file this one David, or should I do it? Patricia Goldweic pgoldw...@northwestern.edu -Original Message- From: Google-Docs-Data-APIs@googlegroups.com [mailto:google-docs-data-a...@googlegroups.com] On Behalf Of Daniel Marashlian Sent: Tuesday, June 23, 2009 5:42 PM To: Google Docs Data APIs Subject: [Google-Docs-Data-APIs] Re: The response from modifying the ACL is returning false-positives to make it even more confusing, I've been testing bad emails like kjhasdf...@pelotonics.com and they show up on the UI but not in the ACL list... hmmm. Fun times :) On Jun 23, 3:31 pm, Eric Bidelman api.e...@google.com wrote: Well, Patricia said these show up in the feed but not the Docs UI. You're saying they show up in neither. I'm a little confused that there's different behavior across the board. Eric On Tue, Jun 23, 2009 at 1:45 PM, Daniel Marashlian daniel...@gmail.comwrote: Wait... I'm confused :) So I try to add a user's email to a document, at least when I use the batch processing, it reports back a success but when I do a GET on http://docs.google.com/feeds/acl/private/full/[docType]%3A[docID]; and check through the XML for the gAcl:scope that user's Email is not in the list. How is that consistently working? maybe I'm confused on the separation between the ACL and Google Docs. On Jun 23, 1:27 pm, Eric Bidelman api.e...@google.com wrote: Thanks for the quick info folks. It sounds like the adding ACLs through the API consistently works (e.g. the correct results show up when querying the ACL feed), but they're not propagated to Google Docs. Can one of you open a bug for this with the detailed info in this thread. Thanks! Eric On Tue, Jun 23, 2009 at 1:09 PM, Daniel Marashlian daniel...@gmail.com wrote: Hi Eric, The single feed seems to be working more consistently, but when it fails it doesn't tell me anything in the response. this is the XML I'm using (maybe I'm doing it wrong): POST'ing it to: http://docs.google.com/feeds/acl/private/full/document %3Adg7wvvh9_51fjcscsvz XML: entry xmlns='http://www.w3.org/2005/Atom'xmlns:gAcl='http:// schemas.google.com/acl/2007' category scheme='http://schemas.google.com/g/2005#kind'term='http:// schemas.google.com/acl/2007#accessRule'/ gAcl:role value='writer'/ gAcl:scope type='user' value='tmal...@pelotonics.com'/ /entry Here is a response from a call that failed: ?xml version='1.0' encoding='UTF-8'?entry xmlns='http://www.w3.org/2005/Atom' xmlns:gAcl='http://schemas.google.com/acl/2007' xmlns:batch='http://schemas.google.com/gdata/batch'idhttp:// docs.google.com/feeds/acl/private/full/document%3Adg7wvvh9_51fjc scsvz/ user%3Atmalone%40pelotonics.com /idupdated2009-06-23T19:56:20.103Z/ updatedcategory scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/acl/2007#accessRule'/title type='text'Document Permission - tmal...@pelotonics.com/titlelink rel='self' type='application/atom+xml' href='http://docs.google.com/ feeds/acl/private/full/document%3Adg7wvvh9_51fjcscsvz/user%3Atma lone %40pelotonics.com'/link rel='edit' type='application/atom+xml' href='http://docs.google.com/feeds/acl/private/full/document %3Adg7wvvh9_51fjcscsvz/user%3Atmalone%40pelotonics.com'/gAcl:r ole value='writer'/gAcl:scope type='user' value='tmal...@pelotonics.com '/ /entry On Jun 23, 11:07 am, Patricia Goldweic pgoldw...@northwestern.edu wrote: Hi Eric, The response to your question: 'Just so I'm clear, these
[Google-Docs-Data-APIs] Re: Modifying the ACL with the C# API
Sorry, have you tried this? Calendar has an example: http://code.google.com/apis/calendar/docs/2.0/developers_guide_dotnet.html#AddAcl Eric On Jun 23, 1:14 pm, Eric Bidelman api.e...@google.com wrote: Daniel, Not 'natively'. Can you file that feature request here:http://code.google.com/p/google-gdata/issues/list http://code.google.com/p/google-gdata/issues/listEric On Tue, Jun 23, 2009 at 10:56 AM, Daniel Marashlian daniel...@gmail.comwrote: Can I modify the ACL of a document with the C# API yet? right now, I'm doing it though with the http approach? thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: ownership of a google document through API.
I'm able to change the owner for presentations and documents. The same is not true for spreadsheets. I believe that's why the documentation mentioned the limitation. Feature request: http://code.google.com/p/gdata-issues/issues/detail?id=1260 Eric On Jun 22, 2:54 am, anjs jnanj...@gmail.com wrote: Through UI following is possible : Account A has a document. Shared the document with the Account B user. Now delete the document from Account A. There is an option available to change the ownership while you delete the document. Changed the ownership to account B and then deleted the document from Account A. The document from Account B is intact and is not deleted. Is there a way to achieve the same thing via API. On Jun 22, 2:40 pm, anjs jnanj...@gmail.com wrote: The protocol mentions that the owner of the document cannot be changed via API. Am I correct?? Because it is available via UI. On Jun 18, 10:41 pm, Eric Bidelman api.e...@google.com wrote: Everything possible is listed here:http://code.google.com/apis/documents/docs/2.0/developers_guide_proto... http://code.google.com/apis/documents/docs/2.0/developers_guide_proto... Eric On Wed, Jun 17, 2009 at 11:41 PM, Amit akfau...@gmail.com wrote: Hello, can we change the ownership of a google document through API. thanks- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: writersCanInvite on new spreadsheets
Confirmed bug: http://code.google.com/p/gdata-issues/issues/detail?id=1289 Eric On Jun 22, 6:43 pm, Daniel Marashlian daniel...@gmail.com wrote: Hi Eric, Even with the writersCanInvite property set to false when I try to create an new/empty spreadsheet, that option is always checked (set to true) on the Google Docs Spreadsheet under the sharing-advanced settings. On Documents and Presentations setting the writersCanInvite property to false always works. Any idea what's going on here? this is the XML I'm using for a new spreadsheet: ?xml version='1.0' encoding='UTF-8'?atom:entry xmlns:atom=http://www.w3.org/2005/Atom; xmlns:docs=http://schemas.google.com/docs/ 2007atom:category scheme=http://schemas.google.com/g/2005#kind; term=http://schemas.google.com/docs/2007#spreadsheet; label=spreadsheet /atom:titletest.xls/ atom:titledocs:writersCanInvite value=false //atom:entry --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: SOS - I'm new at this and really need help. How can I update a spreadsheet document from any of the apis?
); // For testing only. Creates document called radar.csv DocumentEntry lastUploadEntry = service.UploadDocument(c:/radar.csv, radar.csv); // For testing only. Now lets see if we can update it FileInfo fileInfo = new FileInfo(c:/radar.csv); FileStream stream = fileInfo.Open(FileMode.Open, FileAccess.Read, FileShare.ReadWrite); try { /* It didn't recogize GDocumntsAllowedType so I commented the check since I know its good type // convert the extension to caps and strip the . off the front string ext = fileInfo.Extension.ToUpper().Substring(1); String contentType = (String)GDocumentsAllowedTypes[ext]; if (contentType == null) { throw new ArgumentException(File extension ' + ext + ' is not recognized as valid.); } // Make sure we don't overwrite someone else's changes. Use entry's ETag */ GDataRequestFactory factory = (GDataRequestFactory)service.RequestFactory; factory.CustomHeaders.Add(If-Match: + lastUploadEntry.Etag); service.RequestFactory = factory; DocumentEntry entry = service.Update(new Uri(lastUploadEntry.MediaUri.ToString()), stream, CSV, lastUploadEntry.Title.Text) as DocumentEntry; } finally { stream.Close(); } } } } On Jun 11, 2009, at 5:16 PM, Eric (Google) wrote: This worked for me: DocumentsService service = new DocumentsService(yourCompany- AppName- v1); // TODO: Fetch DocumentEntry ReplaceDocContents(entryToUpdate, C:\somewhere\test.doc); ... static public DocumentEntry ReplaceDocContents(DocumentEntry entryToUpdate, string replacementFileName) { DocumentEntry entry = null; FileInfo fileInfo = new FileInfo(replacementFileName); FileStream stream = fileInfo.Open(FileMode.Open, FileAccess.Read, FileShare.ReadWrite); try { // convert the extension to caps and strip the . off the front string ext = fileInfo.Extension.ToUpper().Substring(1); String contentType = (String)GDocumentsAllowedTypes[ext]; if (contentType == null) { throw new ArgumentException(File extension ' + ext + ' is not recognized as valid.); } // Make sure we don't overwrite someone else's changes. Use entry's ETag GDataRequestFactory factory = (GDataRequestFactory) service.RequestFactory; factory.CustomHeaders.Add(If-Match: + entryToUpdate.Etag); service.RequestFactory = factory; entry =... read more » --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: AuthSubUtil.exchangeForSessionToken
Maybe your proxy is too restrictive and the SSL handshake fails? Eric On Jun 10, 2:08 am, 3ala2 alaa.alw...@gmail.com wrote: Dear all, I am using Google Docs Api, and using AuthSub as authentication procedure. My problem is that I am behind proxy, probably ISA server, the DocumentService object has a proxy property where i can bypass the proxy, however when using AuthSubUtil.exchangeForSessionToken i am having an error from the ISA server which is: No connection could be made because the target machine actively refused it 209.85.227.103:443 When using same code from direct internet access, there is no problem. Is there some specific port i should request to open in order to have this running? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Access Request Page : Disable
No. Circumventing the 'grant access' step defeats the whole purpose of AuthSub. It's left to the user to decide if he/she shares their data. Eric On Jun 12, 4:36 am, Ashok Kumar ashok.aarud...@gmail.com wrote: Hi Eric, Thanks for your reply. I am using AuthSub Tokens. Ya you are correct if we have session token then it is not necessary to move back to the approval page. But before getting the session token is it possible for me to approve automatically on considering my 'Remember this approval option' for my website and return back with out pressing the Access Approve button. Thank you. On Jun 10, 4:07 am, Eric (Google) api.e...@google.com wrote: Is this for OpendID or OAuth/AuthSub? With the last two, if you have the session token then you don't need to send users back to the approval page. OAuth and AuthSub tokens are long lived and never expire (unless explicitly) revoked. Eric On Jun 8, 12:54 am, Ashok Kumar ashok.aarud...@gmail.com wrote: Hi all, I have created a sample that request data from my spreadsheet that I have created with my Google account. When my application starts it will check whether the user has signed in. If else the user did not sign in, the user will be redirected to the log in page of Google and there the user signs in. After signing in Google Access Request Page is displayed. Here is what it is prompting to Grant Access specifying that a third party site is requesting the service so Grant or Deny Access. Now coming to the point that i do not want this interface to be shown to the user instead the user must be redirected directly to my page without prompting the user to Grant Access to the specified site. I have surfed a lot and it is specified that checking the 'Remember this approval option' for the particular site will not prompt user the again and again Grant Access. But unfortunately i could not trace it out where the option is in my account. So please help me to solve this issue ASAP. Thank you, Ashok Kumar A. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Getting a document's direct download link
As long as the request to download the link is authenticated, meaning you're sending a valid AuthSub/oAuth/ClientLogin token in the Authorization header, then YES. So your app would authenticate on the single 'shared' account? Eric On Jun 9, 3:00 pm, VuDu vudu.cu...@gmail.com wrote: Hello, I'm creating a Java WebApplication that manages contents of one static account, like a document repository. The user can already upload files to the application (that are uploaded to that account) and should be able to retrieve files (from that same account). Can I provide the client a direct download link to a document? The information found herehttp://code.google.com/apis/documents/docs/2.0/developers_guide_proto... points to authentication methods that make the user manually provide the username and password but I don't want that. I'd like to be able to give a direct link to a document from that static account so that a user could download it without directly knowing the account the document is in. Best regards. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Limits on the Google Docs account
Quotas are posted here: http://docs.google.com/support/bin/answer.py?hl=enanswer=37603 Eric On Jun 3, 1:51 pm, Leandro Ardissone lardiss...@gmail.com wrote: Hi, Is there a limit to the amount of documents uploaded/created? I'm planning to allow the users of a website upload some documents (or eventually create these online), and planning to host the files on my company Google Account. Is that feasible? Or it's only available for internal company usage? Thanks in advance, Leandro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: UploadDocument returns 404 not found
This has been fixed BTW. http://code.google.com/p/gdata-issues/issues/detail?id=1147 Eric On May 18, 11:50 am, Denis Solovov denissolo...@gmail.com wrote: Hi Eric, Is there an estimation date when this change going to be submitted? Thanks, Denis Solovov On Fri, May 15, 2009 at 8:19 PM, Eric Bidelman api.e...@google.com wrote: On Fri, May 15, 2009 at 2:57 AM, denissolovov denissolo...@gmail.comwrote: Hi Eric, How can I get this change? Just download the latest version of source code? Notthing you can do. This is a server/API issue. I don't believe the fix has been pushed yet. Thanks, Denis Solovov On May 6, 11:23 pm, Eric Bidelman api.e...@google.com wrote: This root cause was finally tracked down and a code change was submitted.I think the new target is sometime next week. Eric On Wed, May 6, 2009 at 11:30 AM, Daniel Marashlian daniel...@gmail.com wrote: Hey Eric, any word from the programming team on the roll out of the next deployment? We're held back from our google docs integration because of this bug. Any soft date would help. thanks Daniel On May 1, 9:45 am, Nicholas nbi...@gmail.com wrote: I'm getting sporadic 404s with pretty much everything I'm doing regarding spreadsheets too. Any workaround until google fixes this? On Apr 29, 11:50 am, Eric Bidelman api.e...@google.com wrote: The push got rolled back. On Tue, Apr 28, 2009 at 10:57 PM, Daniel Marashlian daniel...@gmail.comwrote: Hey Eric, any word from the development team on this? thanks mate! Daniel On Apr 23, 2:21 pm, Denis Solovov denissolo...@gmail.com wrote: Thanks. Hope it will be reallly couple of days) On Wed, Apr 22, 2009 at 11:29 PM, Eric (Google) api.e...@google.com wrote: This should be hot fixed in the next couple of days. BTW, 'next couple of days' is known to be flexible :) Eric On Apr 20, 7:56 am, Denis Solovov denissolo...@gmail.com wrote: Thanks, Daniel. On Mon, Apr 20, 2009 at 9:31 AM, Daniel Marashlian daniel...@gmail.com wrote: yea it's only on spreadsheets. I'm waiting on this bug fix too! hehe check my thread here: http://groups.google.com/group/Google-Docs-Data-APIs/browse_thread/th . .. On Apr 19, 10:44 pm, Denis Solovov denissolo...@gmail.com wrote: Thanks for response. It's .Net library. You are right it happens when I only try to upload spreadsheet. On Mon, Apr 20, 2009 at 1:18 AM, Eric (Google) api.e...@google.com wrote: Which library are you using? You may start to see these types of errors if you're not rate limiting your requests. This does exist for spreadsheet creation: http://code.google.com/p/gdata-issues/issues/detail?id=1147 Eric On Apr 19, 10:49 am, Denis Solovov denissolo...@gmail.com wrote: Hi all.I've tried to use UploadDocument. It works properly in most cases. But sometimes it returns error 404 not found , however the document was succesfully uploaded. This error in not persistent, I call UploadDocument from test 10 times for the same document and can get 5-7 404 not found. But I mentioned before the document actually succesfully uploaded 10 times. Any suggestions? The only trouble with it that if exception occurs the UploadDocument doesnt' return DocumentEntry. Is there any way to get document's Id of uploaded document in this case? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Odd problem: Unable to share doc with a particular user using the api
Sorry, is this just for non-existent Google Docs accounts or is this also the case for actual accounts? Do you see the same behavior on all docs or just certain ones? Eric On May 29, 3:18 pm, Patricia Goldweic pgoldw...@northwestern.edu wrote: The problem seems to be worse than I originally thought. More details: - Now I have trouble sharing with ANY user after I remove the collaborators using the sharing GUI (in all cases it is complaining with similar VersionConflictExceptions). - I've written code that loops through the existing entries in the acl feed, and instead of seeing only 1 (as I would have expected given that I removed all collaborators using the GUI), I see 6 (one for the owner, and 5 others for 'writers'). To help debug this, I was only able to print out the role (didn't know what else is readable to print out. I'm using the java client apis). Could somebody at Google clarify whether this is a bug? (for me, it is pretty much braking all the expected functionality). Thanks, -Patricia Patricia Goldweic pgoldw...@northwestern.edu _ From: Google-Docs-Data-APIs@googlegroups.com [mailto:google-docs-data-a...@googlegroups.com] On Behalf Of Patricia Goldweic Sent: Friday, May 29, 2009 4:20 PM To: Google-Docs-Data-APIs@googlegroups.com Subject: [Google-Docs-Data-APIs] Odd problem: Unable to share doc with a particular user using the api Hi, Today I noticed that I seem to be unable to to share (programmatically) a document with a particular user, while this had been working for me all along. When I attempt to do it, I get a VersionConflictException error, which says 'the user already has access to the document'. However, I clearly see that the user does not have access, according to the GUI (I've removed the set of collaborators through the GUI several times, and I always get the same result for this user). Any suggestion? Is Google choking on this particular userid? (it is a test user, with a 'dummystudent' username, which I had used in the past with no problems). Any help will be appreciated, -Patricia pgoldw...@northwestern.edu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: uploading text file and downloading it, the file content is not same
I mean that when you upload a document to Google Docs, it's converted to a format the server understands. The original file type isn't preserved. I see one newline being appended to a .txt upload. Is that what you observe? Eric On May 30, 10:24 pm, Jeff Huang jeff...@gmail.com wrote: Do I have any way to avoid this? Thanks. On 5月31日, 下午1时23分, Jeff Huang jeff...@gmail.com wrote: but I only upload pure plain text content, do you mean even for text content, these markups still will be added? On 5月31日, 上午7时54分, Eric Bidelman api.e...@google.com wrote: It's very possible that Google Docs adds extramarkup when making the conversion from your native file format to a gDocs format. If the content itself is different (apart form a few blank lines), please let me know. Eric 2009/5/30 Jeff Huang jeff...@gmail.com For example, I upload this is a test. Then I try to download it, the content was changed, several new lines were added, not big change, but still now same as I uploaded before On 5月30日, 上午1时15分, Eric Bidelman api.e...@google.com wrote: Hi Jeff, Can you elaborate? Eric On Fri, May 29, 2009 at 7:47 AM, Jeff Huang jeff...@gmail.com wrote: My app try to save some text file to google docs, and download it for future useage. But I found the content I saved is not same exactly as the one I download. Is there someone could help sovle this?- 隐藏被引用文字 - - 显示引用的文字 -- 隐藏被引用文字 - - 显示引用的文字 -- 隐藏被引用文字 - - 显示引用的文字 - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Odd problem: Unable to share doc with a particular user using the api
Have you tried deleting this permissions using the API and not the Docs sharing GUI? On Jun 1, 3:22 pm, Patricia Goldweic pgoldw...@northwestern.edu wrote: Hi again, It turns out that I'm getting the same odd behavior again, with a new document:-( and same (now with an active account) user. I wonder whether: - Google queues up sharing requests done programmatically through the apis - Is it possible at all that the GUI displays a state of affairs that is not quite real? (that is, perhaps Google queues up sharing requests, but the GUI acts as if this did not happen?) - Any other ideas? (I'm at a loss here :-( :-() -Patricia pgoldw...@northwestern.edu -Original Message- From: Google-Docs-Data-APIs@googlegroups.com [mailto:google-docs-data-a...@googlegroups.com] On Behalf Of Patricia Goldweic Sent: Monday, June 01, 2009 4:42 PM To: Google-Docs-Data-APIs@googlegroups.com Subject: [Google-Docs-Data-APIs] Re: Odd problem: Unable to share doc with a particular user using the api Hi Eric, When I first started trying this out on Friday, it was a non-existent account (actually, existent but needed to be activated). Then I tried it with regular accounts, with the results I explained in my email. Today it seems better behaved, although I have not reused the 2 documents I was playing with on Friday, for fear that they could be corrupt or something like that :-( -Patricia Patricia Goldweic pgoldw...@northwestern.edu -Original Message- From: Google-Docs-Data-APIs@googlegroups.com [mailto:google-docs-data-a...@googlegroups.com] On Behalf Of Eric (Google) Sent: Monday, June 01, 2009 4:26 PM To: Google Docs Data APIs Subject: [Google-Docs-Data-APIs] Re: Odd problem: Unable to share doc with a particular user using the api Sorry, is this just for non-existent Google Docs accounts or is this also the case for actual accounts? Do you see the same behavior on all docs or just certain ones? Eric On May 29, 3:18 pm, Patricia Goldweic pgoldw...@northwestern.edu wrote: The problem seems to be worse than I originally thought. More details: - Now I have trouble sharing with ANY user after I remove the collaborators using the sharing GUI (in all cases it is complaining with similar VersionConflictExceptions). - I've written code that loops through the existing entries in the acl feed, and instead of seeing only 1 (as I would have expected given that I removed all collaborators using the GUI), I see 6 (one for the owner, and 5 others for 'writers'). To help debug this, I was only able to print out the role (didn't know what else is readable to print out. I'm using the java client apis). Could somebody at Google clarify whether this is a bug? (for me, it is pretty much braking all the expected functionality). Thanks, -Patricia Patricia Goldweic pgoldw...@northwestern.edu _ From: Google-Docs-Data-APIs@googlegroups.com [mailto:google-docs-data-a...@googlegroups.com] On Behalf Of Patricia Goldweic Sent: Friday, May 29, 2009 4:20 PM To: Google-Docs-Data-APIs@googlegroups.com Subject: [Google-Docs-Data-APIs] Odd problem: Unable to share doc with a particular user using the api Hi, Today I noticed that I seem to be unable to to share (programmatically) a document with a particular user, while this had been working for me all along. When I attempt to do it, I get a VersionConflictException error, which says 'the user already has access to the document'. However, I clearly see that the user does not have access, according to the GUI (I've removed the set of collaborators through the GUI several times, and I always get the same result for this user). Any suggestion? Is Google choking on this particular userid? (it is a test user, with a 'dummystudent' username, which I had used in the past with no problems). Any help will be appreciated, -Patricia pgoldw...@northwestern.edu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Not able to Filter Folder contents by Document Type
Not being able to filter on doctype (using the /folders) feed is a bug. Eric On May 19, 12:16 pm, Manu J manu.1...@gmail.com wrote: Here is another way to trigger this. Try this in OAuth playground URL:http://docs.google.com/feeds/documents/private/full/-/bills/ where bills is a folder name which doesn't conflict with stuff like mine/starred ie default names.It will return all the documents inside that folder. Now star a document in the folder and try this URL:http://docs.google.com/feeds/documents/private/full/-/bills/starred It will return the correct documents but URL:http://docs.google.com/feeds/documents/private/full/-/bills/document (or speadsheet or presentation) doesn't return anything. Regards Manu On May 19, 11:44 pm, sandosh sandosh.vasude...@gmail.com wrote: I am trying to filter a folder contents by Document type (document, presentation, spreadsheet, pdf) This does not work:http://docs.google.com/feeds/folders/private/full/folder%3A{FOLDER_ID}/-/spreadsheet Although it does work for other categories like starredhttp://docs.google.com/feeds/folders/private/full/folder%3A{FOLDER_ID}/-/starred What could be the problem? It is on my side or the API ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Updating document content with the Java client library
Hi Gabriel, Sorry for the troubles. You're absolutely right about the Java developer's guide. It needs a reahaul :) This may be a bug that I'll need to look in to, but have you tried setting the If-Match header to If-Match: *? You could also use Gdata-Version: 1.0 if you don't want to mess with etags. Eric On May 9, 11:56 am, Gabriel guz...@gmail.com wrote: Hi, I opened an invalid issue report about updating document content with the Java library (http://code.google.com/p/gdata-issues/issues/detail? id=1200) and I got an explanation about the version difference. However I still don't understand how to do it. I didn't change the protocol version, so I figure I'm using the default 2.0. When I tried to do something like the following: storedEntry.setMediaSource(new MediaByteArraySource(csvContent.getBytes (), text/csv)); storedEntry.updateMedia(false); I get the following exception: java.lang.IllegalStateException: com.google.gdata.util.ServiceForbiddenException: Forbidden If-Match or If-None-Match header required So i tried adding the following command before that: docsService.getRequestFactory().setHeader(If-Match, storedEntry.getEtag()); and then I got this exception: com.google.gdata.util.PreconditionFailedException: Precondition Failed Resource does not support Etags So what is the correct way to do it? The documentation for the Java client doesn't cover this at all. Thanks, Gabriel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Updating document content with the Java client library
I just tried this and it worked: service.getRequestFactory().setHeader(If-Match, *); entry.setMediaSource(new MediaByteArraySource(1,2,3.getBytes(), text/csv)); entry.updateMedia(false); I suspect you have an outdated etag. That's where the precondition failed is coming from. Eric On May 9, 6:54 pm, Eric (Google) api.e...@google.com wrote: Hi Gabriel, Sorry for the troubles. You're absolutely right about the Java developer's guide. It needs a reahaul :) This may be a bug that I'll need to look in to, but have you tried setting the If-Match header to If-Match: *? You could also use Gdata-Version: 1.0 if you don't want to mess with etags. Eric On May 9, 11:56 am, Gabriel guz...@gmail.com wrote: Hi, I opened an invalid issue report about updating document content with the Java library (http://code.google.com/p/gdata-issues/issues/detail? id=1200) and I got an explanation about the version difference. However I still don't understand how to do it. I didn't change the protocol version, so I figure I'm using the default 2.0. When I tried to do something like the following: storedEntry.setMediaSource(new MediaByteArraySource(csvContent.getBytes (), text/csv)); storedEntry.updateMedia(false); I get the following exception: java.lang.IllegalStateException: com.google.gdata.util.ServiceForbiddenException: Forbidden If-Match or If-None-Match header required So i tried adding the following command before that: docsService.getRequestFactory().setHeader(If-Match, storedEntry.getEtag()); and then I got this exception: com.google.gdata.util.PreconditionFailedException: Precondition Failed Resource does not support Etags So what is the correct way to do it? The documentation for the Java client doesn't cover this at all. Thanks, Gabriel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: sending authenticated GET request using java script
Are you using the JavaScript client? There's a tip here for using it with non-supported Google Data APIs: http://gdatatips.blogspot.com/2008/12/using-javascript-client-library-w-non.html Eric On May 3, 7:29 pm, J jayanth.bl...@gmail.com wrote: I am trying to access Google Spreadsheets using Google Spreadsheets API. Am sending http request with the help of java script. I have done the authentication and obtained the Auth and SID. Now to retrieve the list of spreadsheets, i need to send an authenticated GET request. I love to know how to do this in java script. Kindly help. Thanks, Jayanth. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Get revision History of a document entry (Java)
Each Atom entry has some of that metatdata: http://code.google.com/apis/documents/docs/2.0/developers_guide_protocol.html#ListDocs Eric On May 5, 12:29 am, audros.te...@gmail.com audros.te...@gmail.com wrote: Okeey I see, thank you a lot. But is there a solution to contourn this problem and get the maximum of informations about modifications and editing dates?? maybe by using Etag or somthing like that On 5 mai, 05:44, Eric (Google) api.e...@google.com wrote: Revision history is a feature request:http://code.google.com/p/gdata-issues/issues/detail?id=923 Eric On May 4, 12:40 pm, audros.te...@gmail.com audros.te...@gmail.com wrote: Hi, I just want to know if I can get the revision history of a document with the GDoc data APIs. I'm programming a plug in of GoogleDocs in a PLM System and i really need to get all the modifications and their dates and by who? if someone can help I'll be greatful --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: How can I get last modified information from DocumentListEntry of Google Docs API
Looks like this could be a bug. Filed here: http://code.google.com/p/gdata-java-client/issues/detail?id=135 Eric On May 5, 1:04 am, Silver8250 silver8250.b...@gmail.com wrote: Hello everyone. I'm a newbie of Google Docs API. I found some problem of using DocumentListEntry class of Google Docs API that I always retrieved NULL when invoking the getLastModifiedBy method of DocumentListEntry. How can I solve it? The following is the code. Query query = new Query(URI.create(http://docs.google.com/feeds/ documents/private/full/-/document).toURL()); DocumentListFeed feed = docsService.query(query, DocumentListFeed.class); for (DocumentListEntry entry : feed.getEntries()) { System.out.println(entry.getLastModifiedBy().getName()); } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Posting an entry gives strange response
Can you post your http request? On May 5, 9:53 pm, Nicholas nbi...@gmail.com wrote: Instead of an atom feed as a response to posting an entry, I get the following: meta http-equiv=refresh content=0; url=#39;http:// spreadsheets.google.com/feeds/download/spreadsheets/Export? fmcmd=102amp;key=rTI3bKfw_JiOoEmKYmFMzVwamp;pli=1amp;auth=DQAAAHoAAABif4- ZHgshvHj2NBClJyc-WgQVnRnmAXcXNrRU9zscT_w7ZiGeNFOXMaGBjtaSx2hP- gkU5F42E3eOV3A6Yqoxx- Fog4UjmMwCQNFQPLwN7zeSpVhPpsFk8jsw1142oGua_u4ygoSdgHoztKmoa4iANhpn8Mof1EZV- eWpJdt_ywamp;gausr=email%40example.com#39;/head body bgcolor=#ff text=#00 link=#cc vlink=#551a8b alink=#ffscript type=text/javascript language=javascript location.replace(http://spreadsheets.google.com/feeds/download/ spreadsheets/Export?fmcmd\x3d102\x26key\x3drTI3bKfw_JiOoEmKYmFMzVw \x26pli\x3d1\x26auth\x3dDQAAAHoAAABif4-ZHgshvHj2NBClJyc- WgQVnRnmAXcXNrRU9zscT_w7ZiGeNFOXMaGBjtaSx2hP-gkU5F42E3eOV3A6Yqoxx- Fog4UjmMwCQNFQPLwN7zeSpVhPpsFk8jsw1142oGua_u4ygoSdgHoztKmoa4iANhpn8Mof1EZV- eWpJdt_yw\x26gausr\x3demail%40example.com) /script/body/html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Get revision History of a document entry (Java)
Revision history is a feature request: http://code.google.com/p/gdata-issues/issues/detail?id=923 Eric On May 4, 12:40 pm, audros.te...@gmail.com audros.te...@gmail.com wrote: Hi, I just want to know if I can get the revision history of a document with the GDoc data APIs. I'm programming a plug in of GoogleDocs in a PLM System and i really need to get all the modifications and their dates and by who? if someone can help I'll be greatful --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Action Empty trash
Again, emptying the trash is not supported in the API. You can only 'trash' documents (e.g. move them to the trash). To completely delete a document, you'll need to do that in Google Docs. By the way, there's an outstanding feature request for emptying the trash: http://code.google.com/p/gdata-issues/issues/detail?id=1099 Eric On Apr 29, 6:17 am, Artem Beloglazov tema.onl...@gmail.com wrote: ok Can you help me? What does query string provide Delete entry irretrievable action? From developer`s guide: Trashing documents and folders. To put a document or folder in the trash, first you retrieve the entry for the document or folder you want to delete, then you send a DELETE request to the entry's edit URL. If i do $docs-getDocumentListFeed('http://docs.google.com/feeds/documents/ private/full/-/trashed'); and delete all entries, they just moved to the trash again. PS Sorry for my english) On Mar 22, 2:31 am, Eric (Google) api.e...@google.com wrote: Deleting a document is documented here:http://code.google.com/apis/documents/docs/2.0/developers_guide_proto... Eric On Mar 17, 10:16 pm, Artem Beloglazov tema.onl...@gmail.com wrote: It`s ok, but how can ideleteentry from thetrash? On 18 мар, 03:42, Eric (Google) api.e...@google.com wrote: The API doesn't support 'emptying thetrash'. You can only move documents into thetrash. Please suggest that feature if you feel so inclined:http://code.google.com/p/gdata-issues/issues/entry?template=Documents...) Thanks, Eric On Mar 17, 6:19 am, Artem Beloglazov tema.onl...@gmail.com wrote: What does query string provide Emptytrash action? Thanx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: HTML as export format for Presentations?
.html is not one of the supported download formats for presentations: http://code.google.com/apis/documents/docs/2.0/developers_guide_protocol.html#DownloadingDocsAndPresentations Submit a feature request if you wish: http://code.google.com/p/gdata-issues/issues/entry Eric On Apr 21, 8:43 pm, joelarson joelars...@gmail.com wrote: Is there a way to retrieve the HTML for a Presentation via the Data APIs? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Use Google Docs editor to edit external document
Again, I think what you want to do is possible with the current set of API features...it would just take some programming work. What you really want is ties into the Google Docs UI. That's not part of the API. Eric On Apr 22, 7:35 am, Gelembjuk tower@gmail.com wrote: In previous message there should be Yes. I can read updated. . mistype :) On 22 Квіт by uk_VT_linguist, 17:33, Gelembjuk tower@gmail.com wrote: Hi. You. I can read updated. But it is needed to run some application that will check this time after time. Ex. cron . It is not good for me. There are possible pauses beetwean document saved and updated on my site. Does really google is lagging behind zoho? ZOHO has API function to notify when document is updated. On 17 Квіт by uk_VT_linguist, 19:29, Eric (Google) api.e...@google.com wrote: Would the updated element work for you? updated2009-03-16T23:26:12.503Z/updated Eric --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Upload a file to a worksheet in an existing spreadsheet
The DocList API allows you to upload/replace the files entire contents. The Spreadsheets API can then be used to work with individual worksheets, rows, cells, etc. Eric On Apr 22, 7:41 am, Wayne wsha...@gmail.com wrote: Hi, I was able to upload .csv to a new spreadsheet. But is it possible to upload it to a new worksheet in an existing spreadsheet? If not, is there any way to add rows to a worksheet in one shot through GData API? Right now, I need to do it in multiple steps ( spreadsheet feed- get target entry - add worksheet - get list feed - add one row at a time) Thanks, Wayne --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Zend Gdata PHP batch processing error
What scope did you use to obtain an AuthSub token? The scope should be broad enough in order to be valid for calls to http://docs.google.com/feeds/*. e.g.: scope=http://docs.google.com/feeds/ Eric On Apr 21, 10:36 am, rvald...@gmail.com rvald...@gmail.com wrote: I'm working with the Zend Google docs library and wrote a method in the Docs class to execute batch requests to add some collaborators to an uploaded document. I pass the well formed xml into data and the batch url for the document into the method. public function executeBatch($data, $uri, $className='Zend_Gdata_App_Feed', $extraHeaders=array()){ $response = $this-post($data, $uri, null, null, $extraHeaders); $returnFeed = new $className($response-getBody()); $returnFeed-setHttpClient(self::getstaticHttpClient()); $etag = $response-getHeader('ETag'); if (!is_null($etag)) { $returnEntry-setEtag($etag); } return $returnEntry; } It is similar to the existing insertEntry method from the App class. Every time I try to run it I get Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with message 'Expected response code 200, got 401 HTML HEAD TITLEToken invalid - AuthSub token has wrong scope/TITLE /HEAD BODY BGCOLOR=#FF TEXT=#00 H1Token invalid - AuthSub token has wrong scope/H1 H2Error 401/H2 /BODY /HTML ' in / home/ivs3djail/home/ivs3d/public_html/googledocs/includes/library/Zend/ Gdata/App.php:691 Stack trace: #0 /home/ivs3djail/home/ivs3d/ public_html/googledocs/includes/library/Zend/Gdata.php(218): Zend_Gdata_App-performHttpRequest('POST', 'http://docs.goo...', Array, 'feed xmlns='ht...', 'application/ato...', NULL) #1 /home/ ivs3djail/home/ivs3d/public_html/googledocs/includes/library/Zend/ Gdata/App.php(869): Zend_Gdata-performHttpRequest('POST', 'http:// docs.goo...', Array, 'feed xmlns='ht...', 'application/ato...') #2 / home/ivs3djail/home/ivs3d/public_html/googledocs/includes/library/Zend/ Gdata/App.php(1184): Zend_Gdata_App-post('feed xmlns='ht...', 'http://docs.goo...', NULL, NULL, Array) #3 in /home/ivs3djail/home/ ivs3d/public_html/googledocs/includes/library/Zend/Gdata/App.php on line 691 Do I need to request a specific scope to execute batch processing? If I try the same XML and URL that I use in the method in the authsub playground it works fine. Any advice? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Docs invite code
Hi Brian, That's right, the API doesn't include the same email invite that the Google Docs UI does. You _could_ generate such a feature yourself. After adding users to a doc, send them email in whatever language you're using :) Although, as you mentioned, there's no way to register a user if they're not a Google Docs user. I believe they'll be prompted to do so when trying to access the document online. Eric On Apr 22, 12:49 pm, brian brian.whit...@gmail.com wrote: Maybe I'm just missing it, but is there any way to get the permissions invite code for a google doc? Maybe this is the wrong way to go about it, and if so then I'm all ears. I'm modifying the doc's ACL to add new collaborators, but the collaborators may not necessarily have Google accounts. Modifying the ACL doesn't seem to be sending out invitations, which is fine that's what I'd expect, but I'm wondering if there's any way to accomplish the same thing. When you use the web interface, it sends out invite urls to the collaborators: http://docs.google.com/Doc?id=dd6ghawrr_114djcp47dcinvite=2232194384 which lets the users sign in or register and gain access to the doc. That's what I need. Somehow, if it's possible. Seems like the easiest way would be if I could figure out how to get or generate that invite code, but if there's another route, I just need SOMEthing. Any thoughts? Thanks, -Brian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: You must be authenticated for this operation issue when trying to update docs as collaborator
So, it looks like you must be the document's owner to be able to update its title. The same is true for the Google Docs UI. Eric On Apr 22, 3:58 pm, Lohms cee...@gmail.com wrote: My script is trying to rename a spreadsheet using the collaborator's credentials, not the doc owners. This works just fine doing it manually, but I can't seem to get it to work through the api. Here's what I'm doing: Authenticating a session token to access spreadsheets and docs. Scope is passed as http://docs.google.com/feeds/%20http:// spreadsheets.google.com/feeds/ Open 2 feeds $docService = new Zend_Gdata_Docs($client); $docFeed = $docService-getDocumentListFeed('http://docs.google.com/ feeds/documents/private/full/-/spreadsheet'); $spreadsheetService = new Zend_Gdata_Spreadsheets($client); //print_r($feed); exit; $feed = $spreadsheetService-getSpreadsheetFeed(); I loop through the feeds returned by $spreadsheetService and rename each one using $docService. I have to do this because the Spreadsheet feed doesn't include an edit url (and the Doc feed does). When I rename the feed via the docFeed, I get the exception You must be authenticated for this operation. I don't understand how to get around this, since I authenticated via login with the collaborator credentials and have a valid session token. Any ideas? Thanks in advance, Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Sorting/Order of Docs in Folder View (Feature Request/Bug Report)
This sounds like an issue with Google Docs and not the API. Eric On Apr 23, 12:22 am, Ty tyqu...@gmail.com wrote: Hi all, When sorting the docs by name in folder view Google Docs does not sort number sensibly. For instance: Doc 1, Doc 2, ..Doc 12 Gets sorted like this: Doc 1, Doc 10, Doc 11, Doc, 12, Doc 2, Doc 3..Doc 9 This is kind of expected I guess, so I renamed all docs with a single digit with a leading zero (Doc 1 became Doc 01 etc) I expected that the number 0 would precede the number 1. But not so! It sorted like this: Doc 01, Doc 11, Doc 12, Doc 02, Doc 03.Doc09 Cheers, Ty --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: UploadDocument returns 404 not found
This should be hot fixed in the next couple of days. BTW, 'next couple of days' is known to be flexible :) Eric On Apr 20, 7:56 am, Denis Solovov denissolo...@gmail.com wrote: Thanks, Daniel. On Mon, Apr 20, 2009 at 9:31 AM, Daniel Marashlian daniel...@gmail.comwrote: yea it's only on spreadsheets. I'm waiting on this bug fix too! hehe check my thread here: http://groups.google.com/group/Google-Docs-Data-APIs/browse_thread/th... On Apr 19, 10:44 pm, Denis Solovov denissolo...@gmail.com wrote: Thanks for response. It's .Net library. You are right it happens when I only try to upload spreadsheet. On Mon, Apr 20, 2009 at 1:18 AM, Eric (Google) api.e...@google.com wrote: Which library are you using? You may start to see these types of errors if you're not rate limiting your requests. This does exist for spreadsheet creation: http://code.google.com/p/gdata-issues/issues/detail?id=1147 Eric On Apr 19, 10:49 am, Denis Solovov denissolo...@gmail.com wrote: Hi all.I've tried to use UploadDocument. It works properly in most cases. But sometimes it returns error 404 not found , however the document was succesfully uploaded. This error in not persistent, I call UploadDocument from test 10 times for the same document and can get 5-7 404 not found. But I mentioned before the document actually succesfully uploaded 10 times. Any suggestions? The only trouble with it that if exception occurs the UploadDocument doesnt' return DocumentEntry. Is there any way to get document's Id of uploaded document in this case? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Help renaming an existing spreadsheet using PHP
Is this just for spreadsheets or documents and presentations too? I was just able to update a document's title as a collaborator (e.g. not the owner) and it worked as expected. Eric On Apr 17, 5:08 pm, Lohms cee...@gmail.com wrote: Okay, I found the problem, but a new one has surfaced. First, my attempt to create a new title and assign it to $feeditem was slightly off. $newTitle = str_ireplace('TS', 'TxS', $feeditem-getTitle()); $feeditem-setTitle($newTitle); The above code should be: $newTitle = str_ireplace('TS', 'TxS', $feeditem-getTitle()-getText ()); $feeditem-getTitle()-setText($newTitle); $feeditem-getTitle() gives you the title if you echo it to the screen, but in reality it's returning an object of type Zend_Gdata_App_Extension_Title, so when I did the $newTitle assignment, I was essentially overwriting and object with a string, which then produced the fatal error down line during the save() call. So, now that I've cleared that hurdle, I've found that there are weird permissions issues with renaming spreadsheets. In my situation, I'm attempting to loop through all of the spreadsheets that are shared with a particular user. That user is not the owner of any of the documents, but has collaborator access. An exception gets thrown when the script tries to rename a spreadsheet owned by someone else, even though the shared user (who authenticated via AuthSub) has full edit access. Exception: Expected response code 200, got 500 You must be authenticated for this operation. However, unlike the api, when I go in as the shared user, I can successfully rename any of the shared documents via the docs.google.com browser interface. Does anyone how to get around this authentication inconsistency? Is the application somehow different than the user, even though that user authenticated to give the app permission? Thanks in advance. On Apr 17, 11:25 am, Eric (Google) api.e...@google.com wrote: You'll want to setup a Zend_Gdata_Docs() and use the Doclist API to rename a spreadsheet. I'm not sure the Spreadsheets API has that functionality. Eric On Apr 17, 12:07 pm, Lohms cee...@gmail.com wrote: Hi, I'm trying to rename an existing spreadsheet via the Zend Gdata library. I'm relatively new to the docs api... Here's what I'm attempting: $spreadsheetService = new Zend_Gdata_Spreadsheets($client); $feed = $spreadsheetService-getSpreadsheetFeed(); foreach($feed as $feeditem) { if(stripos($feeditem-title-getText(), 'ts') !== false) { $newTitle = str_ireplace('TS', 'TxS', $feeditem-getTitle()); $feeditem-setTitle($newTitle); $feeditem-save(); } } My script successfully loops through the docs and parses them, but I want to mark the docs that have been processed by the script by renaming them, and that's where the problem occurs. When I run the code above, I get the following error: Fatal error: Call to a member function getDOM() on a non-object in / var/local/www/pm/lib/Zend/Gdata/App/FeedEntryParent.php on line 239 The fatal error is inside the Zend framework, but I doubt it's a bug in the Zend framework. More likely culprit is my call of $feeditem-save (). The problem goes away when I comment out the save function call. But I don't know what I'm doing wrong. Any one have any thoughts? Thanks, Lohms --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Transporting Formatted Text From An HTML Document to Google Document
Sure. You could upload the doc contents as text/html. See uploading documents: http://code.google.com/apis/documents/docs/2.0/developers_guide_protocol.html#UploadingWMetadata Eric On Apr 19, 1:22 pm, Rob N letter...@gmail.com wrote: Hello, Is it possible for visitors to my website to click a link, something like 'Click here to open this document in Google Docs,' and have the document transport from the site to a GoogleDocs document preserving the format as it appeared on the site? Also, is there special formatting that should exist for the document in order to make this transport happen more seamlessly? Looking forward to your answers... Rob LetterRep.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: (400) Bad Request when updating a document shared with me
Clint, My apologies. I'm also seeing this. FWIW, I was testing with ?append=true (which works) but replacing the entire contents does not. I've prioritized/reopened 1123. Thanks, Eric On Apr 18, 12:04 am, Clint offis...@gmail.com wrote: As requested, the account data and the network captures. Any help is much appreciated! Important note: the code (which is listed at the first entry of this thread) works when I was the one who created the document and I am the one who is updating it. Working Scenario: - User A creates a document and uploads it to Gdocs - User A downloads the document and updates it - User A Updates the document in GDocs The code fails if I am not the owner of the document. Failing Scenario: - User A creates a document and uploads it to Gdocs - User A gives user B write permissions - User B downloads the document and updates it - User B Updates the document in GDocs -- 400, Could not convert document. Affected accounts: all that I used to test, including offis...@gmail.com, testacco...@offisync.com (all other accounts in @Offisync.com) Captures: Request: - Http: Request, PUT /feeds/media/private/full/document %3Ad95trgk_3532fcj37xgx - Request: Command: PUT - URI: /feeds/media/private/full/document%3Ad95trgk_3532fcj37xgx + Uri: ProtocolVersion: HTTP/1.1 ContentType: application/msword UserAgent: G-OffiSync-OffiSync-1.0/GDataGAuthRequestFactory-CS- Version=1.4.0.2--IEnumerable If-Match: HUsbWElTBSp7ImBq Slug: Tooltips - Authorization: GoogleLogin auth=DQAAAHsAAACpXw_668wKTXLj1aTId9ZHuH3lpFnPP0z60kxPiK6onyWw3v_kP1fzUL0BmaYd1eX9Tw- rNZD4rjwDiu0bR4a8o6y-... WhiteSpace: AuthorizationData: GoogleLogin auth=DQAAAHsAAACpXw_668wKTXLj1aTId9ZHuH3lpFnPP0z60kxPiK6onyWw3v_kP1fzUL0BmaYd1eX9Tw- rNZD4rjwDiu0bR4a8o6y-... GData-Version: 2.0 Host: docs.google.com ContentLength: 24576 Expect: 100-continue HeaderEnd: CRLF Response: - Http: Response, HTTP/1.1, Status Code = 400 - Response: ProtocolVersion: HTTP/1.1 StatusCode: 400, Bad request Reason: Bad Request ContentType: text/html; charset=UTF-8 TransferEncoding: chunked Date: Sat, 18 Apr 2009 06:49:53 GMT Expires: Sat, 18 Apr 2009 06:49:53 GMT Cache-Control: private, max-age=0 X-Content-Type-Options: nosniff Server: GFE/2.0 HeaderEnd: CRLF On Apr 17, 9:17 am, Eric (Google) api.e...@google.com wrote: Can you post: - accounts that are effected - your domain - an http request/response capture - anything else that may be relevant Eric On Apr 15, 11:50 pm, Clint offis...@gmail.com wrote: Although the issue is marked as fixed, it is 100% repro on multiple accounts Apps or Gmail. Please, please, please get it fixed as it is a blocking bug with no workaround! On Mar 31, 12:17 pm, Eric (Google) api.e...@google.com wrote: We're working on it. I've been told this should be fixed soon. I'll update the relevant bugs when 'all is well'. Eric On Mar 28, 9:10 pm, Clint offis...@gmail.com wrote: Any updates? This is a blocking bug. Our system is down until this is fixed...:( On Mar 25, 2:47 pm, Eric (Google) api.e...@google.com wrote: Awesome. Thank you. On Mar 24, 7:59 pm, Clint offis...@gmail.com wrote: Done:http://code.google.com/p/gdata-issues/issues/detail?id=1112 On Mar 24, 11:08 am, Eric (Google) api.e...@google.com wrote: Hi Clint, An bug just opened that deals with uploading/changing doc contents:http://code.google.com/p/gdata-issues/issues/detail?id=1107 Would you mind opening a separate issue in case these are unrelated? Thanks, Eric On Mar 23, 11:42 pm, Clint offis...@gmail.com wrote: I'm getting The remote server returned an error: (400) Bad Request. when trying to update a document. - When I update a document I created it works fine - When I update a document someone else created and shared with me, I get the error above (I have writer permissions). This is how the request looks like: GDataRequestFactory rf = m_service.Service.RequestFactory as GDataRequestFactory; rf.CustomHeaders.Add(GDataRequestFactory.IfMatch + :*); AtomEntry response = m_service.Service.Update(http://docs.google.com/ feeds/media/private/full/document%3Ad95trgk_3033g25mqvcx, fileStream, application/msword, myFileName); rf.CustomHeaders.Remove(GDataRequestFactory.IfMatch + :*); Any help is much appreciated!- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received
[Google-Docs-Data-APIs] Re: AclFeed for Document
Don't you need to cast the query result? AclFeed fd = (AclFeed)service.Query(acl); Eric On Apr 18, 12:50 pm, denissolovov denissolo...@gmail.com wrote: Hi. How can I get AclFeed for document in order to get list of users whom document shared with? I tried the following code: foreach (DocumentEntry dc in feed1.Entries) { AclQuery acl = new AclQuery(); acl.Uri = new Uri(dc.AccessControlList); //AclFeed fd = service.Query(acl); - doesn't work because it returns DocumentFeed instead of AclFeed DocumentsFeed feed2 = (DocumentsFeed)service.Query (acl); } As result I get the proper response according to protocol documentation. Actually I see that DocumentFeed contains all entries with description of role, scope, email of AclEntry. I see that this information is being put in DocumentEntry.ExtensionList in raw XmlNode. But I'm not clear how to create AclEntry (or get required information) from DocumentEntry. Can anyone help me with it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Problem is creating a new DocumentEntry and writing to it
There is an outstanding bug related to content update: http://code.google.com/p/gdata-issues/issues/detail?id=1123 Eric On Apr 17, 9:10 pm, Piyush piyush.0...@gmail.com wrote: Hi Eric, That worked fine. Now it is writing data to the Document. I have another problem When I update the contents of the document using the service.update() method of the gdata API, it does not give any exception but at the same time the contents are not updated. When I see the document, I just see the old contents. They dont change at all. Here's my code. public void writeToGoogleFile(String objectId, String fileContents, String title) throws MalformedURLException, IOException, ServiceException { DocumentEntry newEntry=new DocumentEntry(); MediaByteArraySource ms=new MediaByteArraySource (fileContents.getBytes(), text/plain); newEntry.setCanEdit(true); newEntry.setTitle(new PlainTextConstruct(title)); newEntry.setMediaSource(ms); DocumentListEntry toUpdate=(DocumentListEntry) docListEntryTable.get(objectId); //am getting the documententry reference from a hashtable System.out.println(Document Entry: +toUpdate.toString()); URL url=new URL(toUpdate.getEditLink().getHref()); service.update(url, newEntry, *); //to set the if-Match header. Write in any case } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Invalid AuthSub header Error 401
You're using ClientLogin so your Authorization header is incorrect. See http://code.google.com/apis/gdata/auth.html#ClientLogin Eric On Apr 18, 7:01 pm, karan karana...@gmail.com wrote: Hi I am trying to authenticate to google ... but it seems there is a problem with my authentication header and I get error 401. These are the steps I take... 1) send request for intial one time token var InitAuthURL = 'https://www.google.com/accounts/ClientLogin'; generateHTTPHeaders(InitAuthURL, 'POST', ' '); var InitAuthPostMsgParams = 'accountType=HOSTED_OR_GOOGLEEmail= '+ userName +'Passwd='+ password + 'service=writelysession=1source=Gulp-CalGulp-1.05'; http_request.send(InitAuthPostMsgParams); --- 2) this is what I get back in response SID=DQAAAH8AAADyMzBjyo8pLMmee08cJwPmORxXcqIG2fe3Xe7tmiw0_QZT03S1QXxDgoXt43wAE221DF2YGjc8tS_qVm5XTaMH9TljnF4u9rsXvgurdBJwyy5BBQbSX34532QKpv6KoqCwqzK8WHT6DxfINOeXTc7PsX- QIA7ZW2c2yzTKtx4Tjg LSID=DQAAAIBymYzk55W0O03Bt2mhcWMZM3wbiD9SUGvb- dqfglZGDR8HipOWYI62X5L7DGIu04CvfQ6j- ZREhQKH06KQTCxOgGD4JKp04v7E5bSbAWVURgsOus7U- Ui9swYcQgHSsIGvPR71jAorVkVGZX5qWGKujQ36IFzY_UGxGVcClBjlgg Auth=DQAAAH8AAABymYzk55W0O03Bt2mhcWMZM3wbiD9SUGvb- dqfglZGDR8HipOWYI62X5L7DGIu04BVkVt6X7ohTXfOe1MIxgTL5VTb7gpRRObwHX9JrWkqiSflkUH_CVHED6qUn5q5LMSC8AzXqE31694- uIlXVRYOQpKRK5oCunwN3VV13FZzRA --- the autherization header I make is like : var AUTH = \AuthSub token=DQAAAH8AAABymYzk55W0O03Bt2mhcWMZM3wbiD9SUGvb- dqfglZGDR8HipOWYI62X5L7DGIu04BVkVt6X7ohTXfOe1MIxgTL5VTb7gpRRObwHX9JrWkqiSflkUH_CVHED6qUn5q5LMSC8AzXqE31694- uIlXVRYOQpKRK5oCunwN3VV13FZzRA\; http_request.setRequestHeader(Authorization, AUTH); --- HTML HEAD TITLEInvalid AuthSub header./TITLE /HEAD BODY BGCOLOR=#FF TEXT=#00 H1Invalid AuthSub header./H1 H2Error 401/H2 /BODY /HTML Can any body tell me why I am gettin this error?? Regards, K --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: (400) Bad Request when updating a document shared with me
Can you post: - accounts that are effected - your domain - an http request/response capture - anything else that may be relevant Eric On Apr 15, 11:50 pm, Clint offis...@gmail.com wrote: Although the issue is marked as fixed, it is 100% repro on multiple accounts Apps or Gmail. Please, please, please get it fixed as it is a blocking bug with no workaround! On Mar 31, 12:17 pm, Eric (Google) api.e...@google.com wrote: We're working on it. I've been told this should be fixed soon. I'll update the relevant bugs when 'all is well'. Eric On Mar 28, 9:10 pm, Clint offis...@gmail.com wrote: Any updates? This is a blocking bug. Our system is down until this is fixed...:( On Mar 25, 2:47 pm, Eric (Google) api.e...@google.com wrote: Awesome. Thank you. On Mar 24, 7:59 pm, Clint offis...@gmail.com wrote: Done:http://code.google.com/p/gdata-issues/issues/detail?id=1112 On Mar 24, 11:08 am, Eric (Google) api.e...@google.com wrote: Hi Clint, An bug just opened that deals with uploading/changing doc contents:http://code.google.com/p/gdata-issues/issues/detail?id=1107 Would you mind opening a separate issue in case these are unrelated? Thanks, Eric On Mar 23, 11:42 pm, Clint offis...@gmail.com wrote: I'm getting The remote server returned an error: (400) Bad Request. when trying to update a document. - When I update a document I created it works fine - When I update a document someone else created and shared with me, I get the error above (I have writer permissions). This is how the request looks like: GDataRequestFactory rf = m_service.Service.RequestFactory as GDataRequestFactory; rf.CustomHeaders.Add(GDataRequestFactory.IfMatch + :*); AtomEntry response = m_service.Service.Update(http://docs.google.com/ feeds/media/private/full/document%3Ad95trgk_3033g25mqvcx, fileStream, application/msword, myFileName); rf.CustomHeaders.Remove(GDataRequestFactory.IfMatch + :*); Any help is much appreciated!- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Downloading hosted documents shared with 'everyone' gives authentication error
Looks like a bug. I doubt this is intentional. http://code.google.com/p/gdata-issues/issues/detail?id=1164 PDF download is a feature request: http://code.google.com/p/gdata-issues/issues/detail?id=1132 Eric On Apr 17, 11:13 am, Rus Hughes russell.hug...@gmail.com wrote: We use the Google hosted apps for business extensively, and I'm creating a backup script (with the Java API) so we can backup all our documents nightly. Documents shared specifically to a user are downloading fine, but when I try to download a document shared to 'everyone' the following error gets thrown: Exception in thread main java.lang.NullPointerException: No authentication header information at com.google.gdata.util.AuthenticationException.initFromAuthHeader (AuthenticationException.java:95) at com.google.gdata.util.AuthenticationException.init (AuthenticationException.java:66) at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse (HttpGDataRequest.java:509) at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse (GoogleGDataRequest.java:562) at com.google.gdata.client.http.HttpGDataRequest.checkResponse (HttpGDataRequest.java:481) at com.google.gdata.client.http.HttpGDataRequest.execute (HttpGDataRequest.java:460) at com.google.gdata.client.http.GoogleGDataRequest.execute (GoogleGDataRequest.java:534) at com.google.gdata.client.Service.getStreamFromLink(Service.java: 1565) at uk.co.company.systems.google.DocumentList.downloadFile (DocumentList.java:609) at uk.co.company.systems.google.GoogleBackup.downloadDocument (GoogleBackup.java:162) at uk.co.company.systems.google.GoogleBackup.main(GoogleBackup.java: 94) I'm retrieving the documents the same way I would any others, heavily using the pretty much unmodified DocumentList example code. Line 609 in DocumentList.java is: inStream = service.getStreamFromLink(link); We are happily downloading documents shared explicitly to a user. Is downloading documents shared to 'everyone' supported by Google at the moment? The other thing we've stumbled on is we can't download files uploaded as PDF, hopefully this will be fixed soon :) Many thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Help renaming an existing spreadsheet using PHP
You'll want to setup a Zend_Gdata_Docs() and use the Doclist API to rename a spreadsheet. I'm not sure the Spreadsheets API has that functionality. Eric On Apr 17, 12:07 pm, Lohms cee...@gmail.com wrote: Hi, I'm trying to rename an existing spreadsheet via the Zend Gdata library. I'm relatively new to the docs api... Here's what I'm attempting: $spreadsheetService = new Zend_Gdata_Spreadsheets($client); $feed = $spreadsheetService-getSpreadsheetFeed(); foreach($feed as $feeditem) { if(stripos($feeditem-title-getText(), 'ts') !== false) { $newTitle = str_ireplace('TS', 'TxS', $feeditem-getTitle()); $feeditem-setTitle($newTitle); $feeditem-save(); } } My script successfully loops through the docs and parses them, but I want to mark the docs that have been processed by the script by renaming them, and that's where the problem occurs. When I run the code above, I get the following error: Fatal error: Call to a member function getDOM() on a non-object in / var/local/www/pm/lib/Zend/Gdata/App/FeedEntryParent.php on line 239 The fatal error is inside the Zend framework, but I doubt it's a bug in the Zend framework. More likely culprit is my call of $feeditem-save (). The problem goes away when I comment out the save function call. But I don't know what I'm doing wrong. Any one have any thoughts? Thanks, Lohms --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Using Adobe Flex
The issue is authentication. There's an outstanding feature request to add a crossdomain.xml for AuthSub: http://code.google.com/p/gdata-issues/issues/detail?id=406 Good news is, you can now sign up to be a trusted tester for AuthSub for flash: http://groups.google.com/group/Google-Accounts-API/browse_thread/thread/110b68bed27ae4ed# Eric On Apr 13, 8:09 pm, davey darv...@gmail.com wrote: Is there a way to retrieve list of folder using Adobe Flex. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Editing
To do this with the API, the best flow would be to export the doc, open and edit it in your app, and then replace the contents of the doc with the edited version. All of that is available for reading in the developers' guide: http://code.google.com/apis/documents/docs/2.0/developers_guide_protocol.html The alternative is to open a window pointing to the document in Google Docs :) Eric On Apr 15, 12:29 am, Deeone jola...@gmail.com wrote: Hi all, Can anyone help me? I'm trying to open an existing document on google docs. I mean opening it to see the actual contents of the particular document,edit it,and save it back using java. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Error 404 when trying to move a file out of a folder
Hi Client, 404s on folder creation should be resolved. I am able to create folders and move docs out of a folders without problem. Eric On Apr 12, 4:58 pm, Clint offis...@gmail.com wrote: Any update on this? This bug still repros 100% on both a GDocs or Apps accounts. Thanks, Clint On Mar 18, 9:01 am, Clint offis...@gmail.com wrote: Thank you!!! This is a blocking issue for our company! On Mar 16, 5:14 pm, Eric (Google) api.e...@google.com wrote: This issue should be fixed later this month. Stayed tuned for more updates (as they come). Regards, Eric On Mar 14, 2:47 pm, Clint offis...@gmail.com wrote: http://code.google.com/p/gdata-issues/issues/detail?id=1095 On Mar 14, 2:39 pm, Eric Bidelman api.e...@google.com wrote: We found an issue with creating folders and 404s a few days ago. I haven't mentioned this yet b/c your original post was about moving documents in/out of folders. Only certain users are seeing this bug, as the failure is based on what type of account (Apps vs. Google) that was being used. Can you open an issue on this?http://code.google.com/p/gdata-issues/issues/entry Thanks, Eric On Sat, Mar 14, 2009 at 2:35 PM, Clint offis...@gmail.com wrote: Another note - as I said above, when I use standard GMail account against GDocs it works great 100%. When I use Apps account it fails 100% with404 On Mar 14, 2:21 pm, Clint offis...@gmail.com wrote: I tried adding the header, still fails. This is the entire code, what am I missing? DocumentsRequest request = null; GDataCredentials creds = new GDataCredentials (myUsername,myPWD); RequestSettings settings = new RequestSettings (myAppTest, creds); settings.AutoPaging = true; settings.PageSize = 100; request= new DocumentsRequest(settings); //Create the AtomCategory AtomCategory category = new AtomCategory(http:// schemas.google.com/docs/2007#folder, new AtomUri(http:// schemas.google.com/g/2005#kind)); category.Label = folder; //Create the AtomEntry AtomEntry folder = new AtomEntry(); folder.Categories.Add(category); folder.Title = new AtomTextConstruct (AtomTextConstructElementType.Title, My Folder); //Create the feed Uri Uri feedUri = new Uri(http://docs.google.com/feeds/ documents/private/full); request.Service.EntrySend(feedUri, folder, GDataRequestType.Insert); On Mar 14, 2:02 pm, Eric (Google) api.e...@google.com wrote: The Protocol guide has the most up to date info: http://code.google.com/apis/documents/docs/2.0/developers_guide_proto... We're working on updating the developer guides (including the .NET guide). Eric On Mar 14, 1:50 pm, Clint offis...@gmail.com wrote: Thanks for the reply Eric, I don't see anything in the documentation regarding setting the Version header. Can you please point me to the right place? Thanks, Clint On Mar 14, 11:27 am, Eric (Google) api.e...@google.com wrote: You're using v2? I don't see where you've set the version header (GData Version: 2) or are using the v=2 query param... Eric On Mar 14, 1:09 am, Clint offis...@gmail.com wrote: I also noticed that this error occurs only if I use my Google Apps account, if I use my Gmail account everything works fine! On Mar 14, 12:16 am, Clint offis...@gmail.com wrote: This code used to work wit the previous protocol version. Since upgrading I'm getting404when trying to move a file out of a folder.I'm able to move a file to a folder or to another folder. I'm sure 100% that the Uri's point to valit folder and file IDs. Code: strUri = http://docs.google.com/feeds/folders/private/full/folder %3A5dd5be61-12f8-43c4-b896-6af3eccbbe15/document %3Adgbhd4c3_2hkccwmdj; Uri feedUri = new Uri(strUri); GDataRequestFactory rf = m_service.Service.RequestFactory as GDataRequestFactory; rf.CustomHeaders.Add(GDataRequestFactory.IfMatch + :*); m_service.Service.Delete(feedUri); rf.CustomHeaders.Remove(GDataRequestFactory.IfMatch + :*); Network capture: - Http: Request, DELETE /feeds/folders/private/full/folder %3A5dd5be61-12f8-43c4-b896
[Google-Docs-Data-APIs] Re: Error 404 when trying to move a file out of a folder
*Clint Sorry about that :( On Apr 13, 11:37 am, Eric (Google) api.e...@google.com wrote: Hi Client, 404s on folder creation should be resolved. I am able to create folders and move docs out of a folders without problem. Eric On Apr 12, 4:58 pm, Clint offis...@gmail.com wrote: Any update on this? This bug still repros 100% on both a GDocs or Apps accounts. Thanks, Clint On Mar 18, 9:01 am, Clint offis...@gmail.com wrote: Thank you!!! This is a blocking issue for our company! On Mar 16, 5:14 pm, Eric (Google) api.e...@google.com wrote: This issue should be fixed later this month. Stayed tuned for more updates (as they come). Regards, Eric On Mar 14, 2:47 pm, Clint offis...@gmail.com wrote: http://code.google.com/p/gdata-issues/issues/detail?id=1095 On Mar 14, 2:39 pm, Eric Bidelman api.e...@google.com wrote: We found an issue with creating folders and 404s a few days ago. I haven't mentioned this yet b/c your original post was about moving documents in/out of folders. Only certain users are seeing this bug, as the failure is based on what type of account (Apps vs. Google) that was being used. Can you open an issue on this?http://code.google.com/p/gdata-issues/issues/entry Thanks, Eric On Sat, Mar 14, 2009 at 2:35 PM, Clint offis...@gmail.com wrote: Another note - as I said above, when I use standard GMail account against GDocs it works great 100%. When I use Apps account it fails 100% with404 On Mar 14, 2:21 pm, Clint offis...@gmail.com wrote: I tried adding the header, still fails. This is the entire code, what am I missing? DocumentsRequest request = null; GDataCredentials creds = new GDataCredentials (myUsername,myPWD); RequestSettings settings = new RequestSettings (myAppTest, creds); settings.AutoPaging = true; settings.PageSize = 100; request= new DocumentsRequest(settings); //Create the AtomCategory AtomCategory category = new AtomCategory(http:// schemas.google.com/docs/2007#folder, new AtomUri(http:// schemas.google.com/g/2005#kind)); category.Label = folder; //Create the AtomEntry AtomEntry folder = new AtomEntry(); folder.Categories.Add(category); folder.Title = new AtomTextConstruct (AtomTextConstructElementType.Title, My Folder); //Create the feed Uri Uri feedUri = new Uri(http://docs.google.com/feeds/ documents/private/full); request.Service.EntrySend(feedUri, folder, GDataRequestType.Insert); On Mar 14, 2:02 pm, Eric (Google) api.e...@google.com wrote: The Protocol guide has the most up to date info: http://code.google.com/apis/documents/docs/2.0/developers_guide_proto... We're working on updating the developer guides (including the .NET guide). Eric On Mar 14, 1:50 pm, Clint offis...@gmail.com wrote: Thanks for the reply Eric, I don't see anything in the documentation regarding setting the Version header. Can you please point me to the right place? Thanks, Clint On Mar 14, 11:27 am, Eric (Google) api.e...@google.com wrote: You're using v2? I don't see where you've set the version header (GData Version: 2) or are using the v=2 query param... Eric On Mar 14, 1:09 am, Clint offis...@gmail.com wrote: I also noticed that this error occurs only if I use my Google Apps account, if I use my Gmail account everything works fine! On Mar 14, 12:16 am, Clint offis...@gmail.com wrote: This code used to work wit the previous protocol version. Since upgrading I'm getting404when trying to move a file out of a folder.I'm able to move a file to a folder or to another folder. I'm sure 100% that the Uri's point to valit folder and file IDs. Code: strUri = http://docs.google.com/feeds/folders/private/full/folder %3A5dd5be61-12f8-43c4-b896-6af3eccbbe15/document %3Adgbhd4c3_2hkccwmdj; Uri feedUri = new Uri(strUri); GDataRequestFactory rf = m_service.Service.RequestFactory as GDataRequestFactory; rf.CustomHeaders.Add(GDataRequestFactory.IfMatch + :*); m_service.Service.Delete(feedUri
[Google-Docs-Data-APIs] Re: Proxy problem (.NET)
I would file a bug against the .NET client library: http://code.google.com/p/google-gdata/issues/list Frank is great (and prompt) about responding to issues. Eric On Apr 8, 8:59 am, fhtino fht...@gmail.com wrote: Hello, I have problems setting proxy. I use .NET Client Library. I'm working on a new version of GDocBackup and I'd like to support environment where connections must go through proxy servers. All works fine if download Document or Presentations but I get errors if I try to download Spreadsheets. The first step works fine: GDataCredentials credentials = new GDataCredentials(_userName, _password); RequestSettings settings = new RequestSettings(GDocBackup, credentials); DocumentsRequest request = new DocumentsRequest(settings); GDataRequestFactory x= request.Service.RequestFactory as GDataRequestFactory; x.Proxy = new WebProxy(); // ... or another proxy. FeedDocument feed = request.GetEverything(); ListDocument _docs = new ListDocument(); foreach (Document entry in feed.Entries) _docs.Add(entry); Second step: I download docs (the real code is more complex): foreach (Document doc in _docs) { if (... skip folder and pdf...) { Stream stream = request.Download(doc, Document.DownloadType.pdf); using (FileStream outFile = new FileStream(out.pdf, FileMode.Create, FileAccess.Write)) {.. save stream to local disk...} } } I get an exception at line Stream stream = request.Download(doc, Document.DownloadType.pdf); I get the error only if I'm downloading a spreadsheet. FYI the error is a proxy required authentication 407. But the problem is not the exception. I try to explain. I looked at the source code of the NET Lib and if I download a doc, the lib uses the proxy I set. And I get no error. If I download a spreadsheet, the lib use the default proxy and I get the error. So, why the lib use my proxy with doc and another proxy with spreadsheets? Fabrizio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Batch Processing
From http://code.google.com/apis/gdata/batch.html: To improve performance, operations may not be processed in the order in which they were requested. However, the final result is always the same as if the entries have been processed in order. Cheers, Eric On Apr 8, 10:56 am, Daniel Marashlian daniel...@gmail.com wrote: In Batch Processing for modifying the ACL of a document, does the processing happen in the same order as the XML? Or is it undeterministic? thanks! Daniel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Reading folders as tree
The .NET client has a nice sample of reading the folder list into a tree: http://code.google.com/p/google-gdata/source/browse/#svn/trunk/clients/cs/samples/DocListExporter Eric On Apr 9, 1:32 am, scala...@gmail.com scala...@gmail.com wrote: Hello! I can read list of my folders: DocumentListFeed listFolders = googleDocs.getDocsListFeed (folders); if (listFolders != null) { retVal = new ArrayListDocumentListEntry(); for (DocumentListEntry folder : listFolders.getEntries()) { ... } } But I need read folders as tree... How I can read root folder and it's subfolders? How I can read list of documents in the selected folder? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Inconsistencies on creating/uploading spreadsheets
404s when creating was just opened: http://code.google.com/p/gdata-issues/issues/detail?id=1147 The spreadsheet is created, but the repsonse is 404 :( It looks like this is the same bug plaguing folder creation (also returning 404s). Are you sure the writersCanInvite issue is mutually exclusive to the 404 responses? Also, making requests this fast (e.g. a for loop) might be playing in to why some of these are failing. Eric On Apr 9, 11:15 am, Daniel Marashlian daniel...@gmail.com wrote: Hi Eric, any ideas on this? I noticed that the spreadsheets are on a different subdomain. Maybe this is the reason? thanks! Daniel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Using Google Docs API to upload documents to Google Apps Site
Absolutely. If you're using AuthSub, you can append hd=yourdomain.com to the AuthSubRequest URL (the approval page). If you're using ClientLogin, just sign in with the correct type of account. Eric On Apr 2, 3:15 am, Umair umair.ara...@gmail.com wrote: Hi, I am having a google apps subscription for my company where I am maintaining few sites with documents centers. Is it possible to upload documents to one of these documents centers instetad of my google docs using the google docs API? Please advice. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: create a new spreadsheets on Google Docs
Created a bug for this: http://code.google.com/p/gdata-issues/issues/detail?id=1131 Again, the quick fix is to include a label. e On Apr 2, 10:39 am, Eric (Google) api.e...@google.com wrote: Try adding a label to the category: ?xml version='1.0' encoding='UTF-8'? atom:entry xmlns:atom=http://www.w3.org/2005/Atom; atom:category scheme=http://schemas.google.com/g/2005#kind; term=http://schemas.google.com/docs/2007#spreadsheet; label=spreadsheet/ atom:titlenew spreadsheet title/atom:title /atom:entry Eric On Apr 2, 9:11 am, Daniel Marashlian daniel...@gmail.com wrote: Loana, Can you get this to work? I have been having troubles getting this method to work. On Mar 6, 12:16 pm, Eric (Google) api.e...@google.com wrote: While Daniels suggestion is perfectly viable and works, I just wanted to mention that there's no need to upload an actual file. You can create empty docs/spreadsheets/presos by POSTing a new Atom entry:http://code.google.com/apis/documents/docs/2.0/developers_guide_proto... POST /feeds/documents/private/full HTTP/1.1 Content-Length: 288 Content-Type: application/atom+xml ?xml version='1.0' encoding='UTF-8'? atom:entry xmlns:atom=http://www.w3.org/2005/Atom; atom:category scheme=http://schemas.google.com/g/2005#kind; term=http://schemas.google.com/docs/2007#spreadsheet; / atom:titlenew spreadsheet title/atom:title /atom:entry The client libraries have helper methods to do that for you. Cheers, Eric On Mar 6, 9:49 am, Daniel Marashlian daniel...@gmail.com wrote: I have a solution for this, I'm not sure if it's the best one, but it works... I have 3 empty files on my server, text, powerpoint (ppt) , and excel (xls) then I use the call from the API to upload a file from your server to the Google Docs server. So in our system, when someone says create a new spreadsheet, I just take the static location of the empty spreadsheet file and upload that. Daniel On Mar 6, 2:30 am, Ioana teo.io...@gmail.com wrote: Hi, It's possible to create new spreadsheets on Google Docs? If yes, how? Until now I didn't found a solution. Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: NEW!! Export your documents
PDF upload is not yet supported in the API. On Feb 26, 10:53 am, Daniel lt.ch...@gmail.com wrote: I'm using .Net and I cannot download pdf files. I'm getting a Document not found message. Documents, spreadsheets, and presentations do work. (thank you) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Batch Processing
By the way, the correct links are always embedded in the feed or entry. In the case of batch ACLs, the correct link is in the ACL feed of the document: link rel=http://schemas.google.com/g/2005#batch; type=application/atom+xml href=http://docs.google.com/feeds/acl/private/full/document %3A12345abc/batch/ Eric On Apr 1, 3:17 pm, Daniel Marashlian daniel...@gmail.com wrote: I just figured it out... I knew it was something dumb! I copied the URL from the Developer's Guide: /feeds/acl/private/full/document%3Adocument_id/batch HTTP/1.1 and included the HTTP/1.1 in the URL not realizing that's just meaning use HTTP 1.1... haha it's working now! thanks Daniel On Apr 1, 3:02 pm, Daniel Marashlian daniel...@gmail.com wrote: Hi Eric, I just tried to copy the code from the Developer's guide, and I'm getting the same error message (The remote server returned an error: (400) Bad Request). One thing that might be worth mentioning, While testing, I'm using ClientLogin for authentication. So maybe it's broken on ClientLogin Auth? I'm not sure... This is the same technique that I used for our other functions that we have to add a single collaborator, and it works... but if i change the XML and the HttpWebRequest URL it doesn't work :( what am I doing wrong Thank you in advance for all the help!!! here is the code I'm using to make the POST (it's in C#). //role is writer //type is document public static string BatchSetUserRole(string docID, string role, string type) { //auth is the clientLogin key from google string auth = Authenticate(); //Create a web request for the Google ClientLogin service HttpWebRequest authRequest = (HttpWebRequest)HttpWebRequest.Create (String.Format(http://docs.google.com/feeds/acl/private/full/{0}%3A {1}/batch HTTP/1.1, type, docID)); authRequest.KeepAlive = false; authRequest.ContentType = application/atom+xml; authRequest.Method = POST; authRequest.Headers.Add(Authorization: GoogleLogin auth= + auth); //Build the POST data - this returns the XML from the Developer's guide string postBuilder = BatchXmlSetUser(role, docID); //Convert the POST data to a byte[] byte[] data = ASCIIEncoding.ASCII.GetBytes(postBuilder.ToString()); authRequest.ContentLength = data.Length; //Get the request stream and POST the data Stream requestStream = authRequest.GetRequestStream(); requestStream.Write(data, 0, data.Length); requestStream.Close(); //Get the response HttpWebResponse authResponse = (HttpWebResponse) authRequest.GetResponse(); Stream responseStream = authResponse.GetResponseStream(); StreamReader responseReader = new StreamReader(responseStream); string response = responseReader.ReadToEnd(); //close streams responseReader.Close(); responseStream.Close(); authResponse.Close(); return response; } //this is the function to build the XML code which was copied from the Developer's guide. private static string BatchXmlSetUser(string role, string docID) { string EntityTemplate = @feed xmlns='http://www.w3.org/2005/Atom' xmlns:gAcl='http://schemas.google.com/acl/2007'xmlns:batch='http:// schemas.google.com/gdata/batch' category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/acl/2007#accessRule'/ entry idhttp://docs.google.com/feeds/acl/private/full/document%3A; + docID + @/user%3Adanielzev%40gmail.com/id batch:operation type='query'/ /entry entry batch:id1/batch:id batch:operation type='insert'/ gAcl:role value='writer'/ gAcl:scope type='user' value='daniel...@hotmail.com'/ /entry entry idhttp://docs.google.com/feeds/acl/private/full/document%3A; + docID + @/user%3Adaniel%40pelotonics.com/id batch:operation type='update'/ gAcl:role value='reader'/ gAcl:scope type='user' value='dan...@pelotonics.com'/ /entry entry idhttp://docs.google.com/feeds/acl/private/full/document%3A; + docID + @/user%3Adanielzev%40yahoo.com/id batch:operation type='delete'/ /entry /feed; return EntityTemplate; } On Mar 31, 1:21 pm, Eric (Google) api.e...@google.com wrote: Hi Daniel, Your XML looks good to me. I was able to cut/paste the XML in the Developer's guide and POST it successfully.http
[Google-Docs-Data-APIs] Re: Make spreadsheet editable by all using API
On Mar 27, 2:36 pm, AN data2w...@gmail.com wrote: Sorry, I'll clarify. Maybe we're referring to two different things. 1. I'm referring to google spreadsheet only, not any any other docs. Only the Spreadsheet UI allows 'editable' for all (i.e. anyone on the Internet). Described here:http://docs.google.com/support/bin/answer.py?answer=96346topic=15169 2. This is how I do it - Open Spreadsheet, click on Share, Click Share with the world, then Select Let people edit without signing in. So in this case, no login should be required. And it works but a bit randomly as outlined above. Looks like if you have 'some' google cookies - it works. Even if these are not authentication related cookies. Sounds funny. 3. And now - the steps in #2 are what I want to do through an API call. I don't believe this is possible with the API's ACL operations. Any insight will be very helpful. Thanks again!! On Mar 27, 3:01 pm, Eric Bidelman api.e...@google.com wrote: If you clear browser cookies, you'll always be repromptedwith a login. That's expected. Sorry if I wasn't clear... Adding 'everyone' as a collaborator is everyone on your Google Apps domain, not the world. Authentication is still required to verify the visitor is a member of your domain. The API doesn't allow making the document world-editable. In face, I don't think that's even possible in docs.google.com. Eric On Fri, Mar 27, 2009 at 6:55 AM, AN data2w...@gmail.com wrote: Will open a bug. There seems to be a further issue. Wonder if they are related: Make spreadsheet editable by all from the browser window. Then try this: Case 1: iphone browser - always asks for login. Broken Case 2: IE, Chrome, Firefox - If cache cleared, always asks for login. Broken Case 3: IE, Chrome, Firefox - If browser has visited google sites but never logged in to any google site , works 90%. Seems some google cookie is expected in the request. Broken Case 4:Safari on Mac - not asked for login yet. Seems to work but it has a google search toolbar. Maybe that's getting some google cookies and it's like Case 3 above. Am I missing something here or is it a bug? A clarification will be really helpful. Thanks!! On Mar 25, 2:18 pm, Eric Bidelman api.e...@google.com wrote: Hi, I was able to POST or PUT an 'everyone' acl entry for docs: gAcl:role value=reader/ gAcl:scope type=user value=everyone/ The same doesn't work for spreadsheets. The entry gets created, but the role value is 'none': gAcl:role value=none/ gAcl:scope type=user value=everyone/ Please open a bug: http://code.google.com/p/gdata-issues/issues/entry?template=Documents...) Eric On Wed, Mar 25, 2009 at 8:58 AM, AN data2w...@gmail.com wrote: Is it possible to make a spreadsheet editable by everyone using an API call? I tried giving full access to the 'everyone' user by setting the ACL but that didn't work. Any help appreciated. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Create Folder 404 (folder still creates)
Is this related? http://code.google.com/p/gdata-issues/issues/detail?id=1095 eric On Mar 27, 5:21 pm, Chewy81 tfru...@gmail.com wrote: Having an issue creating a folder in the root. I pulled this code from the unit tests. It returns a 404 not found exception, but the folder is still created: public void test() { try { Google.Documents.Document folder = new Google.Documents.Document(); folder.Type = Google.Documents.Document.DocumentType.Folder; folder.Title = Testers99; mainRequest.CreateDocument(folder); } catch (Exception eee) { log(Test: + eee.ToString()); } } Error: 3/27/2009 5:20:43 PM Test: Google.GData.Client.GDataRequestException: Execution of request failed:http://docs.google.com/feeds/documents/private/full --- System.Net.WebException: The remote server returned an error: (404) Not Found. at System.Net.HttpWebRequest.GetResponse() at Google.GData.Client.GDataRequest.Execute() --- End of inner exception stack trace --- at Google.GData.Client.GDataRequest.Execute() at Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter) at Google.GData.Client.GDataGAuthRequest.Execute() at Google.GData.Client.Service.EntrySend(Uri feedUri, AtomBase baseEntry, GDataRequestType type, AsyncSendData data) at Google.GData.Client.Service.Insert(Uri feedUri, AtomEntry newEntry, AsyncSendData data) at Google.GData.Client.Service.Insert[TEntry](Uri feedUri, TEntry entry) at Google.GData.Client.FeedRequest`1.Insert[Y](Uri address, Y entry) at Google.Documents.DocumentsRequest.CreateDocument(Document newDocument) at CloudHeroService.GDocs.test() --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Errror 400 Bad Request, Creating a document without content
See http://code.google.com/p/gdata-issues/issues/detail?id=1123 On Mar 29, 8:44 am, sdevouard sdevou...@gmail.com wrote: Last time I was playing with the Google Docs API, the creation of an empty spreadsheet was working (most of the time) and I was having an error 400 only when updating the document with CSV content I've been trying again the creation of an empty spreadsheet last week and got the same error Matt is mentionning I'm not using any client library, just low level HTTP requests Thanks, Stéphane On 29 mar, 10:30, incub...@gmail.com incub...@gmail.com wrote: I write my own call a few weeks ago and it works, but last week something on server side change and it doesn't work anymore. Someone has the same problem or found a way to resolve this problem. I use Java. Thank you all for the support. Matt. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Unable to Upload document using gdata-samples.java-1.29.0.java.zip
I commented on the bug a few hours ago. I'll continue to use that for updates. Eric On Mar 31, 12:45 am, Shivaji Shivaji shivaji.1...@gmail.com wrote: Hi Eric, Is there any update on the uploading a document Problem( java.net.SocketException: Unexpected end of file from server) ? Shiva On Wed, Mar 25, 2009 at 7:57 PM, Shivaji Shivaji shivaji.1...@gmail.comwrote: Thanks Eric. I appreciate your help. Shiva On Tue, Mar 24, 2009 at 10:43 AM, Eric (Google) api.e...@google.comwrote: Update. I've having problems uploading a .txt on a different account. I'll have to investigate. Eric On Mar 23, 1:19 pm, Eric (Google) api.e...@google.com wrote: I just ran the sample without problems. Could this be a proxy issue? Eric On Mar 23, 11:56 am, Shivaji Shivaji shivaji.1...@gmail.com wrote: Hi Eric, Thanks for the reply. I tried using the latest samples (DocumentList.java http://code.google.com/p/gdata-java-client/source/browse/trunk/java/s.. ., DocumentListDemo.java, http://code.google.com/p/gdata-java-client/source/browse/trunk/java/s... DocumentListException.java http://code.google.com/p/gdata-java-client/source/browse/trunk/java/s.. .). With these samples I am able to download the doc sucessfully. *But the problem of upload is still existing, it is also giving the same error. *By seeing the log messages, for me its looks like the message is not built properly(not ended properly) from client side itself. Shiva On Mon, Mar 23, 2009 at 11:58 PM, Eric (Google) api.e...@google.com wrote: Hi, See my post here: http://groups.google.com/group/Google-Docs-Data-APIs/browse_thread/th... It looks like gdata-samples.java-1.30.0.java.zip didn't pick up the changes in /trunk: http://code.google.com/p/gdata-java-client/source/browse/#svn/trunk/j... Can you try building from the sample's src in /trunk? Eric On Mar 23, 3:00 am, Shivaji Shivaji shivaji.1...@gmail.com wrote: I am getting the same problem with the latest one (gdata-samples.java-1.30.0.java.zip) also. Please find the Log when I am trying to upload a simple file (test.txt): *upload /home/test.txt [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setMethod [java] FINE: POSThttp:// docs.google.com/feeds/documents/private/full [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setHeader [java] FINER: Content-Type: multipart/related;boundary==_Part_0_26622782.1237802233083 [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setPrivateHeader [java] FINER: Authorization: Not Logged [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setHeader [java] FINER: User-Agent: Document List Demo GDocs-Java/2.0.1 GData-Java/null(gzip) [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setHeader [java] FINER: Accept-Encoding: gzip [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setHeader [java] FINER: GData-Version: 2.0 [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setHeader [java] FINER: Slug: test.txt [java] Mar 23, 2009 3:27:13 PM com.google.gdata.util.LoggableOutputStream flush [java] FINEST: --=_Part_0_26622782.1237802233083 [java] Content-Type: application/atom+xml [java] [java] entry xmlns=' http://www.w3.org/2005/Atom'xmlns:gd='http://schemas.google.com/g/2005http://www.w3.org/2005/Atom%27xmlns:gd=%27http://schemas.google.com/g... http://www.w3.org/2005/Atom%27xmlns:gd=%27http://schemas.google.com/g.. .'category scheme=' http://schemas.google.com/g/2005#kind'term='http://schemas.google.com..http://schemas.google.com/g/2005#kind%27term=%27http://schemas.google. .http://schemas.google.com/g/2005#kind%27term=%27http://schemas.google.. . atom:title xmlns:atom='http://www.w3.org/2005/Atom 'test.txt/atom:titleatom:content xmlns:atom='http://www.w3.org/2005/Atom'type='text/plain'/http://www.w3.org/2005/Atom%27type=%27text/plain%27/ http://www.w3.org/2005/Atom%27type=%27text/plain%27/ /entry [java] Mar 23, 2009 3:27:13 PM com.google.gdata.util.LoggableOutputStream flush [java] FINEST: [java] Mar 23, 2009 3:27:13 PM com.google.gdata.util.LoggableOutputStream flush [java] FINEST: [java] --=_Part_0_26622782.1237802233083 [java] Content-Type: text/plain [java] [java] Hello this is for testing google docs [java] [java] [java] Mar 23, 2009 3:27:13 PM
[Google-Docs-Data-APIs] DocList API Release 2009-03
http://code.google.com/apis/documents/changelog.html#release-2009-03 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Batch Processing
Batching ACL requests: http://code.google.com/apis/documents/docs/2.0/developers_guide_protocol.html#ACLBatch On Mar 25, 9:59 am, Daniel Marashlian daniel...@gmail.com wrote: Hi Eric and GDocs users, I'm going to start a new discussion here since my last post wasn't really relevant to it's topic. Would someone mind constructing an example for Batch Processing to modify the ACL of a document? I can't figure it out following this doucment:http://code.google.com/apis/gdata/batch.html thanks! Daniel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: (400) Bad Request when updating a document shared with me
Awesome. Thank you. On Mar 24, 7:59 pm, Clint offis...@gmail.com wrote: Done:http://code.google.com/p/gdata-issues/issues/detail?id=1112 On Mar 24, 11:08 am, Eric (Google) api.e...@google.com wrote: Hi Clint, An bug just opened that deals with uploading/changing doc contents:http://code.google.com/p/gdata-issues/issues/detail?id=1107 Would you mind opening a separate issue in case these are unrelated? Thanks, Eric On Mar 23, 11:42 pm, Clint offis...@gmail.com wrote: I'm getting The remote server returned an error: (400) Bad Request. when trying to update a document. - When I update a document I created it works fine - When I update a document someone else created and shared with me, I get the error above (I have writer permissions). This is how the request looks like: GDataRequestFactory rf = m_service.Service.RequestFactory as GDataRequestFactory; rf.CustomHeaders.Add(GDataRequestFactory.IfMatch + :*); AtomEntry response = m_service.Service.Update(http://docs.google.com/ feeds/media/private/full/document%3Ad95trgk_3033g25mqvcx, fileStream, application/msword, myFileName); rf.CustomHeaders.Remove(GDataRequestFactory.IfMatch + :*); Any help is much appreciated!- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Updating a Google Document's Content With C#
Hi Corey, What sort of error are you seeing? Do you have a snippets of relevant code? Note, there's currently any issue with updating a document's content: http://code.google.com/p/gdata-issues/issues/detail?id=1112 Eric On Mar 25, 1:16 pm, Corey Ogburn core...@gmail.com wrote: I've been looking through the Google Docs API for the past few days and I really like all that I can do. I've figured out how to upload new documents, download existing documents, query the documents I have, all that good stuff. But I don't know how to update an existing document using C#. I am very new to the API. The only thing I've found is in the Protocol section of the documentation, saying I can do a PUT command, but anyway I try it, I can't successfully get the PUT to work either, I'm hoping that there's a method call I've been overlooking or not finding to help me update a document's content. Any help would be greatly appreciated. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: How to know the XML request byte size
If the request body isn't binary, can you just do a strlen(xml)? Eric On Mar 24, 6:28 am, raju saiful.r...@gmail.com wrote: Since google spreadsheet api doesnt support operation for more than 1 Mb.So i need to check the byte size of the request before send to the server.I have following question 1.Is there any API to get this info. 2.If not is there any way to write a custom API by wrapping API's. 3.If above two possibility is no.Then what else need to do to meet that feature --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Unable to Upload a text file.
For anyone monitoring this, there's now an open issue: http://code.google.com/p/gdata-issues/issues/detail?id=1107 Eric On Mar 24, 8:57 am, DeanG goodmans...@gmail.com wrote: With the .Net DocList Uploader .Net sample project I'm also unable to upload a text file. (400 Bad Request) This is my top priority today and I will look to get further details in the proper channels also. On Mar 24, 12:13 am, Eric (Google) api.e...@google.com wrote: Update. I've having problems uploading a .txt on a different account. I'll have to investigate. Eric On Mar 23, 1:19 pm, Eric (Google) api.e...@google.com wrote: I just ran the sample without problems. Could this be a proxy issue? Eric On Mar 23, 11:56 am, Shivaji Shivaji shivaji.1...@gmail.com wrote: Hi Eric, Thanks for the reply. I tried using the latest samples (DocumentList.javahttp://code.google.com/p/gdata-java-client/source/browse/trunk/java/s..., DocumentListDemo.java, http://code.google.com/p/gdata-java-client/source/browse/trunk/java/s... DocumentListException.javahttp://code.google.com/p/gdata-java-client/source/browse/trunk/java/s...). With these samples I am able to download the doc sucessfully. *But the problem of upload is still existing, it is also giving the same error. *By seeing the log messages, for me its looks like the message is not built properly(not ended properly) from client side itself. Shiva On Mon, Mar 23, 2009 at 11:58 PM, Eric (Google) api.e...@google.com wrote: Hi, See my post here: http://groups.google.com/group/Google-Docs-Data-APIs/browse_thread/th... It looks like gdata-samples.java-1.30.0.java.zip didn't pick up the changes in /trunk: http://code.google.com/p/gdata-java-client/source/browse/#svn/trunk/j... Can you try building from the sample's src in /trunk? Eric On Mar 23, 3:00 am, Shivaji Shivaji shivaji.1...@gmail.com wrote: I am getting the same problem with the latest one (gdata-samples.java-1.30.0.java.zip) also. Please find the Log when I am trying to upload a simple file (test.txt): *upload /home/test.txt [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setMethod [java] FINE: POSThttp:// docs.google.com/feeds/documents/private/full [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setHeader [java] FINER: Content-Type: multipart/related;boundary==_Part_0_26622782.1237802233083 [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setPrivateHeader [java] FINER: Authorization: Not Logged [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setHeader [java] FINER: User-Agent: Document List Demo GDocs-Java/2.0.1 GData-Java/null(gzip) [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setHeader [java] FINER: Accept-Encoding: gzip [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setHeader [java] FINER: GData-Version: 2.0 [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setHeader [java] FINER: Slug: test.txt [java] Mar 23, 2009 3:27:13 PM com.google.gdata.util.LoggableOutputStream flush [java] FINEST: --=_Part_0_26622782.1237802233083 [java] Content-Type: application/atom+xml [java] [java] entry xmlns=' http://www.w3.org/2005/Atom'xmlns:gd='http://schemas.google.com/g/2005http://www.w3.org/2005/Atom%27xmlns:gd=%27http://schemas.google.com/g...'category scheme=' http://schemas.google.com/g/2005#kind'term='http://schemas.google.com...http://schemas.google.com/g/2005#kind%27term=%27http://schemas.google... atom:title xmlns:atom='http://www.w3.org/2005/Atom 'test.txt/atom:titleatom:content xmlns:atom='http://www.w3.org/2005/Atom'type='text/plain'/http://www.w3.org/2005/Atom%27type=%27text/plain%27/ /entry [java] Mar 23, 2009 3:27:13 PM com.google.gdata.util.LoggableOutputStream flush [java] FINEST: [java] Mar 23, 2009 3:27:13 PM com.google.gdata.util.LoggableOutputStream flush [java] FINEST: [java] --=_Part_0_26622782.1237802233083 [java] Content-Type: text/plain [java] [java] Hello this is for testing google docs [java] [java] [java] Mar 23, 2009 3:27:13 PM com.google.gdata.util.LoggableOutputStream flush [java] FINEST: [java] java.net.SocketException: Unexpected end of file from server [java] at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:769
[Google-Docs-Data-APIs] Re: Export documents
BTW: It looks like the gdata-samples.java-1.30.0.java.zip: http://code.google.com/p/gdata-java-client/downloads/list didn't pick up the updated sample: http://code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/docs/DocumentListDemo.java Eric On Mar 23, 11:05 am, Eric Bidelman api.e...@google.com wrote: Hi Peter. The 1.3.0 jars should be good to go. The DocListDemo.java in the /samples may help:http://code.google.com/p/gdata-java-client/source/browse/trunk/java/s... That sample demonstrates downloading docs. Eric On Sun, Mar 22, 2009 at 11:28 PM, Peter naveen.ven...@gmail.com wrote: I've downloaded the JAR files from the following URL but cudnt find the supported JAR files for exporting GDocs. http://code.google.com/p/gdata-java-client/downloads/list Am I missing something? Peter. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Unable to Upload document using gdata-samples.java-1.29.0.java.zip
I just ran the sample without problems. Could this be a proxy issue? Eric On Mar 23, 11:56 am, Shivaji Shivaji shivaji.1...@gmail.com wrote: Hi Eric, Thanks for the reply. I tried using the latest samples (DocumentList.javahttp://code.google.com/p/gdata-java-client/source/browse/trunk/java/s..., DocumentListDemo.java, http://code.google.com/p/gdata-java-client/source/browse/trunk/java/s... DocumentListException.javahttp://code.google.com/p/gdata-java-client/source/browse/trunk/java/s...). With these samples I am able to download the doc sucessfully. *But the problem of upload is still existing, it is also giving the same error. *By seeing the log messages, for me its looks like the message is not built properly(not ended properly) from client side itself. Shiva On Mon, Mar 23, 2009 at 11:58 PM, Eric (Google) api.e...@google.com wrote: Hi, See my post here: http://groups.google.com/group/Google-Docs-Data-APIs/browse_thread/th... It looks like gdata-samples.java-1.30.0.java.zip didn't pick up the changes in /trunk: http://code.google.com/p/gdata-java-client/source/browse/#svn/trunk/j... Can you try building from the sample's src in /trunk? Eric On Mar 23, 3:00 am, Shivaji Shivaji shivaji.1...@gmail.com wrote: I am getting the same problem with the latest one (gdata-samples.java-1.30.0.java.zip) also. Please find the Log when I am trying to upload a simple file (test.txt): *upload /home/test.txt [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setMethod [java] FINE: POSThttp:// docs.google.com/feeds/documents/private/full [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setHeader [java] FINER: Content-Type: multipart/related;boundary==_Part_0_26622782.1237802233083 [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setPrivateHeader [java] FINER: Authorization: Not Logged [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setHeader [java] FINER: User-Agent: Document List Demo GDocs-Java/2.0.1 GData-Java/null(gzip) [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setHeader [java] FINER: Accept-Encoding: gzip [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setHeader [java] FINER: GData-Version: 2.0 [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setHeader [java] FINER: Slug: test.txt [java] Mar 23, 2009 3:27:13 PM com.google.gdata.util.LoggableOutputStream flush [java] FINEST: --=_Part_0_26622782.1237802233083 [java] Content-Type: application/atom+xml [java] [java] entry xmlns=' http://www.w3.org/2005/Atom'xmlns:gd='http://schemas.google.com/g/2005http://www.w3.org/2005/Atom%27xmlns:gd=%27http://schemas.google.com/g...'category scheme=' http://schemas.google.com/g/2005#kind'term='http://schemas.google.com...http://schemas.google.com/g/2005#kind%27term=%27http://schemas.google... atom:title xmlns:atom='http://www.w3.org/2005/Atom 'test.txt/atom:titleatom:content xmlns:atom='http://www.w3.org/2005/Atom'type='text/plain'/http://www.w3.org/2005/Atom%27type=%27text/plain%27/ /entry [java] Mar 23, 2009 3:27:13 PM com.google.gdata.util.LoggableOutputStream flush [java] FINEST: [java] Mar 23, 2009 3:27:13 PM com.google.gdata.util.LoggableOutputStream flush [java] FINEST: [java] --=_Part_0_26622782.1237802233083 [java] Content-Type: text/plain [java] [java] Hello this is for testing google docs [java] [java] [java] Mar 23, 2009 3:27:13 PM com.google.gdata.util.LoggableOutputStream flush [java] FINEST: [java] java.net.SocketException: Unexpected end of file from server [java] at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:769) [java] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632) [java] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:652) [java] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection) [java] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373) [java] at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java :449) [java] at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest. java:534) [java] at com.google.gdata.client.media.MediaService.insert(MediaService.java:353) [java] at sample.docs.DocumentListDemo.uploadFile(DocumentListDemo.java:228) [java] at sample.docs.DocumentListDemo.executeCommand(DocumentListDemo.java:263) [java
[Google-Docs-Data-APIs] Re: Unable to Upload document using gdata-samples.java-1.29.0.java.zip
Update. I've having problems uploading a .txt on a different account. I'll have to investigate. Eric On Mar 23, 1:19 pm, Eric (Google) api.e...@google.com wrote: I just ran the sample without problems. Could this be a proxy issue? Eric On Mar 23, 11:56 am, Shivaji Shivaji shivaji.1...@gmail.com wrote: Hi Eric, Thanks for the reply. I tried using the latest samples (DocumentList.javahttp://code.google.com/p/gdata-java-client/source/browse/trunk/java/s..., DocumentListDemo.java, http://code.google.com/p/gdata-java-client/source/browse/trunk/java/s... DocumentListException.javahttp://code.google.com/p/gdata-java-client/source/browse/trunk/java/s...). With these samples I am able to download the doc sucessfully. *But the problem of upload is still existing, it is also giving the same error. *By seeing the log messages, for me its looks like the message is not built properly(not ended properly) from client side itself. Shiva On Mon, Mar 23, 2009 at 11:58 PM, Eric (Google) api.e...@google.com wrote: Hi, See my post here: http://groups.google.com/group/Google-Docs-Data-APIs/browse_thread/th... It looks like gdata-samples.java-1.30.0.java.zip didn't pick up the changes in /trunk: http://code.google.com/p/gdata-java-client/source/browse/#svn/trunk/j... Can you try building from the sample's src in /trunk? Eric On Mar 23, 3:00 am, Shivaji Shivaji shivaji.1...@gmail.com wrote: I am getting the same problem with the latest one (gdata-samples.java-1.30.0.java.zip) also. Please find the Log when I am trying to upload a simple file (test.txt): *upload /home/test.txt [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setMethod [java] FINE: POSThttp:// docs.google.com/feeds/documents/private/full [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setHeader [java] FINER: Content-Type: multipart/related;boundary==_Part_0_26622782.1237802233083 [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setPrivateHeader [java] FINER: Authorization: Not Logged [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setHeader [java] FINER: User-Agent: Document List Demo GDocs-Java/2.0.1 GData-Java/null(gzip) [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setHeader [java] FINER: Accept-Encoding: gzip [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setHeader [java] FINER: GData-Version: 2.0 [java] Mar 23, 2009 3:27:13 PM com.google.gdata.client.http.HttpGDataRequest setHeader [java] FINER: Slug: test.txt [java] Mar 23, 2009 3:27:13 PM com.google.gdata.util.LoggableOutputStream flush [java] FINEST: --=_Part_0_26622782.1237802233083 [java] Content-Type: application/atom+xml [java] [java] entry xmlns=' http://www.w3.org/2005/Atom'xmlns:gd='http://schemas.google.com/g/2005http://www.w3.org/2005/Atom%27xmlns:gd=%27http://schemas.google.com/g...'category scheme=' http://schemas.google.com/g/2005#kind'term='http://schemas.google.com...http://schemas.google.com/g/2005#kind%27term=%27http://schemas.google... atom:title xmlns:atom='http://www.w3.org/2005/Atom 'test.txt/atom:titleatom:content xmlns:atom='http://www.w3.org/2005/Atom'type='text/plain'/http://www.w3.org/2005/Atom%27type=%27text/plain%27/ /entry [java] Mar 23, 2009 3:27:13 PM com.google.gdata.util.LoggableOutputStream flush [java] FINEST: [java] Mar 23, 2009 3:27:13 PM com.google.gdata.util.LoggableOutputStream flush [java] FINEST: [java] --=_Part_0_26622782.1237802233083 [java] Content-Type: text/plain [java] [java] Hello this is for testing google docs [java] [java] [java] Mar 23, 2009 3:27:13 PM com.google.gdata.util.LoggableOutputStream flush [java] FINEST: [java] java.net.SocketException: Unexpected end of file from server [java] at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:769) [java] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632) [java] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:652) [java] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection) [java] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373) [java] at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java :449) [java] at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest. java:534) [java
[Google-Docs-Data-APIs] Re: Export documents
You're right about the docs, but I think that's because no new methods were added to support Export. The library already had the necessary calls. I'm currently updating the Java developer's guide: http://code.google.com/apis/documents/docs/2.0/developers_guide_java.html but that sample app should have everything you need. I would also reference the protocol guide, as needed: http://code.google.com/apis/documents/docs/2.0/developers_guide_protocol.html Eric On Mar 23, 10:05 pm, Peter naveen.ven...@gmail.com wrote: Thanks for the response Eric. I was confused as the DocumentListDemo is not updated in 1.30.0 java zip. Also the JavaDoc (http://code.google.com/apis/gdata/javadoc/) doesn't have the updated class for Exporting documents. Any idea to update these? Peter. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Deleting permissions for a user doesn't work sometimes
Actually, batch ACLs are in prod right now. It needs documenting. You can probably piece together something from the general google data batch docs: http://code.google.com/apis/gdata/batch.html Eric On Mar 17, 4:13 pm, Daniel Marashlian daniel...@gmail.com wrote: I understand, I was just wondering. what's the status on the batch processing then? is that going to be out in the next deployement? thanks for the reply! Daniel On Mar 17, 2:41 pm, Eric (Google) api.e...@google.com wrote: I'm afraid we're delayed...again :( I'd rather not promise another date for obvious reasons. Re. the 2-5 seconds, I don't have a workaround for you. That's just a limitation of the API. Again, I think batch ACLs will help with some of these latency issues. Eric On Mar 16, 5:32 pm, Daniel Marashlian daniel...@gmail.com wrote: Eric, Any word on the deployment this week? Also, did you have any idea on my last post in this thread? thanks Daniel On Mar 12, 9:32 pm, Daniel Marashlian daniel...@gmail.com wrote: Eric, Do you have an explaintion of why modifying the ACL of a document takes 2-5 seconds? Or better yet have a work around where it takes less than a second? let me know :) thank you! Daniel On Mar 11, 11:46 am, Mattia Avancini incub...@gmail.com wrote: I'm agree with you, the transaction is very slow, specially for spreadsheets. I read somewhere that there other people confirm this. I think that you can't make batch asinchronously transaction. Previsuoly I forget to tell you a trick. To make work every call you make you must renew the authentication process every time, with client login works. I make a cycle that insert a list of ACL and it works with different role together. 2009/3/11 Daniel Marashlian daniel...@gmail.com not sure... Eric said they fixed it though :) I have a question on your end though... how long is it taking for each call? It's taking like 2-5 seconds when I try it (which is ridiculous). Do you know of anyway to speed up that transaction? Maybe to it asynchronously??? Daniel On Mar 11, 11:17 am, Mattia Avancini incub...@gmail.com wrote: I use Client Login different from you Daniel and I don't have any kind of problem. May be the problem is related to AuthSub Authentication? -- Avancini Mattia -- Avancini Mattia --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: error when deleting a spreadsheet
You should be using the spreadsheet's link with rel='edit' for deleting spreadsheets. Those links are of the form: http://docs.google.com/feeds/documents/private/full/spreadsheet%3Akey Eric On Mar 19, 11:29 am, sm.b...@googlemail.com sm.b...@googlemail.com wrote: I am having problems deleting a spreadsheet via the python api here is the error that i am getting success = self.gd_client.Delete('http://spreadsheets.google.com/feeds/ spreadsheets/private/full/pvpsA5dofk1TJzfXJ0PHbMg') File C:\Python26\gdata.py-1.2.2\build\lib\gdata\service.py, line 1083, in Delete 'reason': server_response.reason, 'body': result_body} RequestError: {'status': 403, 'body': 'Target feed is read-only', 'reason': 'Forbidden'} what am i doing wrong? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Unable to Upload document using gdata-samples.java-1.29.0.java.zip
Can you provide http request/response headers? You may also want to download the latest version: http://code.google.com/p/gdata-java-client/downloads/list Eric On Mar 21, 2:50 am, Shiva shivaji.1...@gmail.com wrote: I am getting the same error, when I used an individual program containing the following piece of code, for uploading the document Code: DocsService service = new DocsService(Document List Demo); try { service.setUserCredentials(usern...@gmail.com, pass); // upload String filePath = path to the file test.doc; URL documentListFeedUrl = new URL(http://docs.google.com/ feeds/documents/private/full); DocumentEntry newDocument = new DocumentEntry(); File documentFile = new File(filePath); newDocument.setFile(documentFile); // Set the title for the new document. For this example we just use the // filename of the uploaded file. newDocument.setTitle(new PlainTextConstruct (documentFile.getName())); DocumentListEntry uploaded = service.insert (documentListFeedUrl, newDocument); } catch (Exception e1) { // TODO Auto-generated catch block e1.printStackTrace(); } Error: java.net.SocketException: Unexpected end of file from server at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java: 763) at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:626) at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:646) at sun.net.www.protocol.http.HttpURLConnection.getInputStream (HttpURLConnection.java:957) at java.net.HttpURLConnection.getResponseCode (HttpURLConnection.java:367) at com.google.gdata.client.http.HttpGDataRequest.checkResponse (HttpGDataRequest.java:480) at com.google.gdata.client.http.HttpGDataRequest.execute (HttpGDataRequest.java:460) at com.google.gdata.client.http.GoogleGDataRequest.execute (GoogleGDataRequest.java:534) at com.google.gdata.client.media.MediaService.insert (MediaService.java:353) at documentviewer.Main.main(Main.java:125) Is this is a bug ? On Mar 21, 12:58 pm, Shiva shivaji.1...@gmail.com wrote: Hi, I am able to list the documents in my account, using DocumentListDemo.java program in gdata-samples.java-1.29.0.java.zip. But when I try to upload a document (txt, doc,...), it is throwing error: [java] Command: Command: Command: Command: java.net.SocketException: Unexpected end of file from server [java] at sun.net.www.http.HttpClient.parseHTTPHeader (HttpClient.java:769) [java] at sun.net.www.http.HttpClient.parseHTTP (HttpClient.java:632) [java] at sun.net.www.http.HttpClient.parseHTTP (HttpClient.java:652) [java] at sun.net.www.protocol.http.HttpURLConnection.getInputStream (HttpURLConnection.java:1000) [java] at java.net.HttpURLConnection.getResponseCode (HttpURLConnection.java:373) [java] at com.google.gdata.client.http.HttpGDataRequest.checkResponse (HttpGDataRequest.java:479) [java] at com.google.gdata.client.http.HttpGDataRequest.execute (HttpGDataRequest.java:459) [java] Commands: [java] at com.google.gdata.client.http.GoogleGDataRequest.execute (GoogleGDataRequest.java:527) [java] at com.google.gdata.client.media.MediaService.insert (MediaService.java:339) [java] at sample.docs.DocumentListDemo.uploadFile (DocumentListDemo.java:227) [java] at sample.docs.DocumentListDemo.executeCommand (DocumentListDemo.java:260) [java] at sample.docs.DocumentListDemo.run (DocumentListDemo.java:296) [java] at sample.docs.DocumentListDemo.main (DocumentListDemo.java:332) Why this error is coming ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Keep getting 401 unauthorized error
You need to exchanged the single-use token for a session token: http://code.google.com/apis/gdata/authsub.html#AuthSubSessionTokendotNET Eric On Mar 17, 12:47 pm, tpre...@googlemail.com tpre...@googlemail.com wrote: the error is on line 38http://utilitybase.com/paste/12572 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Deleting permissions for a user doesn't work sometimes
I'm afraid we're delayed...again :( I'd rather not promise another date for obvious reasons. Re. the 2-5 seconds, I don't have a workaround for you. That's just a limitation of the API. Again, I think batch ACLs will help with some of these latency issues. Eric On Mar 16, 5:32 pm, Daniel Marashlian daniel...@gmail.com wrote: Eric, Any word on the deployment this week? Also, did you have any idea on my last post in this thread? thanks Daniel On Mar 12, 9:32 pm, Daniel Marashlian daniel...@gmail.com wrote: Eric, Do you have an explaintion of why modifying the ACL of a document takes 2-5 seconds? Or better yet have a work around where it takes less than a second? let me know :) thank you! Daniel On Mar 11, 11:46 am, Mattia Avancini incub...@gmail.com wrote: I'm agree with you, the transaction is very slow, specially for spreadsheets. I read somewhere that there other people confirm this. I think that you can't make batch asinchronously transaction. Previsuoly I forget to tell you a trick. To make work every call you make you must renew the authentication process every time, with client login works. I make a cycle that insert a list of ACL and it works with different role together. 2009/3/11 Daniel Marashlian daniel...@gmail.com not sure... Eric said they fixed it though :) I have a question on your end though... how long is it taking for each call? It's taking like 2-5 seconds when I try it (which is ridiculous). Do you know of anyway to speed up that transaction? Maybe to it asynchronously??? Daniel On Mar 11, 11:17 am, Mattia Avancini incub...@gmail.com wrote: I use Client Login different from you Daniel and I don't have any kind of problem. May be the problem is related to AuthSub Authentication? -- Avancini Mattia -- Avancini Mattia --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Action Empty trash
The API doesn't support 'emptying the trash'. You can only move documents into the trash. Please suggest that feature if you feel so inclined: http://code.google.com/p/gdata-issues/issues/entry?template=Documents%20List%20(Enhancement%20Request) Thanks, Eric On Mar 17, 6:19 am, Artem Beloglazov tema.onl...@gmail.com wrote: What does query string provide Empty trash action? Thanx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Bad Request
Good stuff :) On Mar 13, 4:46 am, josew29 jose...@gmail.com wrote: Hello Eric, Finally I found the solution. I not have to send the field etag if I'm using v2. Thank you very much, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: Error 404 when trying to move a file out of a folder
This issue should be fixed later this month. Stayed tuned for more updates (as they come). Regards, Eric On Mar 14, 2:47 pm, Clint offis...@gmail.com wrote: http://code.google.com/p/gdata-issues/issues/detail?id=1095 On Mar 14, 2:39 pm, Eric Bidelman api.e...@google.com wrote: We found an issue with creating folders and 404s a few days ago. I haven't mentioned this yet b/c your original post was about moving documents in/out of folders. Only certain users are seeing this bug, as the failure is based on what type of account (Apps vs. Google) that was being used. Can you open an issue on this?http://code.google.com/p/gdata-issues/issues/entry Thanks, Eric On Sat, Mar 14, 2009 at 2:35 PM, Clint offis...@gmail.com wrote: Another note - as I said above, when I use standard GMail account against GDocs it works great 100%. When I use Apps account it fails 100% with 404 On Mar 14, 2:21 pm, Clint offis...@gmail.com wrote: I tried adding the header, still fails. This is the entire code, what am I missing? DocumentsRequest request = null; GDataCredentials creds = new GDataCredentials (myUsername,myPWD); RequestSettings settings = new RequestSettings (myAppTest, creds); settings.AutoPaging = true; settings.PageSize = 100; request= new DocumentsRequest(settings); //Create the AtomCategory AtomCategory category = new AtomCategory(http:// schemas.google.com/docs/2007#folder, new AtomUri(http:// schemas.google.com/g/2005#kind)); category.Label = folder; //Create the AtomEntry AtomEntry folder = new AtomEntry(); folder.Categories.Add(category); folder.Title = new AtomTextConstruct (AtomTextConstructElementType.Title, My Folder); //Create the feed Uri Uri feedUri = new Uri(http://docs.google.com/feeds/ documents/private/full); request.Service.EntrySend(feedUri, folder, GDataRequestType.Insert); On Mar 14, 2:02 pm, Eric (Google) api.e...@google.com wrote: The Protocol guide has the most up to date info: http://code.google.com/apis/documents/docs/2.0/developers_guide_proto... We're working on updating the developer guides (including the .NET guide). Eric On Mar 14, 1:50 pm, Clint offis...@gmail.com wrote: Thanks for the reply Eric, I don't see anything in the documentation regarding setting the Version header. Can you please point me to the right place? Thanks, Clint On Mar 14, 11:27 am, Eric (Google) api.e...@google.com wrote: You're using v2? I don't see where you've set the version header (GData Version: 2) or are using the v=2 query param... Eric On Mar 14, 1:09 am, Clint offis...@gmail.com wrote: I also noticed that this error occurs only if I use my Google Apps account, if I use my Gmail account everything works fine! On Mar 14, 12:16 am, Clint offis...@gmail.com wrote: This code used to work wit the previous protocol version. Since upgrading I'm getting 404 when trying to move a file out of a folder.I'm able to move a file to a folder or to another folder. I'm sure 100% that the Uri's point to valit folder and file IDs. Code: strUri = http://docs.google.com/feeds/folders/private/full/folder %3A5dd5be61-12f8-43c4-b896-6af3eccbbe15/document %3Adgbhd4c3_2hkccwmdj; Uri feedUri = new Uri(strUri); GDataRequestFactory rf = m_service.Service.RequestFactory as GDataRequestFactory; rf.CustomHeaders.Add(GDataRequestFactory.IfMatch + :*); m_service.Service.Delete(feedUri); rf.CustomHeaders.Remove(GDataRequestFactory.IfMatch + :*); Network capture: - Http: Request, DELETE /feeds/folders/private/full/folder %3A5dd5be61-12f8-43c4-b896-6af3eccbbe15/document%3Adgbhd4c3_2hkccwmdj - Request: Command: DELETE + URI: /feeds/folders/private/full/folder%3A5dd5be61-12f8-43c4- b896-6af3eccbbe15/document%3Adgbhd4c3_2hkccwmdj ProtocolVersion: HTTP/1.1 Etag: * If-Match: * ContentType: application/atom+xml; charset=UTF-8 ... Thanks, Clint- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from
[Google-Docs-Data-APIs] Re: Using CTRL to select multiple columns
Hi, You'll want to post your question in the Google Docs Help forum: http://www.google.com/support/forum/p/Google+Docs?hl=en This group is for developers using the Spreadsheets/Docs APIs. Thanks, Eric On Mar 16, 7:54 am, Bimmer328 omal...@gmail.com wrote: Hello, How do I select multiple columns in Google Spreadsheets using the CTRL button on my keyboard just like I would on Microsoft Excel. Thanks, B --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---
[Google-Docs-Data-APIs] Re: How can I get the content of a file using Google Documents List Data API ?
In which language? The Protocol guide has information on how to export documents: http://code.google.com/apis/documents/docs/2.0/developers_guide_protocol.html#DownloadingDocs Eric On Mar 16, 2:02 am, samusc...@gmail.com samusc...@gmail.com wrote: How can I get the content of a file using Google Documents List Data API ?Which class and method should I use? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Docs Data APIs group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~--~~~~--~~--~--~---