$url = 'https://sheets.googleapis.com/v4/spreadsheets/...';
$json= file_get_contents($url);
$obj = json_decode($json);
$obj = $obj->{'values'};
print_r( $obj);
Ответ из таблицы Google выглядит примерно так:
{ "range": "Recipes!D10:E10", "majorDimension": "ROWS", "values": [ [ "65", "122.9" ] ] }
После того, как я расшифрую ответ с помощью строк кода выше, он будет таким:
Array ( [0] => Array ( [0] => 65 [1] => 122.9 ) )
// How to extract the data "65" and "122.9" from this decoded response ?