In the examples above, I still need to be logged in. How can I access a public or "Anyone with a link" spreadsheet without logging in? I'm trying to avoid having to log in with credentials when one doesn't need them from the browser GUI anyway.
I'm using Zend PHP Framework...there aren't any examples of this. Since I have the "Anyone with a link" URL, assume I have the $spreadsheetKey provided in that URL. (And since I can get it beforehand, assume I have the $worksheetId too.) Specifically, here's the code. Can I eliminate the need to provide a username/passowrd in Zend_Gdata_ClientLogin::getHttpClient when accessing a public spreadsheet? $spreadsheetKey = 'IKnowThisAlready'; $worksheetId = 'AndIKnowThisToo'; $service = Zend_Gdata_Spreadsheets::AUTH_SERVICE_NAME; // ?? How does this change for a public spreadsheet ?? $user = 'irrelev...@foo.com'; $password = 'DontNeedThisAnyway'; *$client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $service); * $spreadsheetService = new Zend_Gdata_Spreadsheets($client); $query = new Zend_Gdata_Spreadsheets_ListQuery(); $query->setSpreadsheetKey($spreadsheetKey); $query->setWorksheetId($worksheetId); $listFeed = $spreadsheetService->getListFeed($query);