asimlqt / php-google-spreadsheet-client

A PHP library for accessing and manipulating Google Spreadsheets
Other
543 stars 154 forks source link

Unable to retreive public spreadsheet #199

Open PYDeret opened 4 years ago

PYDeret commented 4 years ago

As the exemple says, you're not required to authentify to retreive public spread sheets, just need the public id.

$serviceRequest = new DefaultServiceRequest("");
ServiceRequestFactory::setInstance($serviceRequest);

$spreadsheetService = new Google\Spreadsheet\SpreadsheetService();
$worksheetFeed = $spreadsheetService->getPublicSpreadsheet("spreadsheet-id");

But I'm getting the Access token is invalid error.

Maybe I've done something wrong.