Working through this tutorial,
http://code.google.com/apis/maps/articles/communitymap.html

I see that the Zend framework has changed since this tutorial was
posted.  I attempted to update the communitymap_globals.php functions
as shown:

Zend_Loader::loadClass('Zend_Gdata_Docs_Query');

function getWkshtListFeed($gdClient, $ssKey, $wkshtId,
$queryString=null) {
  $query = NULL;
  if ($queryString) {
    $query = new Zend_Gdata_Docs_Query();
    $query->setQuery($queryString);
  }
  $feed = $gdClient->getSpreadsheetFeed($query);
  return $feed;
}

During testing, this appears to work fine as long as no query string
is supplied to getWkshtListFeed().  If a query string is supplied, the
following error always occurs:

Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with
message 'Expected response code 200, got 401 <HTML> <HEAD>
<TITLE>Token invalid</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF"
TEXT="#000000"> <H1>Token invalid</H1> <H2>Error 401</H2> </BODY> </
HTML> ' in /home/content/user/html/library/Zend/Gdata/App.php:700
Stack trace: #0 /home/content/user/library/Zend/Gdata.php(219):
Zend_Gdata_App->performHttpRequest('GET', 'http://docs.goo...', Array,
NULL, NULL, NULL) #1 /home/content/user/library/Zend/Gdata/App.php
(861): Zend_Gdata->performHttpRequest('GET', 'http://docs.goo...',
Array) #2 /home/content/user/library/Zend/Gdata/App.php(754):
Zend_Gdata_App->get('http://docs.goo...', NULL) #3 /home/content/user/
library/Zend/Gdata/App.php(205): Zend_Gdata_App->importUrl('http://
docs.goo...', 'Zend_Gdata_Spre...', NULL) # in /home/content/user/
library/Zend/Gdata/App.php on line 700

Any help is appreciated!

Regards,
Erich
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to