diff --git a/Services/OAuth.php b/Services/OAuth.php index cba79ee..639d7b2 100644 --- a/Services/OAuth.php +++ b/Services/OAuth.php @@ -21,11 +21,6 @@ class OAuth */ private $domainCache; - /** - * @var string - */ - private $userIdCache; - /** * @param \Google_Service_Oauth2 $oAuth */ @@ -45,16 +40,4 @@ public function resolveDomain() return $this->domainCache; } - - /** - * @return string - */ - public function resolveUserId() - { - if (!isset($this->userIdCache)) { - $this->userIdCache = $this->oAuth->userinfo_v2_me->get()->getId(); - } - - return $this->userIdCache; - } } diff --git a/Services/ServiceAccount.php b/Services/ServiceAccount.php index df6d817..6d78f15 100644 --- a/Services/ServiceAccount.php +++ b/Services/ServiceAccount.php @@ -9,15 +9,12 @@ class ServiceAccount */ const SCOPES = [ \Google_Service_Gmail::GMAIL_COMPOSE, - \Google_Service_Gmail::GMAIL_READONLY, \Google_Service_Gmail::GMAIL_SEND, \Google_Service_Gmail::GMAIL_MODIFY, \Google_Service_Directory::ADMIN_DIRECTORY_USER, \Google_Service_Directory::ADMIN_DIRECTORY_DOMAIN_READONLY, \Google_Service_Oauth2::USERINFO_PROFILE, \Google_Service_Oauth2::USERINFO_EMAIL, - \Google_Service_Oauth2::PLUS_LOGIN, - \Google_Service_Oauth2::PLUS_ME, ]; /**