Issues

ZF-6874: Export spreadsheet in html

Issue Type: Bug Created: 2009-06-01T07:44:37.000+0000 Last Updated: 2009-06-01T11:41:04.000+0000 Status: Closed Fix version(s): Reporter: Artem Beloglazov (artem_b) Assignee: Trevor Johns (tjohns) Tags: - Zend_Gdata

Related issues: Attachments:

Description

I have Zend FW v.1.8.2 and can`t request clean html version of gdata spreadsheet(xls). My code:

<pre class="highlight">

try{
  $feed = $docs->getDocumentListFeed('<a href="http://docs.google.com/feeds/documents/private/full?title=SOME_TITLE.xls">http://docs.google.com/feeds/documents/…</a>');
}catch (Zend_Exception $e) {
  echo $e->getMessage();
  return false;
}
$entry = $feed->getEntry();
$entry = $entry<a href="http://code.google.com/intl/ru/apis/documents/docs/2.0/reference.html#ExportParameters">0];
$src = $entry->getContent()->getSrc();
try{
  $response = $docs->get($src);
}catch(Zend_Exception $e) {
  echo $e->getMessage();
}
echo $response->getBody();

</a>

Value of $src - 'http://spreadsheets.google.com/feeds/download/…' Thus the correct query
under [Reference guide and it works with .doc-files, but when request export of .xls-files return the authorization page. I post this issue because in browser(authorized) the above query($src) works fine.

Comments

Posted by Eric Bidelman (api.eric) on 2009-06-01T09:48:54.000+0000

This is likely not a bug. You need a valid AuthSub/OAuth token to export spreadsheets:

http://code.google.com/apis/documents/… " The server to use when downloading spreadsheets is http://spreadsheets.google.com (as opposed to http://docs.google.com). Therefore the previous GET request would be sent to: http://spreadsheets.google.com/feeds/download/…."

I would request a multi-scoped token for both http://spreadsheets.google.com/feeds/ and http://docs.google.com/feeds/

Posted by Trevor Johns (tjohns) on 2009-06-01T11:40:58.000+0000

Closing as "Not an issue".

As Eric mentioned, you likely need to request a mutli-scope token. If you continue to have problems after doing that, please feel free to update this issue with more information.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts