【发布时间】:2017-09-20 12:37:02
【问题描述】:
我在 Google Sheet 中更新值修改了这个 quiqstartfile:https://developers.google.com/sheets/api/quickstart/php 更新后,我需要来自谷歌 api 的响应,一切正常(它没有错误)。如何测试更新成功?怎么做? 我试过了:
$result = $service->spreadsheets_values->update($spreadsheetId, $range, $body, $params);
$test=$result->UpdateValuesResponse();
printf($test);
并且有错误:
PHP 致命错误:未捕获的错误:调用未定义的方法 Google_Service_Sheets_UpdateValuesResponse::UpdateValuesResponse() /var/www/html/writegs.php:101 堆栈跟踪: > #0 {main} 在 /var/www/html/writegs.php 第 101 行抛出
【问题讨论】:
标签: php google-sheets-api