Googlesheet api php - filter query

纵然是瞬间 提交于 2019-12-21 23:05:18

问题


I would like to get filtered data from a google spreadsheet. For example if I have a column Name with values John, David, John => I would like to be able to get all the rows that have the Name = John.

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

This gets me all the values within the range. I don't know how can I add a filter depending on the Name value.

Any help appreciated

来源:https://stackoverflow.com/questions/44176515/googlesheet-api-php-filter-query

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!