I would like to ask if its possible to fetch all the content of a spreadsheet in google docs via api. This is my code currently:
$sheets = Google::make('sheets');
$spreadsheet_id = "19L9K1uMgAjwIVHrpFftQyQ0n00lVIzDYspZx8ZpnnFk";
print_r($sheets->spreadsheets_values->get($spreadsheet_id,"A1:B3")->getValues());
I can fetch all the rows in the spreadsheet using the above code but my problem is I need to manually add the Cell Number in the second parameter of "get" so basically when I add an additional rows in the spreadsheet I need to manually update my code based on the number of cells. Is there a way that I can fetch all rows without manually declaring the cells?
This is the google api that I used: https://github.com/pulkitjalan/google-apiclient
Thanks!