Closed MilkTeaD closed 8 years ago
This method worked for me on the initial attempt. However the next time I attempted to run my php I received this Error
PHP Fatal error: Uncaught exception 'Google\Spreadsheet\UnauthorizedException' with message 'You need permission' in /var/www/html/vendor/asimlqt/php-google-spreadsheet-client/src/Google/Spreadsheet/DefaultServiceRequest.php:282
@GustavoA23 Did you allow the application to access the spreadsheet?
Yes, I was able to post into my spreadsheet the first time. My spreadsheet is published to web. EDIT: When I look at the revision history of my spreadsheet, It shows that the rows are being highlighted/chosen (and it accurately shows my service account name as the user editing), but nothing is inserted. So it seems to only have issues at the final step.
Stack trace:
thrown in /var/www/html/vendor/asimlqt/php-google-spreadsheet-client/src/Google/Spreadsheet/DefaultServiceRequest.php on line 282
create a service account download the JSON file
et voilà