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.
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
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";
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
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
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
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,
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
$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 *
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
10 matches
Mail list logo