Skip to content

Integration Google API into Nette Framework for better work with service accounts

License

Notifications You must be signed in to change notification settings

Kappa-org/Google

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kappa\Google

Integration Google API into Nette Framework for better work with service accounts

Requirements:

Installation:

The best way to install Kappa\Google is using Composer

$ 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();
	}

	// ...
}

About

Integration Google API into Nette Framework for better work with service accounts

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages