library google
Integration Google API into Nette Framework for better work with service accounts
kappa/google
Integration Google API into Nette Framework for better work with service accounts
- Tuesday, September 9, 2014
- by Budry
- Repository
- 2 Watchers
- 0 Stars
- 181 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
Kappa\Google
Integration Google API into
Nette Framework for better work with
service accounts, (*1)
Requirements:
Installation:
The best way to install Kappa\Google is using Composer, (*2)
$ composer require kappa/doctrine:@dev
Usages
Configuration:
google:
appName: "Your app name"
scopes:
- https://www.googleapis.com/auth/calendar
clientId: "" # Your client ID
email: "" # Your client email
key: "" # path to key.p12 file
In presenter:
class BasePresenter extends Presenter
{
/**
* @var \Kappa\Google\Accounts\ServiceAccount
* @inject
*/
public $serviceAccount
public function actionDefault()
{
dump($this->serviceAccount->getClient()) // Returns logged client
die();
}
// ...
}