0

我已加载 Zend Gdata 库并使用示例成功读取了我的 Google 电子表格中的行,但 updateCell 示例继续失败。

检查 updateCell 似乎不在库中。

有人遇到过这个问题吗?我正在使用 Zend Gdata-1.12.0

$row=1;
$col=1;
$inputValue=99;
$worksheetId="od6";
$googleDocs->updateCell ( 1, 1, 'test', $Key, $worksheetId);
$query = new Zend_Gdata_Spreadsheets_DocumentQuery();
$query->setSpreadsheetKey($key);
$feed = $spreadSheetService->getWorksheetFeed($query);
$updatedCell = updateCell($row,$col,$inputValue,$Key,$worksheetId);
4

1 回答 1

1

updateCell 方法是$spreadSheetService 的一部分,需要在调用updateCell 的前面加上$spreadSheetService->。

$updatedCell = $spreadSheetService->updateCell($row,$col,$inputValue,$Key,$worksheetId);
于 2013-05-23T23:20:45.260 回答