[Google-Docs-Data-APIs] Re: Get Content of a Document

2009-07-25 Thread faninator
I got it now. Ignore my previous post. Thanks! On Jul 25, 8:06 pm, faninator wrote: > Hi Eric, > > Thanks a lot for the help! It worked. Now I can download documents but > not spreadsheets. I tried changing the scope to > > $scope = 'http://docs.google.com/feeds/%20http:// > spreadsheets.google.

[Google-Docs-Data-APIs] Re: Get Content of a Document

2009-07-25 Thread faninator
Hi Eric, Thanks a lot for the help! It worked. Now I can download documents but not spreadsheets. I tried changing the scope to $scope = 'http://docs.google.com/feeds/%20http:// spreadsheets.google.com/feeds/'; but that didn't work. I also tried changing it to just spreadsheets to test spreadsh

[Google-Docs-Data-APIs] Re: Get Content of a Document

2009-07-23 Thread Eric Bidelman
Sounds definitely like an Auth issue, though I'm not surewhy you're having problems. Here's my full test page: entries[0]->content->getSrc(); $fileContents = download($docs, $contentLink, 'txt'); echo 'Contents of document "' . $feed->entries[0]->title . '":'; echo "$fileContents";

[Google-Docs-Data-APIs] Re: Get Content of a Document

2009-07-22 Thread faninator
Hi Eric, Thanks for the reply. I'm not trying to download a spreadsheet. I also changed the feed URI to the correct one. However when I echo out the content, I still get the login page? This feels like some authentication issue. I copied your code verbatim, and tried many other tricks to get the

[Google-Docs-Data-APIs] Re: Get Content of a Document

2009-07-22 Thread Eric (Google)
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

[Google-Docs-Data-APIs] Re: Get Content of a Document

2009-07-22 Thread faninator
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 th

[Google-Docs-Data-APIs] Re: Get Content of a Document

2009-07-15 Thread Eric (Google)
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)" wrote: > Hi, > > You should be using the 's content src link > and not the alternate (/View?docID=...) link that > points to Google Docs.  Having said that,

[Google-Docs-Data-APIs] Re: Get Content of a Document

2009-07-15 Thread Eric (Google)
Hi, You should be using the '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_g

[Google-Docs-Data-APIs] Re: Get Content of a Document

2009-07-14 Thread infinitas
$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=_latest&hgd=1"); More or less, this is what I have *

[Google-Docs-Data-APIs] Re: Get Content of a Document

2009-07-13 Thread Eric Bidelman
What have you tried? On Mon, Jul 13, 2009 at 7:53 PM, infinitas 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 s