W
W
WotanWeb2020-07-02 10:01:05
PHP
WotanWeb, 2020-07-02 10:01:05

Why doesn't getById work in Google SpreadsheetService but getByTitle works?

Tell me what could be the problem:
This works:

(new \Google\Spreadsheet\SpreadsheetService)
    ->getSpreadsheetFeed()
    ->getByTitle($new_file->name);


And now it's gone:

(new \Google\Spreadsheet\SpreadsheetService)
    ->getSpreadsheetFeed()
    ->getById($new_file->id);


I get an Exception

Google\Spreadsheet\Exception\SpreadsheetNotFoundException  "No message"

Id-shnik turns out like this: 1xxxJYYYprT4wE1aN-y-Xds34b5iPjcqFDGSq53kbuiM

The file itself is created successfully.

https://github.com/asimlqt/php-google-spreadsheet-...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question