asimlqt / php-google-spreadsheet-client

A PHP library for accessing and manipulating Google Spreadsheets
Other
544 stars 152 forks source link

added getById() in SpreadsheetFeed #97

Closed cchandurkar closed 8 years ago

cchandurkar commented 9 years ago

If drive has two sheets with similar name getByTitle() will always return the first sheet with the name specified. So there's no easy way to access second sheet. getById() will be helpful here as it will search sheet by its id which is unique.

wstoettinger commented 9 years ago

i was looking for this, thanks! but shouldn't it be possible to open a spreadsheet by ID directly without going though the feed? this would save an HTTP Request

asimlqt commented 8 years ago

This is possible in the new version: https://github.com/asimlqt/php-google-spreadsheet-client/blob/master/src/Google/Spreadsheet/SpreadsheetService.php#L87