我有这段代码正在工作,可以加载谷歌电子表格并从中加载一些数据。如果有问题的电子表格是公开的,我如何修改代码以不需要用户名/密码?
$key="keytothespreadsheet";
$user="test@example.com";
$pass="*****";
$authService = Zend_Gdata_Spreadsheets::AUTH_SERVICE_NAME;
$httpClient = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $authService);
$gdClient = new Zend_Gdata_Spreadsheets($httpClient);
$query = new Zend_Gdata_Spreadsheets_DocumentQuery();
$query->setSpreadsheetKey($key);
$feed = $gdClient->getWorksheetFeed($query);
print_r($feed);