Googlesheet api php - 过滤查询

时间:2017-05-25 09:05:08

标签: php google-sheets google-api google-sheets-api

我想从谷歌电子表格中获取过滤数据。例如,如果我的列名称为John, David, John =>我希望能够获得具有Name = John

的所有行
$range = 'Sheet1!A2:A4';
$response = $service->spreadsheets_values->get($spreadsheetId, $range);
$values = $response->getValues();

这可以获得范围内的所有值。我不知道如何根据Name值添加过滤器。

任何帮助表示赞赏

0 个答案:

没有答案