diff options
author | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2018-04-04 19:17:51 +0000 |
---|---|---|
committer | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2018-04-04 19:17:51 +0000 |
commit | e9a077a74215fb3e8e354403d2a9cbe93947001b (patch) | |
tree | 746cfdf1c0cdc8408b312870f881ed3684d8d60b /Postman/Postman-Mail/PostmanGmailApiModuleTransport.php | |
parent | ff0f11b11a728d9f4109b6989aa340f2f26a12e2 (diff) | |
download | Post-SMTP-e9a077a74215fb3e8e354403d2a9cbe93947001b.zip |
notification & new gmail client
git-svn-id: https://plugins.svn.wordpress.org/post-smtp/trunk@1852760 b8457f37-d9ea-0310-8a92-e5e31aec5664
Diffstat (limited to 'Postman/Postman-Mail/PostmanGmailApiModuleTransport.php')
-rw-r--r-- | Postman/Postman-Mail/PostmanGmailApiModuleTransport.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Postman/Postman-Mail/PostmanGmailApiModuleTransport.php b/Postman/Postman-Mail/PostmanGmailApiModuleTransport.php index acb760d..ab568ea 100644 --- a/Postman/Postman-Mail/PostmanGmailApiModuleTransport.php +++ b/Postman/Postman-Mail/PostmanGmailApiModuleTransport.php @@ -61,12 +61,11 @@ class PostmanGmailApiModuleTransport extends PostmanAbstractZendModuleTransport require_once 'PostmanGmailApiModuleZendMailTransport.php'; // Gmail Client includes - require_once 'google-api-php-client-1.1.2/src/Google/Client.php'; - require_once 'google-api-php-client-1.1.2/src/Google/Service/Gmail.php'; + require_once 'google-api-client/vendor/autoload.php'; // build the Gmail Client $authToken = PostmanOAuthToken::getInstance (); - $client = new Postman_Google_Client (); + $client = new Google_Client (); $client->setClientId ( $this->options->getClientId () ); $client->setClientSecret ( $this->options->getClientSecret () ); $client->setRedirectUri ( '' ); @@ -81,7 +80,7 @@ class PostmanGmailApiModuleTransport extends PostmanAbstractZendModuleTransport $client->setAccessToken ( json_encode ( $token ) ); // We only need permissions to compose and send emails $client->addScope ( "https://www.googleapis.com/auth/gmail.compose" ); - $service = new Postman_Google_Service_Gmail ( $client ); + $service = new Google_Service_Gmail ( $client ); $config [PostmanGmailApiModuleZendMailTransport::SERVICE_OPTION] = $service; return new PostmanGmailApiModuleZendMailTransport ( self::HOST, $config ); |