How do we read the data from a public google spreadsheet using Zend_Gdata

Posted by bobo on Stack Overflow See other posts from Stack Overflow or by bobo
Published on 2010-05-09T08:26:04Z Indexed on 2010/05/09 8:28 UTC
Read the original article Hit count: 362

I have read the examples here: http://framework.zend.com/manual/en/zend.gdata.spreadsheets.html

But those examples assume the spreadsheet to be read needs authentication:

$service = Zend_Gdata_Spreadsheets::AUTH_SERVICE_NAME;
$client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $service);
$spreadsheetService = new Zend_Gdata_Spreadsheets($client);
$feed = $spreadsheetService->getSpreadsheetFeed();

The spreadsheet I am going to read from is a public one, so I don't really need to provide any authentication right? And what I need to provide is just the url of the spreadsheet.

I tried to read the class description here but still have no idea how it can be done: http://framework.zend.com/apidoc/core/Zend_Gdata/Spreadsheets/Zend_Gdata_Spreadsheets.html

© Stack Overflow or respective owner

Related posts about zend-framework

Related posts about zend-gdata