Added GMAIL_SEND scope request for Google API. Details in README.

This commit is contained in:
2016-08-04 15:40:19 +02:00
parent 320c58be50
commit f237e37a28
2 changed files with 5 additions and 1 deletions

View File

@ -11,8 +11,10 @@ class SessionManager
{
$this->googleAuthValid = false;
$this->client = new \Google_Client();
$this->client->setApplicationName('Fake Reservation System');
$this->client->setAuthConfigFile('client_secret.json');
$this->client->addScope(\Google_Service_Oauth2::USERINFO_EMAIL);
$this->client->addScope(\Google_Service_Gmail::GMAIL_SEND);
session_start();
}