I am using the google drive php library to access a google sheet on the api drive.
The first row of the sheet contains the column headings.
$httpClient = new GuzzleHttp\Client(['headers' => $headers]);
// This code works just fine and retrieves all rows of the sheet:
$resp = $httpClient->request('GET', $url);
However, I want to retrieve a subset of the rows based on the value in one column. I have tried each of these methods and all of them return all the rows instead of the subset.
$resp = $httpClient->request('GET', $url, ['query' => 'county=Sonoma']);
$resp = $httpClient->request('GET', $url, ['query' => ['county' => 'Sonoma']]);
$resp = $httpClient->request('GET', $url.'?county=Sonoma');
I am beginning to think I need to reference the column 'county' in a different way. Does anyone have any ideas of how I can make this work?
Thanks in advance.