Skip to content

Commit 2f38ad0

Browse files
author
Juraj Surman
committed
add method getNameById of spreadsheet
1 parent 1080711 commit 2f38ad0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/Client.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ public function __construct(GoogleServiceFactory $googleServiceFactory, ResultFa
3737
$this->resultFactory = $resultFactory;
3838
}
3939

40+
/**
41+
* @inheritdoc
42+
*/
43+
public function getNameById($spreadsheetId)
44+
{
45+
return $this->googleServiceFactory->createSheets()->spreadsheets->get($spreadsheetId)->getProperties()->getTitle();
46+
}
47+
4048

4149
/**
4250
* @inheritdoc

0 commit comments

Comments
 (0)