diff --git a/src/Client.php b/src/Client.php index 9452a03..a9bb95c 100644 --- a/src/Client.php +++ b/src/Client.php @@ -37,6 +37,14 @@ public function __construct(GoogleServiceFactory $googleServiceFactory, ResultFa $this->resultFactory = $resultFactory; } + /** + * @inheritdoc + */ + public function getNameById($spreadsheetId) + { + return $this->googleServiceFactory->createSheets()->spreadsheets->get($spreadsheetId)->getProperties()->getTitle(); + } + /** * @inheritdoc