Skip to content

Commit

Permalink
add method getNameById of spreadsheet
Browse files Browse the repository at this point in the history
  • Loading branch information
Juraj Surman committed Feb 28, 2017
1 parent 1080711 commit 2f38ad0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2f38ad0

Please sign in to comment.