WP Mail SMTP by WPForms - Version 1.8.1

Version Description

  • 2019-12-13 =
  • Fixed: Revert Guzzle version to 6.4.1 because Sendinblue and Gmail mailers may experience issues under certain circumstances while sending emails (not all sites are affected).
  • Fixed: Make compatible the WordPress PhpMailer class inline attachments management with the Sendgrid API.
Download this release

Release Info

Developer slaFFik
Plugin Icon 128x128 WP Mail SMTP by WPForms
Version 1.8.1
Comparing to
See all releases

Code changes from version 1.8.0 to 1.8.1

Files changed (135) hide show
  1. assets/languages/wp-mail-smtp.pot +2 -2
  2. readme.txt +5 -1
  3. src/Providers/Sendgrid/Mailer.php +7 -5
  4. vendor/autoload.php +1 -1
  5. vendor/composer/autoload_psr4.php +0 -1
  6. vendor/composer/autoload_real.php +7 -7
  7. vendor/composer/autoload_static.php +5 -10
  8. vendor/google/apiclient-services/LICENSE +203 -203
  9. vendor/google/apiclient-services/src/Google/Service/Gmail.php +1219 -1219
  10. vendor/google/apiclient-services/src/Google/Service/Gmail/AutoForwarding.php +48 -48
  11. vendor/google/apiclient-services/src/Google/Service/Gmail/BatchDeleteMessagesRequest.php +31 -31
  12. vendor/google/apiclient-services/src/Google/Service/Gmail/BatchModifyMessagesRequest.php +49 -49
  13. vendor/google/apiclient-services/src/Google/Service/Gmail/Delegate.php +39 -39
  14. vendor/google/apiclient-services/src/Google/Service/Gmail/Draft.php +46 -46
  15. vendor/google/apiclient-services/src/Google/Service/Gmail/Filter.php +62 -62
  16. vendor/google/apiclient-services/src/Google/Service/Gmail/FilterAction.php +49 -49
  17. vendor/google/apiclient-services/src/Google/Service/Gmail/FilterCriteria.php +102 -102
  18. vendor/google/apiclient-services/src/Google/Service/Gmail/ForwardingAddress.php +39 -39
  19. vendor/google/apiclient-services/src/Google/Service/Gmail/History.php +111 -111
  20. vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelAdded.php +47 -47
  21. vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelRemoved.php +47 -47
  22. vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageAdded.php +37 -37
  23. vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageDeleted.php +37 -37
  24. vendor/google/apiclient-services/src/Google/Service/Gmail/ImapSettings.php +57 -57
  25. vendor/google/apiclient-services/src/Google/Service/Gmail/Label.php +118 -118
  26. vendor/google/apiclient-services/src/Google/Service/Gmail/LabelColor.php +39 -39
  27. vendor/google/apiclient-services/src/Google/Service/Gmail/LanguageSettings.php +30 -30
  28. vendor/google/apiclient-services/src/Google/Service/Gmail/ListDelegatesResponse.php +38 -38
  29. vendor/google/apiclient-services/src/Google/Service/Gmail/ListDraftsResponse.php +56 -56
  30. vendor/google/apiclient-services/src/Google/Service/Gmail/ListFiltersResponse.php +38 -38
  31. vendor/google/apiclient-services/src/Google/Service/Gmail/ListForwardingAddressesResponse.php +38 -38
  32. vendor/google/apiclient-services/src/Google/Service/Gmail/ListHistoryResponse.php +56 -56
  33. vendor/google/apiclient-services/src/Google/Service/Gmail/ListLabelsResponse.php +38 -38
  34. vendor/google/apiclient-services/src/Google/Service/Gmail/ListMessagesResponse.php +56 -56
  35. vendor/google/apiclient-services/src/Google/Service/Gmail/ListSendAsResponse.php +38 -38
  36. vendor/google/apiclient-services/src/Google/Service/Gmail/ListSmimeInfoResponse.php +38 -38
  37. vendor/google/apiclient-services/src/Google/Service/Gmail/ListThreadsResponse.php +56 -56
  38. vendor/google/apiclient-services/src/Google/Service/Gmail/Message.php +110 -110
  39. vendor/google/apiclient-services/src/Google/Service/Gmail/MessagePart.php +97 -97
  40. vendor/google/apiclient-services/src/Google/Service/Gmail/MessagePartBody.php +48 -48
  41. vendor/google/apiclient-services/src/Google/Service/Gmail/MessagePartHeader.php +39 -39
  42. vendor/google/apiclient-services/src/Google/Service/Gmail/ModifyMessageRequest.php +40 -40
  43. vendor/google/apiclient-services/src/Google/Service/Gmail/ModifyThreadRequest.php +40 -40
  44. vendor/google/apiclient-services/src/Google/Service/Gmail/PopSettings.php +39 -39
  45. vendor/google/apiclient-services/src/Google/Service/Gmail/Profile.php +57 -57
  46. vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php +71 -71
  47. vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php +130 -130
  48. vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php +61 -61
  49. vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php +120 -120
  50. vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php +229 -229
  51. vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessagesAttachments.php +44 -44
  52. vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php +184 -184
  53. vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsDelegates.php +119 -119
  54. vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsFilters.php +86 -86
  55. vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php +97 -97
  56. vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php +162 -162
  57. vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAsSmimeInfo.php +115 -115
  58. vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php +135 -135
  59. vendor/google/apiclient-services/src/Google/Service/Gmail/SendAs.php +109 -109
  60. vendor/google/apiclient-services/src/Google/Service/Gmail/SmimeInfo.php +84 -84
  61. vendor/google/apiclient-services/src/Google/Service/Gmail/SmtpMsa.php +66 -66
  62. vendor/google/apiclient-services/src/Google/Service/Gmail/Thread.php +65 -65
  63. vendor/google/apiclient-services/src/Google/Service/Gmail/VacationSettings.php +93 -93
  64. vendor/google/apiclient-services/src/Google/Service/Gmail/WatchRequest.php +49 -49
  65. vendor/google/apiclient-services/src/Google/Service/Gmail/WatchResponse.php +39 -39
  66. vendor/guzzlehttp/guzzle/Dockerfile +18 -18
  67. vendor/guzzlehttp/guzzle/LICENSE +19 -19
  68. vendor/guzzlehttp/guzzle/phpstan-baseline.neon +0 -1412
  69. vendor/guzzlehttp/guzzle/src/Client.php +5 -114
  70. vendor/guzzlehttp/guzzle/src/ClientInterface.php +2 -5
  71. vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php +2 -4
  72. vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php +3 -3
  73. vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php +91 -91
  74. vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php +72 -72
  75. vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php +403 -403
  76. vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php +27 -27
  77. vendor/guzzlehttp/guzzle/src/Exception/ClientException.php +9 -9
  78. vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php +37 -37
  79. vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php +23 -23
  80. vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php +7 -7
  81. vendor/guzzlehttp/guzzle/src/Exception/RequestException.php +30 -5
  82. vendor/guzzlehttp/guzzle/src/Exception/SeekException.php +27 -27
  83. vendor/guzzlehttp/guzzle/src/Exception/ServerException.php +9 -9
  84. vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php +6 -6
  85. vendor/guzzlehttp/guzzle/src/Exception/TransferException.php +6 -6
  86. vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php +5 -10
  87. vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php +27 -27
  88. vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php +45 -45
  89. vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php +2 -16
  90. vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php +92 -92
  91. vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php +1 -6
  92. vendor/guzzlehttp/guzzle/src/Handler/Proxy.php +55 -55
  93. vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php +1 -1
  94. vendor/guzzlehttp/guzzle/src/HandlerStack.php +1 -5
  95. vendor/guzzlehttp/guzzle/src/MessageFormatter.php +0 -5
  96. vendor/guzzlehttp/guzzle/src/Middleware.php +254 -254
  97. vendor/guzzlehttp/guzzle/src/Pool.php +1 -10
  98. vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php +0 -5
  99. vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php +2 -14
  100. vendor/guzzlehttp/guzzle/src/RequestOptions.php +0 -8
  101. vendor/guzzlehttp/guzzle/src/RetryMiddleware.php +2 -15
  102. vendor/guzzlehttp/guzzle/src/TransferStats.php +6 -6
  103. vendor/guzzlehttp/guzzle/src/UriTemplate.php +237 -237
  104. vendor/guzzlehttp/guzzle/src/functions.php +1 -1
  105. vendor/guzzlehttp/guzzle/src/functions_include.php +6 -6
  106. vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php +1 -3
  107. vendor/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php +2 -3
  108. vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php +2 -2
  109. vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php +1 -1
  110. vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php +1 -1
  111. vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php +125 -4
  112. vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php +4 -5
  113. vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php +0 -19
  114. vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php +2 -3
  115. vendor/monolog/monolog/src/Monolog/Handler/CubeHandler.php +2 -3
  116. vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php +11 -41
  117. vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php +14 -44
  118. vendor/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php +1 -2
  119. vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php +1 -2
  120. vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php +1 -2
  121. vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php +1 -2
  122. vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php +11 -42
  123. vendor/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php +2 -7
  124. vendor/monolog/monolog/src/Monolog/Handler/SlackHandler.php +1 -2
  125. vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php +1 -2
  126. vendor/monolog/monolog/src/Monolog/Utils.php +0 -134
  127. vendor/phpseclib/phpseclib/LICENSE +19 -19
  128. vendor/phpseclib/phpseclib/phpseclib/Crypt/AES.php +126 -126
  129. vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA.php +3201 -3201
  130. vendor/phpseclib/phpseclib/phpseclib/Crypt/Random.php +274 -274
  131. vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php +936 -936
  132. vendor/phpseclib/phpseclib/phpseclib/bootstrap.php +16 -16
  133. vendor/phpseclib/phpseclib/phpseclib/openssl.cnf +6 -6
  134. vendor/phpseclib/phpseclib/travis/code_coverage_id_rsa +0 -30
  135. wp_mail_smtp.php +2 -2
assets/languages/wp-mail-smtp.pot CHANGED
@@ -1,13 +1,13 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: WP Mail SMTP 1.8.0\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-mail-smtp\n"
5
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
6
  "Language-Team: LANGUAGE <LL@li.org>\n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
10
- "POT-Creation-Date: 2019-12-12T16:09:57+02:00\n"
11
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
  "X-Generator: WP-CLI 2.2.0\n"
13
  "X-Domain: wp-mail-smtp\n"
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: WP Mail SMTP 1.8.1\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-mail-smtp\n"
5
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
6
  "Language-Team: LANGUAGE <LL@li.org>\n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
10
+ "POT-Creation-Date: 2019-12-13T13:37:05+02:00\n"
11
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
  "X-Generator: WP-CLI 2.2.0\n"
13
  "X-Domain: wp-mail-smtp\n"
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: wpforms, jaredatch, smub, slaFFik
3
  Tags: smtp, wp mail smtp, wordpress smtp, gmail smtp, sendgrid smtp, mailgun smtp, mail, mailer, phpmailer, wp_mail, email, mailgun, sengrid, gmail, wp smtp
4
  Requires at least: 4.9
5
  Tested up to: 5.3
6
- Stable tag: 1.8.0
7
  Requires PHP: 5.3
8
 
9
  The most popular WordPress SMTP and PHP Mailer plugin. Trusted by over 1 million sites.
@@ -220,6 +220,10 @@ By all means please contact us to discuss features or options you'd like to see
220
 
221
  == Changelog ==
222
 
 
 
 
 
223
  = 1.8.0 - 2019-12-12 =
224
  * Added: New recommended mailer: Pepipost.
225
  * Added: "Suggest a Mailer" link in a list of mailers to send us your ideas about new ones.
3
  Tags: smtp, wp mail smtp, wordpress smtp, gmail smtp, sendgrid smtp, mailgun smtp, mail, mailer, phpmailer, wp_mail, email, mailgun, sengrid, gmail, wp smtp
4
  Requires at least: 4.9
5
  Tested up to: 5.3
6
+ Stable tag: 1.8.1
7
  Requires PHP: 5.3
8
 
9
  The most popular WordPress SMTP and PHP Mailer plugin. Trusted by over 1 million sites.
220
 
221
  == Changelog ==
222
 
223
+ = 1.8.1 - 2019-12-13 =
224
+ * Fixed: Revert Guzzle version to 6.4.1 because Sendinblue and Gmail mailers may experience issues under certain circumstances while sending emails (not all sites are affected).
225
+ * Fixed: Make compatible the WordPress PhpMailer class inline attachments management with the Sendgrid API.
226
+
227
  = 1.8.0 - 2019-12-12 =
228
  * Added: New recommended mailer: Pepipost.
229
  * Added: "Suggest a Mailer" link in a list of mailers to send us your ideas about new ones.
src/Providers/Sendgrid/Mailer.php CHANGED
@@ -273,12 +273,14 @@ class Mailer extends MailerAbstract {
273
  continue;
274
  }
275
 
 
 
276
  $data[] = array(
277
- 'content' => base64_encode( $file ),
278
- 'type' => $attachment[4],
279
- 'filename' => $attachment[2],
280
- 'disposition' => $attachment[6],
281
- 'content_id' => $attachment[7],
282
  );
283
  }
284
 
273
  continue;
274
  }
275
 
276
+ $filetype = str_replace( ';', '', trim( $attachment[4] ) );
277
+
278
  $data[] = array(
279
+ 'content' => base64_encode( $file ), // string, 1 character.
280
+ 'type' => $filetype, // string, no ;, no CRLF.
281
+ 'filename' => empty( $attachment[2] ) ? 'file-' . wp_hash( microtime() ) . '.' . $filetype : trim( $attachment[2] ), // required string, no CRLF.
282
+ 'disposition' => in_array( $attachment[6], array( 'inline', 'attachment' ), true ) ? $attachment[6] : 'attachment', // either inline or attachment.
283
+ 'content_id' => empty( $attachment[7] ) ? '' : trim( (string) $attachment[7] ), // string, no CRLF.
284
  );
285
  }
286
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit84925637ca46a89b245a3fe4d9646ae4::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit4589a9f05a03f0a29add21e0e493a064::getLoader();
vendor/composer/autoload_psr4.php CHANGED
@@ -7,7 +7,6 @@ $baseDir = dirname($vendorDir);
7
 
8
  return array(
9
  'phpseclib\\' => array($vendorDir . '/phpseclib/phpseclib/phpseclib'),
10
- 'Wikimedia\\Composer\\' => array($vendorDir . '/wikimedia/composer-merge-plugin/src'),
11
  'WPMailSMTP\\' => array($baseDir . '/src'),
12
  'SendinBlue\\Client\\' => array($vendorDir . '/sendinblue/api-v3-sdk/lib'),
13
  'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'),
7
 
8
  return array(
9
  'phpseclib\\' => array($vendorDir . '/phpseclib/phpseclib/phpseclib'),
 
10
  'WPMailSMTP\\' => array($baseDir . '/src'),
11
  'SendinBlue\\Client\\' => array($vendorDir . '/sendinblue/api-v3-sdk/lib'),
12
  'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'),
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit84925637ca46a89b245a3fe4d9646ae4
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit84925637ca46a89b245a3fe4d9646ae4
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit84925637ca46a89b245a3fe4d9646ae4', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit84925637ca46a89b245a3fe4d9646ae4', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticInit84925637ca46a89b245a3fe4d9646ae4::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
@@ -48,19 +48,19 @@ class ComposerAutoloaderInit84925637ca46a89b245a3fe4d9646ae4
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
- $includeFiles = Composer\Autoload\ComposerStaticInit84925637ca46a89b245a3fe4d9646ae4::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
- composerRequire84925637ca46a89b245a3fe4d9646ae4($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
- function composerRequire84925637ca46a89b245a3fe4d9646ae4($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit4589a9f05a03f0a29add21e0e493a064
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit4589a9f05a03f0a29add21e0e493a064', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit4589a9f05a03f0a29add21e0e493a064', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInit4589a9f05a03f0a29add21e0e493a064::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
+ $includeFiles = Composer\Autoload\ComposerStaticInit4589a9f05a03f0a29add21e0e493a064::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
+ composerRequire4589a9f05a03f0a29add21e0e493a064($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
+ function composerRequire4589a9f05a03f0a29add21e0e493a064($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit84925637ca46a89b245a3fe4d9646ae4
8
  {
9
  public static $files = array (
10
  '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
@@ -21,7 +21,6 @@ class ComposerStaticInit84925637ca46a89b245a3fe4d9646ae4
21
  ),
22
  'W' =>
23
  array (
24
- 'Wikimedia\\Composer\\' => 19,
25
  'WPMailSMTP\\' => 11,
26
  ),
27
  'S' =>
@@ -60,10 +59,6 @@ class ComposerStaticInit84925637ca46a89b245a3fe4d9646ae4
60
  array (
61
  0 => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib',
62
  ),
63
- 'Wikimedia\\Composer\\' =>
64
- array (
65
- 0 => __DIR__ . '/..' . '/wikimedia/composer-merge-plugin/src',
66
- ),
67
  'WPMailSMTP\\' =>
68
  array (
69
  0 => __DIR__ . '/../..' . '/src',
@@ -136,10 +131,10 @@ class ComposerStaticInit84925637ca46a89b245a3fe4d9646ae4
136
  public static function getInitializer(ClassLoader $loader)
137
  {
138
  return \Closure::bind(function () use ($loader) {
139
- $loader->prefixLengthsPsr4 = ComposerStaticInit84925637ca46a89b245a3fe4d9646ae4::$prefixLengthsPsr4;
140
- $loader->prefixDirsPsr4 = ComposerStaticInit84925637ca46a89b245a3fe4d9646ae4::$prefixDirsPsr4;
141
- $loader->prefixesPsr0 = ComposerStaticInit84925637ca46a89b245a3fe4d9646ae4::$prefixesPsr0;
142
- $loader->classMap = ComposerStaticInit84925637ca46a89b245a3fe4d9646ae4::$classMap;
143
 
144
  }, null, ClassLoader::class);
145
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit4589a9f05a03f0a29add21e0e493a064
8
  {
9
  public static $files = array (
10
  '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
21
  ),
22
  'W' =>
23
  array (
 
24
  'WPMailSMTP\\' => 11,
25
  ),
26
  'S' =>
59
  array (
60
  0 => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib',
61
  ),
 
 
 
 
62
  'WPMailSMTP\\' =>
63
  array (
64
  0 => __DIR__ . '/../..' . '/src',
131
  public static function getInitializer(ClassLoader $loader)
132
  {
133
  return \Closure::bind(function () use ($loader) {
134
+ $loader->prefixLengthsPsr4 = ComposerStaticInit4589a9f05a03f0a29add21e0e493a064::$prefixLengthsPsr4;
135
+ $loader->prefixDirsPsr4 = ComposerStaticInit4589a9f05a03f0a29add21e0e493a064::$prefixDirsPsr4;
136
+ $loader->prefixesPsr0 = ComposerStaticInit4589a9f05a03f0a29add21e0e493a064::$prefixesPsr0;
137
+ $loader->classMap = ComposerStaticInit4589a9f05a03f0a29add21e0e493a064::$classMap;
138
 
139
  }, null, ClassLoader::class);
140
  }
vendor/google/apiclient-services/LICENSE CHANGED
@@ -1,203 +1,203 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright [yyyy] [name of copyright owner]
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
202
-
203
-
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
202
+
203
+
vendor/google/apiclient-services/src/Google/Service/Gmail.php CHANGED
@@ -1,1219 +1,1219 @@
1
- <?php
2
- /*
3
- * Copyright 2014 Google Inc.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6
- * use this file except in compliance with the License. You may obtain a copy of
7
- * the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14
- * License for the specific language governing permissions and limitations under
15
- * the License.
16
- */
17
-
18
- /**
19
- * Service definition for Gmail (v1).
20
- *
21
- * <p>
22
- * Access Gmail mailboxes including sending user email.</p>
23
- *
24
- * <p>
25
- * For more information about this service, see the API
26
- * <a href="https://developers.google.com/gmail/api/" target="_blank">Documentation</a>
27
- * </p>
28
- *
29
- * @author Google, Inc.
30
- */
31
- class Google_Service_Gmail extends Google_Service
32
- {
33
- /** Read, compose, send, and permanently delete all your email from Gmail. */
34
- const MAIL_GOOGLE_COM =
35
- "https://mail.google.com/";
36
- /** Manage drafts and send emails. */
37
- const GMAIL_COMPOSE =
38
- "https://www.googleapis.com/auth/gmail.compose";
39
- /** Insert mail into your mailbox. */
40
- const GMAIL_INSERT =
41
- "https://www.googleapis.com/auth/gmail.insert";
42
- /** Manage mailbox labels. */
43
- const GMAIL_LABELS =
44
- "https://www.googleapis.com/auth/gmail.labels";
45
- /** View your email message metadata such as labels and headers, but not the email body. */
46
- const GMAIL_METADATA =
47
- "https://www.googleapis.com/auth/gmail.metadata";
48
- /** View and modify but not delete your email. */
49
- const GMAIL_MODIFY =
50
- "https://www.googleapis.com/auth/gmail.modify";
51
- /** View your email messages and settings. */
52
- const GMAIL_READONLY =
53
- "https://www.googleapis.com/auth/gmail.readonly";
54
- /** Send email on your behalf. */
55
- const GMAIL_SEND =
56
- "https://www.googleapis.com/auth/gmail.send";
57
- /** Manage your basic mail settings. */
58
- const GMAIL_SETTINGS_BASIC =
59
- "https://www.googleapis.com/auth/gmail.settings.basic";
60
- /** Manage your sensitive mail settings, including who can manage your mail. */
61
- const GMAIL_SETTINGS_SHARING =
62
- "https://www.googleapis.com/auth/gmail.settings.sharing";
63
-
64
- public $users;
65
- public $users_drafts;
66
- public $users_history;
67
- public $users_labels;
68
- public $users_messages;
69
- public $users_messages_attachments;
70
- public $users_settings;
71
- public $users_settings_delegates;
72
- public $users_settings_filters;
73
- public $users_settings_forwardingAddresses;
74
- public $users_settings_sendAs;
75
- public $users_settings_sendAs_smimeInfo;
76
- public $users_threads;
77
-
78
- /**
79
- * Constructs the internal representation of the Gmail service.
80
- *
81
- * @param Google_Client $client The client used to deliver requests.
82
- * @param string $rootUrl The root URL used for requests to the service.
83
- */
84
- public function __construct(Google_Client $client, $rootUrl = null)
85
- {
86
- parent::__construct($client);
87
- $this->rootUrl = $rootUrl ?: 'https://www.googleapis.com/';
88
- $this->servicePath = 'gmail/v1/users/';
89
- $this->batchPath = 'batch/gmail/v1';
90
- $this->version = 'v1';
91
- $this->serviceName = 'gmail';
92
-
93
- $this->users = new Google_Service_Gmail_Resource_Users(
94
- $this,
95
- $this->serviceName,
96
- 'users',
97
- array(
98
- 'methods' => array(
99
- 'getProfile' => array(
100
- 'path' => '{userId}/profile',
101
- 'httpMethod' => 'GET',
102
- 'parameters' => array(
103
- 'userId' => array(
104
- 'location' => 'path',
105
- 'type' => 'string',
106
- 'required' => true,
107
- ),
108
- ),
109
- ),'stop' => array(
110
- 'path' => '{userId}/stop',
111
- 'httpMethod' => 'POST',
112
- 'parameters' => array(
113
- 'userId' => array(
114
- 'location' => 'path',
115
- 'type' => 'string',
116
- 'required' => true,
117
- ),
118
- ),
119
- ),'watch' => array(
120
- 'path' => '{userId}/watch',
121
- 'httpMethod' => 'POST',
122
- 'parameters' => array(
123
- 'userId' => array(
124
- 'location' => 'path',
125
- 'type' => 'string',
126
- 'required' => true,
127
- ),
128
- ),
129
- ),
130
- )
131
- )
132
- );
133
- $this->users_drafts = new Google_Service_Gmail_Resource_UsersDrafts(
134
- $this,
135
- $this->serviceName,
136
- 'drafts',
137
- array(
138
- 'methods' => array(
139
- 'create' => array(
140
- 'path' => '{userId}/drafts',
141
- 'httpMethod' => 'POST',
142
- 'parameters' => array(
143
- 'userId' => array(
144
- 'location' => 'path',
145
- 'type' => 'string',
146
- 'required' => true,
147
- ),
148
- ),
149
- ),'delete' => array(
150
- 'path' => '{userId}/drafts/{id}',
151
- 'httpMethod' => 'DELETE',
152
- 'parameters' => array(
153
- 'userId' => array(
154
- 'location' => 'path',
155
- 'type' => 'string',
156
- 'required' => true,
157
- ),
158
- 'id' => array(
159
- 'location' => 'path',
160
- 'type' => 'string',
161
- 'required' => true,
162
- ),
163
- ),
164
- ),'get' => array(
165
- 'path' => '{userId}/drafts/{id}',
166
- 'httpMethod' => 'GET',
167
- 'parameters' => array(
168
- 'userId' => array(
169
- 'location' => 'path',
170
- 'type' => 'string',
171
- 'required' => true,
172
- ),
173
- 'id' => array(
174
- 'location' => 'path',
175
- 'type' => 'string',
176
- 'required' => true,
177
- ),
178
- 'format' => array(
179
- 'location' => 'query',
180
- 'type' => 'string',
181
- ),
182
- ),
183
- ),'list' => array(
184
- 'path' => '{userId}/drafts',
185
- 'httpMethod' => 'GET',
186
- 'parameters' => array(
187
- 'userId' => array(
188
- 'location' => 'path',
189
- 'type' => 'string',
190
- 'required' => true,
191
- ),
192
- 'includeSpamTrash' => array(
193
- 'location' => 'query',
194
- 'type' => 'boolean',
195
- ),
196
- 'maxResults' => array(
197
- 'location' => 'query',
198
- 'type' => 'integer',
199
- ),
200
- 'pageToken' => array(
201
- 'location' => 'query',
202
- 'type' => 'string',
203
- ),
204
- 'q' => array(
205
- 'location' => 'query',
206
- 'type' => 'string',
207
- ),
208
- ),
209
- ),'send' => array(
210
- 'path' => '{userId}/drafts/send',
211
- 'httpMethod' => 'POST',
212
- 'parameters' => array(
213
- 'userId' => array(
214
- 'location' => 'path',
215
- 'type' => 'string',
216
- 'required' => true,
217
- ),
218
- ),
219
- ),'update' => array(
220
- 'path' => '{userId}/drafts/{id}',
221
- 'httpMethod' => 'PUT',
222
- 'parameters' => array(
223
- 'userId' => array(
224
- 'location' => 'path',
225
- 'type' => 'string',
226
- 'required' => true,
227
- ),
228
- 'id' => array(
229
- 'location' => 'path',
230
- 'type' => 'string',
231
- 'required' => true,
232
- ),
233
- ),
234
- ),
235
- )
236
- )
237
- );
238
- $this->users_history = new Google_Service_Gmail_Resource_UsersHistory(
239
- $this,
240
- $this->serviceName,
241
- 'history',
242
- array(
243
- 'methods' => array(
244
- 'list' => array(
245
- 'path' => '{userId}/history',
246
- 'httpMethod' => 'GET',
247
- 'parameters' => array(
248
- 'userId' => array(
249
- 'location' => 'path',
250
- 'type' => 'string',
251
- 'required' => true,
252
- ),
253
- 'historyTypes' => array(
254
- 'location' => 'query',
255
- 'type' => 'string',
256
- 'repeated' => true,
257
- ),
258
- 'labelId' => array(
259
- 'location' => 'query',
260
- 'type' => 'string',
261
- ),
262
- 'maxResults' => array(
263
- 'location' => 'query',
264
- 'type' => 'integer',
265
- ),
266
- 'pageToken' => array(
267
- 'location' => 'query',
268
- 'type' => 'string',
269
- ),
270
- 'startHistoryId' => array(
271
- 'location' => 'query',
272
- 'type' => 'string',
273
- ),
274
- ),
275
- ),
276
- )
277
- )
278
- );
279
- $this->users_labels = new Google_Service_Gmail_Resource_UsersLabels(
280
- $this,
281
- $this->serviceName,
282
- 'labels',
283
- array(
284
- 'methods' => array(
285
- 'create' => array(
286
- 'path' => '{userId}/labels',
287
- 'httpMethod' => 'POST',
288
- 'parameters' => array(
289
- 'userId' => array(
290
- 'location' => 'path',
291
- 'type' => 'string',
292
- 'required' => true,
293
- ),
294
- ),
295
- ),'delete' => array(
296
- 'path' => '{userId}/labels/{id}',
297
- 'httpMethod' => 'DELETE',
298
- 'parameters' => array(
299
- 'userId' => array(
300
- 'location' => 'path',
301
- 'type' => 'string',
302
- 'required' => true,
303
- ),
304
- 'id' => array(
305
- 'location' => 'path',
306
- 'type' => 'string',
307
- 'required' => true,
308
- ),
309
- ),
310
- ),'get' => array(
311
- 'path' => '{userId}/labels/{id}',
312
- 'httpMethod' => 'GET',
313
- 'parameters' => array(
314
- 'userId' => array(
315
- 'location' => 'path',
316
- 'type' => 'string',
317
- 'required' => true,
318
- ),
319
- 'id' => array(
320
- 'location' => 'path',
321
- 'type' => 'string',
322
- 'required' => true,
323
- ),
324
- ),
325
- ),'list' => array(
326
- 'path' => '{userId}/labels',
327
- 'httpMethod' => 'GET',
328
- 'parameters' => array(
329
- 'userId' => array(
330
- 'location' => 'path',
331
- 'type' => 'string',
332
- 'required' => true,
333
- ),
334
- ),
335
- ),'patch' => array(
336
- 'path' => '{userId}/labels/{id}',
337
- 'httpMethod' => 'PATCH',
338
- 'parameters' => array(
339
- 'userId' => array(
340
- 'location' => 'path',
341
- 'type' => 'string',
342
- 'required' => true,
343
- ),
344
- 'id' => array(
345
- 'location' => 'path',
346
- 'type' => 'string',
347
- 'required' => true,
348
- ),
349
- ),
350
- ),'update' => array(
351
- 'path' => '{userId}/labels/{id}',
352
- 'httpMethod' => 'PUT',
353
- 'parameters' => array(
354
- 'userId' => array(
355
- 'location' => 'path',
356
- 'type' => 'string',
357
- 'required' => true,
358
- ),
359
- 'id' => array(
360
- 'location' => 'path',
361
- 'type' => 'string',
362
- 'required' => true,
363
- ),
364
- ),
365
- ),
366
- )
367
- )
368
- );
369
- $this->users_messages = new Google_Service_Gmail_Resource_UsersMessages(
370
- $this,
371
- $this->serviceName,
372
- 'messages',
373
- array(
374
- 'methods' => array(
375
- 'batchDelete' => array(
376
- 'path' => '{userId}/messages/batchDelete',
377
- 'httpMethod' => 'POST',
378
- 'parameters' => array(
379
- 'userId' => array(
380
- 'location' => 'path',
381
- 'type' => 'string',
382
- 'required' => true,
383
- ),
384
- ),
385
- ),'batchModify' => array(
386
- 'path' => '{userId}/messages/batchModify',
387
- 'httpMethod' => 'POST',
388
- 'parameters' => array(
389
- 'userId' => array(
390
- 'location' => 'path',
391
- 'type' => 'string',
392
- 'required' => true,
393
- ),
394
- ),
395
- ),'delete' => array(
396
- 'path' => '{userId}/messages/{id}',
397
- 'httpMethod' => 'DELETE',
398
- 'parameters' => array(
399
- 'userId' => array(
400
- 'location' => 'path',
401
- 'type' => 'string',
402
- 'required' => true,
403
- ),
404
- 'id' => array(
405
- 'location' => 'path',
406
- 'type' => 'string',
407
- 'required' => true,
408
- ),
409
- ),
410
- ),'get' => array(
411
- 'path' => '{userId}/messages/{id}',
412
- 'httpMethod' => 'GET',
413
- 'parameters' => array(
414
- 'userId' => array(
415
- 'location' => 'path',
416
- 'type' => 'string',
417
- 'required' => true,
418
- ),
419
- 'id' => array(
420
- 'location' => 'path',
421
- 'type' => 'string',
422
- 'required' => true,
423
- ),
424
- 'format' => array(
425
- 'location' => 'query',
426
- 'type' => 'string',
427
- ),
428
- 'metadataHeaders' => array(
429
- 'location' => 'query',
430
- 'type' => 'string',
431
- 'repeated' => true,
432
- ),
433
- ),
434
- ),'import' => array(
435
- 'path' => '{userId}/messages/import',
436
- 'httpMethod' => 'POST',
437
- 'parameters' => array(
438
- 'userId' => array(
439
- 'location' => 'path',
440
- 'type' => 'string',
441
- 'required' => true,
442
- ),
443
- 'deleted' => array(
444
- 'location' => 'query',
445
- 'type' => 'boolean',
446
- ),
447
- 'internalDateSource' => array(
448
- 'location' => 'query',
449
- 'type' => 'string',
450
- ),
451
- 'neverMarkSpam' => array(
452
- 'location' => 'query',
453
- 'type' => 'boolean',
454
- ),
455
- 'processForCalendar' => array(
456
- 'location' => 'query',
457
- 'type' => 'boolean',
458
- ),
459
- ),
460
- ),'insert' => array(
461
- 'path' => '{userId}/messages',
462
- 'httpMethod' => 'POST',
463
- 'parameters' => array(
464
- 'userId' => array(
465
- 'location' => 'path',
466
- 'type' => 'string',
467
- 'required' => true,
468
- ),
469
- 'deleted' => array(
470
- 'location' => 'query',
471
- 'type' => 'boolean',
472
- ),
473
- 'internalDateSource' => array(
474
- 'location' => 'query',
475
- 'type' => 'string',
476
- ),
477
- ),
478
- ),'list' => array(
479
- 'path' => '{userId}/messages',
480
- 'httpMethod' => 'GET',
481
- 'parameters' => array(
482
- 'userId' => array(
483
- 'location' => 'path',
484
- 'type' => 'string',
485
- 'required' => true,
486
- ),
487
- 'includeSpamTrash' => array(
488
- 'location' => 'query',
489
- 'type' => 'boolean',
490
- ),
491
- 'labelIds' => array(
492
- 'location' => 'query',
493
- 'type' => 'string',
494
- 'repeated' => true,
495
- ),
496
- 'maxResults' => array(
497
- 'location' => 'query',
498
- 'type' => 'integer',
499
- ),
500
- 'pageToken' => array(
501
- 'location' => 'query',
502
- 'type' => 'string',
503
- ),
504
- 'q' => array(
505
- 'location' => 'query',
506
- 'type' => 'string',
507
- ),
508
- ),
509
- ),'modify' => array(
510
- 'path' => '{userId}/messages/{id}/modify',
511
- 'httpMethod' => 'POST',
512
- 'parameters' => array(
513
- 'userId' => array(
514
- 'location' => 'path',
515
- 'type' => 'string',
516
- 'required' => true,
517
- ),
518
- 'id' => array(
519
- 'location' => 'path',
520
- 'type' => 'string',
521
- 'required' => true,
522
- ),
523
- ),
524
- ),'send' => array(
525
- 'path' => '{userId}/messages/send',
526
- 'httpMethod' => 'POST',
527
- 'parameters' => array(
528
- 'userId' => array(
529
- 'location' => 'path',
530
- 'type' => 'string',
531
- 'required' => true,
532
- ),
533
- ),
534
- ),'trash' => array(
535
- 'path' => '{userId}/messages/{id}/trash',
536
- 'httpMethod' => 'POST',
537
- 'parameters' => array(
538
- 'userId' => array(
539
- 'location' => 'path',
540
- 'type' => 'string',
541
- 'required' => true,
542
- ),
543
- 'id' => array(
544
- 'location' => 'path',
545
- 'type' => 'string',
546
- 'required' => true,
547
- ),
548
- ),
549
- ),'untrash' => array(
550
- 'path' => '{userId}/messages/{id}/untrash',
551
- 'httpMethod' => 'POST',
552
- 'parameters' => array(
553
- 'userId' => array(
554
- 'location' => 'path',
555
- 'type' => 'string',
556
- 'required' => true,
557
- ),
558
- 'id' => array(
559
- 'location' => 'path',
560
- 'type' => 'string',
561
- 'required' => true,
562
- ),
563
- ),
564
- ),
565
- )
566
- )
567
- );
568
- $this->users_messages_attachments = new Google_Service_Gmail_Resource_UsersMessagesAttachments(
569
- $this,
570
- $this->serviceName,
571
- 'attachments',
572
- array(
573
- 'methods' => array(
574
- 'get' => array(
575
- 'path' => '{userId}/messages/{messageId}/attachments/{id}',
576
- 'httpMethod' => 'GET',
577
- 'parameters' => array(
578
- 'userId' => array(
579
- 'location' => 'path',
580
- 'type' => 'string',
581
- 'required' => true,
582
- ),
583
- 'messageId' => array(
584
- 'location' => 'path',
585
- 'type' => 'string',
586
- 'required' => true,
587
- ),
588
- 'id' => array(
589
- 'location' => 'path',
590
- 'type' => 'string',
591
- 'required' => true,
592
- ),
593
- ),
594
- ),
595
- )
596
- )
597
- );
598
- $this->users_settings = new Google_Service_Gmail_Resource_UsersSettings(
599
- $this,
600
- $this->serviceName,
601
- 'settings',
602
- array(
603
- 'methods' => array(
604
- 'getAutoForwarding' => array(
605
- 'path' => '{userId}/settings/autoForwarding',
606
- 'httpMethod' => 'GET',
607
- 'parameters' => array(
608
- 'userId' => array(
609
- 'location' => 'path',
610
- 'type' => 'string',
611
- 'required' => true,
612
- ),
613
- ),
614
- ),'getImap' => array(
615
- 'path' => '{userId}/settings/imap',
616
- 'httpMethod' => 'GET',
617
- 'parameters' => array(
618
- 'userId' => array(
619
- 'location' => 'path',
620
- 'type' => 'string',
621
- 'required' => true,
622
- ),
623
- ),
624
- ),'getLanguage' => array(
625
- 'path' => '{userId}/settings/language',
626
- 'httpMethod' => 'GET',
627
- 'parameters' => array(
628
- 'userId' => array(
629
- 'location' => 'path',
630
- 'type' => 'string',
631
- 'required' => true,
632
- ),
633
- ),
634
- ),'getPop' => array(
635
- 'path' => '{userId}/settings/pop',
636
- 'httpMethod' => 'GET',
637
- 'parameters' => array(
638
- 'userId' => array(
639
- 'location' => 'path',
640
- 'type' => 'string',
641
- 'required' => true,
642
- ),
643
- ),
644
- ),'getVacation' => array(
645
- 'path' => '{userId}/settings/vacation',
646
- 'httpMethod' => 'GET',
647
- 'parameters' => array(
648
- 'userId' => array(
649
- 'location' => 'path',
650
- 'type' => 'string',
651
- 'required' => true,
652
- ),
653
- ),
654
- ),'updateAutoForwarding' => array(
655
- 'path' => '{userId}/settings/autoForwarding',
656
- 'httpMethod' => 'PUT',
657
- 'parameters' => array(
658
- 'userId' => array(
659
- 'location' => 'path',
660
- 'type' => 'string',
661
- 'required' => true,
662
- ),
663
- ),
664
- ),'updateImap' => array(
665
- 'path' => '{userId}/settings/imap',
666
- 'httpMethod' => 'PUT',
667
- 'parameters' => array(
668
- 'userId' => array(
669
- 'location' => 'path',
670
- 'type' => 'string',
671
- 'required' => true,
672
- ),
673
- ),
674
- ),'updateLanguage' => array(
675
- 'path' => '{userId}/settings/language',
676
- 'httpMethod' => 'PUT',
677
- 'parameters' => array(
678
- 'userId' => array(
679
- 'location' => 'path',
680
- 'type' => 'string',
681
- 'required' => true,
682
- ),
683
- ),
684
- ),'updatePop' => array(
685
- 'path' => '{userId}/settings/pop',
686
- 'httpMethod' => 'PUT',
687
- 'parameters' => array(
688
- 'userId' => array(
689
- 'location' => 'path',
690
- 'type' => 'string',
691
- 'required' => true,
692
- ),
693
- ),
694
- ),'updateVacation' => array(
695
- 'path' => '{userId}/settings/vacation',
696
- 'httpMethod' => 'PUT',
697
- 'parameters' => array(
698
- 'userId' => array(
699
- 'location' => 'path',
700
- 'type' => 'string',
701
- 'required' => true,
702
- ),
703
- ),
704
- ),
705
- )
706
- )
707
- );
708
- $this->users_settings_delegates = new Google_Service_Gmail_Resource_UsersSettingsDelegates(
709
- $this,
710
- $this->serviceName,
711
- 'delegates',
712
- array(
713
- 'methods' => array(
714
- 'create' => array(
715
- 'path' => '{userId}/settings/delegates',
716
- 'httpMethod' => 'POST',
717
- 'parameters' => array(
718
- 'userId' => array(
719
- 'location' => 'path',
720
- 'type' => 'string',
721
- 'required' => true,
722
- ),
723
- ),
724
- ),'delete' => array(
725
- 'path' => '{userId}/settings/delegates/{delegateEmail}',
726
- 'httpMethod' => 'DELETE',
727
- 'parameters' => array(
728
- 'userId' => array(
729
- 'location' => 'path',
730
- 'type' => 'string',
731
- 'required' => true,
732
- ),
733
- 'delegateEmail' => array(
734
- 'location' => 'path',
735
- 'type' => 'string',
736
- 'required' => true,
737
- ),
738
- ),
739
- ),'get' => array(
740
- 'path' => '{userId}/settings/delegates/{delegateEmail}',
741
- 'httpMethod' => 'GET',
742
- 'parameters' => array(
743
- 'userId' => array(
744
- 'location' => 'path',
745
- 'type' => 'string',
746
- 'required' => true,
747
- ),
748
- 'delegateEmail' => array(
749
- 'location' => 'path',
750
- 'type' => 'string',
751
- 'required' => true,
752
- ),
753
- ),
754
- ),'list' => array(
755
- 'path' => '{userId}/settings/delegates',
756
- 'httpMethod' => 'GET',
757
- 'parameters' => array(
758
- 'userId' => array(
759
- 'location' => 'path',
760
- 'type' => 'string',
761
- 'required' => true,
762
- ),
763
- ),
764
- ),
765
- )
766
- )
767
- );
768
- $this->users_settings_filters = new Google_Service_Gmail_Resource_UsersSettingsFilters(
769
- $this,
770
- $this->serviceName,
771
- 'filters',
772
- array(
773
- 'methods' => array(
774
- 'create' => array(
775
- 'path' => '{userId}/settings/filters',
776
- 'httpMethod' => 'POST',
777
- 'parameters' => array(
778
- 'userId' => array(
779
- 'location' => 'path',
780
- 'type' => 'string',
781
- 'required' => true,
782
- ),
783
- ),
784
- ),'delete' => array(
785
- 'path' => '{userId}/settings/filters/{id}',
786
- 'httpMethod' => 'DELETE',
787
- 'parameters' => array(
788
- 'userId' => array(
789
- 'location' => 'path',
790
- 'type' => 'string',
791
- 'required' => true,
792
- ),
793
- 'id' => array(
794
- 'location' => 'path',
795
- 'type' => 'string',
796
- 'required' => true,
797
- ),
798
- ),
799
- ),'get' => array(
800
- 'path' => '{userId}/settings/filters/{id}',
801
- 'httpMethod' => 'GET',
802
- 'parameters' => array(
803
- 'userId' => array(
804
- 'location' => 'path',
805
- 'type' => 'string',
806
- 'required' => true,
807
- ),
808
- 'id' => array(
809
- 'location' => 'path',
810
- 'type' => 'string',
811
- 'required' => true,
812
- ),
813
- ),
814
- ),'list' => array(
815
- 'path' => '{userId}/settings/filters',
816
- 'httpMethod' => 'GET',
817
- 'parameters' => array(
818
- 'userId' => array(
819
- 'location' => 'path',
820
- 'type' => 'string',
821
- 'required' => true,
822
- ),
823
- ),
824
- ),
825
- )
826
- )
827
- );
828
- $this->users_settings_forwardingAddresses = new Google_Service_Gmail_Resource_UsersSettingsForwardingAddresses(
829
- $this,
830
- $this->serviceName,
831
- 'forwardingAddresses',
832
- array(
833
- 'methods' => array(
834
- 'create' => array(
835
- 'path' => '{userId}/settings/forwardingAddresses',
836
- 'httpMethod' => 'POST',
837
- 'parameters' => array(
838
- 'userId' => array(
839
- 'location' => 'path',
840
- 'type' => 'string',
841
- 'required' => true,
842
- ),
843
- ),
844
- ),'delete' => array(
845
- 'path' => '{userId}/settings/forwardingAddresses/{forwardingEmail}',
846
- 'httpMethod' => 'DELETE',
847
- 'parameters' => array(
848
- 'userId' => array(
849
- 'location' => 'path',
850
- 'type' => 'string',
851
- 'required' => true,
852
- ),
853
- 'forwardingEmail' => array(
854
- 'location' => 'path',
855
- 'type' => 'string',
856
- 'required' => true,
857
- ),
858
- ),
859
- ),'get' => array(
860
- 'path' => '{userId}/settings/forwardingAddresses/{forwardingEmail}',
861
- 'httpMethod' => 'GET',
862
- 'parameters' => array(
863
- 'userId' => array(
864
- 'location' => 'path',
865
- 'type' => 'string',
866
- 'required' => true,
867
- ),
868
- 'forwardingEmail' => array(
869
- 'location' => 'path',
870
- 'type' => 'string',
871
- 'required' => true,
872
- ),
873
- ),
874
- ),'list' => array(
875
- 'path' => '{userId}/settings/forwardingAddresses',
876
- 'httpMethod' => 'GET',
877
- 'parameters' => array(
878
- 'userId' => array(
879
- 'location' => 'path',
880
- 'type' => 'string',
881
- 'required' => true,
882
- ),
883
- ),
884
- ),
885
- )
886
- )
887
- );
888
- $this->users_settings_sendAs = new Google_Service_Gmail_Resource_UsersSettingsSendAs(
889
- $this,
890
- $this->serviceName,
891
- 'sendAs',
892
- array(
893
- 'methods' => array(
894
- 'create' => array(
895
- 'path' => '{userId}/settings/sendAs',
896
- 'httpMethod' => 'POST',
897
- 'parameters' => array(
898
- 'userId' => array(
899
- 'location' => 'path',
900
- 'type' => 'string',
901
- 'required' => true,
902
- ),
903
- ),
904
- ),'delete' => array(
905
- 'path' => '{userId}/settings/sendAs/{sendAsEmail}',
906
- 'httpMethod' => 'DELETE',
907
- 'parameters' => array(
908
- 'userId' => array(
909
- 'location' => 'path',
910
- 'type' => 'string',
911
- 'required' => true,
912
- ),
913
- 'sendAsEmail' => array(
914
- 'location' => 'path',
915
- 'type' => 'string',
916
- 'required' => true,
917
- ),
918
- ),
919
- ),'get' => array(
920
- 'path' => '{userId}/settings/sendAs/{sendAsEmail}',
921
- 'httpMethod' => 'GET',
922
- 'parameters' => array(
923
- 'userId' => array(
924
- 'location' => 'path',
925
- 'type' => 'string',
926
- 'required' => true,
927
- ),
928
- 'sendAsEmail' => array(
929
- 'location' => 'path',
930
- 'type' => 'string',
931
- 'required' => true,
932
- ),
933
- ),
934
- ),'list' => array(
935
- 'path' => '{userId}/settings/sendAs',
936
- 'httpMethod' => 'GET',
937
- 'parameters' => array(
938
- 'userId' => array(
939
- 'location' => 'path',
940
- 'type' => 'string',
941
- 'required' => true,
942
- ),
943
- ),
944
- ),'patch' => array(
945
- 'path' => '{userId}/settings/sendAs/{sendAsEmail}',
946
- 'httpMethod' => 'PATCH',
947
- 'parameters' => array(
948
- 'userId' => array(
949
- 'location' => 'path',
950
- 'type' => 'string',
951
- 'required' => true,
952
- ),
953
- 'sendAsEmail' => array(
954
- 'location' => 'path',
955
- 'type' => 'string',
956
- 'required' => true,
957
- ),
958
- ),
959
- ),'update' => array(
960
- 'path' => '{userId}/settings/sendAs/{sendAsEmail}',
961
- 'httpMethod' => 'PUT',
962
- 'parameters' => array(
963
- 'userId' => array(
964
- 'location' => 'path',
965
- 'type' => 'string',
966
- 'required' => true,
967
- ),
968
- 'sendAsEmail' => array(
969
- 'location' => 'path',
970
- 'type' => 'string',
971
- 'required' => true,
972
- ),
973
- ),
974
- ),'verify' => array(
975
- 'path' => '{userId}/settings/sendAs/{sendAsEmail}/verify',
976
- 'httpMethod' => 'POST',
977
- 'parameters' => array(
978
- 'userId' => array(
979
- 'location' => 'path',
980
- 'type' => 'string',
981
- 'required' => true,
982
- ),
983
- 'sendAsEmail' => array(
984
- 'location' => 'path',
985
- 'type' => 'string',
986
- 'required' => true,
987
- ),
988
- ),
989
- ),
990
- )
991
- )
992
- );
993
- $this->users_settings_sendAs_smimeInfo = new Google_Service_Gmail_Resource_UsersSettingsSendAsSmimeInfo(
994
- $this,
995
- $this->serviceName,
996
- 'smimeInfo',
997
- array(
998
- 'methods' => array(
999
- 'delete' => array(
1000
- 'path' => '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}',
1001
- 'httpMethod' => 'DELETE',
1002
- 'parameters' => array(
1003
- 'userId' => array(
1004
- 'location' => 'path',
1005
- 'type' => 'string',
1006
- 'required' => true,
1007
- ),
1008
- 'sendAsEmail' => array(
1009
- 'location' => 'path',
1010
- 'type' => 'string',
1011
- 'required' => true,
1012
- ),
1013
- 'id' => array(
1014
- 'location' => 'path',
1015
- 'type' => 'string',
1016
- 'required' => true,
1017
- ),
1018
- ),
1019
- ),'get' => array(
1020
- 'path' => '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}',
1021
- 'httpMethod' => 'GET',
1022
- 'parameters' => array(
1023
- 'userId' => array(
1024
- 'location' => 'path',
1025
- 'type' => 'string',
1026
- 'required' => true,
1027
- ),
1028
- 'sendAsEmail' => array(
1029
- 'location' => 'path',
1030
- 'type' => 'string',
1031
- 'required' => true,
1032
- ),
1033
- 'id' => array(
1034
- 'location' => 'path',
1035
- 'type' => 'string',
1036
- 'required' => true,
1037
- ),
1038
- ),
1039
- ),'insert' => array(
1040
- 'path' => '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo',
1041
- 'httpMethod' => 'POST',
1042
- 'parameters' => array(
1043
- 'userId' => array(
1044
- 'location' => 'path',
1045
- 'type' => 'string',
1046
- 'required' => true,
1047
- ),
1048
- 'sendAsEmail' => array(
1049
- 'location' => 'path',
1050
- 'type' => 'string',
1051
- 'required' => true,
1052
- ),
1053
- ),
1054
- ),'list' => array(
1055
- 'path' => '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo',
1056
- 'httpMethod' => 'GET',
1057
- 'parameters' => array(
1058
- 'userId' => array(
1059
- 'location' => 'path',
1060
- 'type' => 'string',
1061
- 'required' => true,
1062
- ),
1063
- 'sendAsEmail' => array(
1064
- 'location' => 'path',
1065
- 'type' => 'string',
1066
- 'required' => true,
1067
- ),
1068
- ),
1069
- ),'setDefault' => array(
1070
- 'path' => '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}/setDefault',
1071
- 'httpMethod' => 'POST',
1072
- 'parameters' => array(
1073
- 'userId' => array(
1074
- 'location' => 'path',
1075
- 'type' => 'string',
1076
- 'required' => true,
1077
- ),
1078
- 'sendAsEmail' => array(
1079
- 'location' => 'path',
1080
- 'type' => 'string',
1081
- 'required' => true,
1082
- ),
1083
- 'id' => array(
1084
- 'location' => 'path',
1085
- 'type' => 'string',
1086
- 'required' => true,
1087
- ),
1088
- ),
1089
- ),
1090
- )
1091
- )
1092
- );
1093
- $this->users_threads = new Google_Service_Gmail_Resource_UsersThreads(
1094
- $this,
1095
- $this->serviceName,
1096
- 'threads',
1097
- array(
1098
- 'methods' => array(
1099
- 'delete' => array(
1100
- 'path' => '{userId}/threads/{id}',
1101
- 'httpMethod' => 'DELETE',
1102
- 'parameters' => array(
1103
- 'userId' => array(
1104
- 'location' => 'path',
1105
- 'type' => 'string',
1106
- 'required' => true,
1107
- ),
1108
- 'id' => array(
1109
- 'location' => 'path',
1110
- 'type' => 'string',
1111
- 'required' => true,
1112
- ),
1113
- ),
1114
- ),'get' => array(
1115
- 'path' => '{userId}/threads/{id}',
1116
- 'httpMethod' => 'GET',
1117
- 'parameters' => array(
1118
- 'userId' => array(
1119
- 'location' => 'path',
1120
- 'type' => 'string',
1121
- 'required' => true,
1122
- ),
1123
- 'id' => array(
1124
- 'location' => 'path',
1125
- 'type' => 'string',
1126
- 'required' => true,
1127
- ),
1128
- 'format' => array(
1129
- 'location' => 'query',
1130
- 'type' => 'string',
1131
- ),
1132
- 'metadataHeaders' => array(
1133
- 'location' => 'query',
1134
- 'type' => 'string',
1135
- 'repeated' => true,
1136
- ),
1137
- ),
1138
- ),'list' => array(
1139
- 'path' => '{userId}/threads',
1140
- 'httpMethod' => 'GET',
1141
- 'parameters' => array(
1142
- 'userId' => array(
1143
- 'location' => 'path',
1144
- 'type' => 'string',
1145
- 'required' => true,
1146
- ),
1147
- 'includeSpamTrash' => array(
1148
- 'location' => 'query',
1149
- 'type' => 'boolean',
1150
- ),
1151
- 'labelIds' => array(
1152
- 'location' => 'query',
1153
- 'type' => 'string',
1154
- 'repeated' => true,
1155
- ),
1156
- 'maxResults' => array(
1157
- 'location' => 'query',
1158
- 'type' => 'integer',
1159
- ),
1160
- 'pageToken' => array(
1161
- 'location' => 'query',
1162
- 'type' => 'string',
1163
- ),
1164
- 'q' => array(
1165
- 'location' => 'query',
1166
- 'type' => 'string',
1167
- ),
1168
- ),
1169
- ),'modify' => array(
1170
- 'path' => '{userId}/threads/{id}/modify',
1171
- 'httpMethod' => 'POST',
1172
- 'parameters' => array(
1173
- 'userId' => array(
1174
- 'location' => 'path',
1175
- 'type' => 'string',
1176
- 'required' => true,
1177
- ),
1178
- 'id' => array(
1179
- 'location' => 'path',
1180
- 'type' => 'string',
1181
- 'required' => true,
1182
- ),
1183
- ),
1184
- ),'trash' => array(
1185
- 'path' => '{userId}/threads/{id}/trash',
1186
- 'httpMethod' => 'POST',
1187
- 'parameters' => array(
1188
- 'userId' => array(
1189
- 'location' => 'path',
1190
- 'type' => 'string',
1191
- 'required' => true,
1192
- ),
1193
- 'id' => array(
1194
- 'location' => 'path',
1195
- 'type' => 'string',
1196
- 'required' => true,
1197
- ),
1198
- ),
1199
- ),'untrash' => array(
1200
- 'path' => '{userId}/threads/{id}/untrash',
1201
- 'httpMethod' => 'POST',
1202
- 'parameters' => array(
1203
- 'userId' => array(
1204
- 'location' => 'path',
1205
- 'type' => 'string',
1206
- 'required' => true,
1207
- ),
1208
- 'id' => array(
1209
- 'location' => 'path',
1210
- 'type' => 'string',
1211
- 'required' => true,
1212
- ),
1213
- ),
1214
- ),
1215
- )
1216
- )
1217
- );
1218
- }
1219
- }
1
+ <?php
2
+ /*
3
+ * Copyright 2014 Google Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6
+ * use this file except in compliance with the License. You may obtain a copy of
7
+ * the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14
+ * License for the specific language governing permissions and limitations under
15
+ * the License.
16
+ */
17
+
18
+ /**
19
+ * Service definition for Gmail (v1).
20
+ *
21
+ * <p>
22
+ * Access Gmail mailboxes including sending user email.</p>
23
+ *
24
+ * <p>
25
+ * For more information about this service, see the API
26
+ * <a href="https://developers.google.com/gmail/api/" target="_blank">Documentation</a>
27
+ * </p>
28
+ *
29
+ * @author Google, Inc.
30
+ */
31
+ class Google_Service_Gmail extends Google_Service
32
+ {
33
+ /** Read, compose, send, and permanently delete all your email from Gmail. */
34
+ const MAIL_GOOGLE_COM =
35
+ "https://mail.google.com/";
36
+ /** Manage drafts and send emails. */
37
+ const GMAIL_COMPOSE =
38
+ "https://www.googleapis.com/auth/gmail.compose";
39
+ /** Insert mail into your mailbox. */
40
+ const GMAIL_INSERT =
41
+ "https://www.googleapis.com/auth/gmail.insert";
42
+ /** Manage mailbox labels. */
43
+ const GMAIL_LABELS =
44
+ "https://www.googleapis.com/auth/gmail.labels";
45
+ /** View your email message metadata such as labels and headers, but not the email body. */
46
+ const GMAIL_METADATA =
47
+ "https://www.googleapis.com/auth/gmail.metadata";
48
+ /** View and modify but not delete your email. */
49
+ const GMAIL_MODIFY =
50
+ "https://www.googleapis.com/auth/gmail.modify";
51
+ /** View your email messages and settings. */
52
+ const GMAIL_READONLY =
53
+ "https://www.googleapis.com/auth/gmail.readonly";
54
+ /** Send email on your behalf. */
55
+ const GMAIL_SEND =
56
+ "https://www.googleapis.com/auth/gmail.send";
57
+ /** Manage your basic mail settings. */
58
+ const GMAIL_SETTINGS_BASIC =
59
+ "https://www.googleapis.com/auth/gmail.settings.basic";
60
+ /** Manage your sensitive mail settings, including who can manage your mail. */
61
+ const GMAIL_SETTINGS_SHARING =
62
+ "https://www.googleapis.com/auth/gmail.settings.sharing";
63
+
64
+ public $users;
65
+ public $users_drafts;
66
+ public $users_history;
67
+ public $users_labels;
68
+ public $users_messages;
69
+ public $users_messages_attachments;
70
+ public $users_settings;
71
+ public $users_settings_delegates;
72
+ public $users_settings_filters;
73
+ public $users_settings_forwardingAddresses;
74
+ public $users_settings_sendAs;
75
+ public $users_settings_sendAs_smimeInfo;
76
+ public $users_threads;
77
+
78
+ /**
79
+ * Constructs the internal representation of the Gmail service.
80
+ *
81
+ * @param Google_Client $client The client used to deliver requests.
82
+ * @param string $rootUrl The root URL used for requests to the service.
83
+ */
84
+ public function __construct(Google_Client $client, $rootUrl = null)
85
+ {
86
+ parent::__construct($client);
87
+ $this->rootUrl = $rootUrl ?: 'https://www.googleapis.com/';
88
+ $this->servicePath = 'gmail/v1/users/';
89
+ $this->batchPath = 'batch/gmail/v1';
90
+ $this->version = 'v1';
91
+ $this->serviceName = 'gmail';
92
+
93
+ $this->users = new Google_Service_Gmail_Resource_Users(
94
+ $this,
95
+ $this->serviceName,
96
+ 'users',
97
+ array(
98
+ 'methods' => array(
99
+ 'getProfile' => array(
100
+ 'path' => '{userId}/profile',
101
+ 'httpMethod' => 'GET',
102
+ 'parameters' => array(
103
+ 'userId' => array(
104
+ 'location' => 'path',
105
+ 'type' => 'string',
106
+ 'required' => true,
107
+ ),
108
+ ),
109
+ ),'stop' => array(
110
+ 'path' => '{userId}/stop',
111
+ 'httpMethod' => 'POST',
112
+ 'parameters' => array(
113
+ 'userId' => array(
114
+ 'location' => 'path',
115
+ 'type' => 'string',
116
+ 'required' => true,
117
+ ),
118
+ ),
119
+ ),'watch' => array(
120
+ 'path' => '{userId}/watch',
121
+ 'httpMethod' => 'POST',
122
+ 'parameters' => array(
123
+ 'userId' => array(
124
+ 'location' => 'path',
125
+ 'type' => 'string',
126
+ 'required' => true,
127
+ ),
128
+ ),
129
+ ),
130
+ )
131
+ )
132
+ );
133
+ $this->users_drafts = new Google_Service_Gmail_Resource_UsersDrafts(
134
+ $this,
135
+ $this->serviceName,
136
+ 'drafts',
137
+ array(
138
+ 'methods' => array(
139
+ 'create' => array(
140
+ 'path' => '{userId}/drafts',
141
+ 'httpMethod' => 'POST',
142
+ 'parameters' => array(
143
+ 'userId' => array(
144
+ 'location' => 'path',
145
+ 'type' => 'string',
146
+ 'required' => true,
147
+ ),
148
+ ),
149
+ ),'delete' => array(
150
+ 'path' => '{userId}/drafts/{id}',
151
+ 'httpMethod' => 'DELETE',
152
+ 'parameters' => array(
153
+ 'userId' => array(
154
+ 'location' => 'path',
155
+ 'type' => 'string',
156
+ 'required' => true,
157
+ ),
158
+ 'id' => array(
159
+ 'location' => 'path',
160
+ 'type' => 'string',
161
+ 'required' => true,
162
+ ),
163
+ ),
164
+ ),'get' => array(
165
+ 'path' => '{userId}/drafts/{id}',
166
+ 'httpMethod' => 'GET',
167
+ 'parameters' => array(
168
+ 'userId' => array(
169
+ 'location' => 'path',
170
+ 'type' => 'string',
171
+ 'required' => true,
172
+ ),
173
+ 'id' => array(
174
+ 'location' => 'path',
175
+ 'type' => 'string',
176
+ 'required' => true,
177
+ ),
178
+ 'format' => array(
179
+ 'location' => 'query',
180
+ 'type' => 'string',
181
+ ),
182
+ ),
183
+ ),'list' => array(
184
+ 'path' => '{userId}/drafts',
185
+ 'httpMethod' => 'GET',
186
+ 'parameters' => array(
187
+ 'userId' => array(
188
+ 'location' => 'path',
189
+ 'type' => 'string',
190
+ 'required' => true,
191
+ ),
192
+ 'includeSpamTrash' => array(
193
+ 'location' => 'query',
194
+ 'type' => 'boolean',
195
+ ),
196
+ 'maxResults' => array(
197
+ 'location' => 'query',
198
+ 'type' => 'integer',
199
+ ),
200
+ 'pageToken' => array(
201
+ 'location' => 'query',
202
+ 'type' => 'string',
203
+ ),
204
+ 'q' => array(
205
+ 'location' => 'query',
206
+ 'type' => 'string',
207
+ ),
208
+ ),
209
+ ),'send' => array(
210
+ 'path' => '{userId}/drafts/send',
211
+ 'httpMethod' => 'POST',
212
+ 'parameters' => array(
213
+ 'userId' => array(
214
+ 'location' => 'path',
215
+ 'type' => 'string',
216
+ 'required' => true,
217
+ ),
218
+ ),
219
+ ),'update' => array(
220
+ 'path' => '{userId}/drafts/{id}',
221
+ 'httpMethod' => 'PUT',
222
+ 'parameters' => array(
223
+ 'userId' => array(
224
+ 'location' => 'path',
225
+ 'type' => 'string',
226
+ 'required' => true,
227
+ ),
228
+ 'id' => array(
229
+ 'location' => 'path',
230
+ 'type' => 'string',
231
+ 'required' => true,
232
+ ),
233
+ ),
234
+ ),
235
+ )
236
+ )
237
+ );
238
+ $this->users_history = new Google_Service_Gmail_Resource_UsersHistory(
239
+ $this,
240
+ $this->serviceName,
241
+ 'history',
242
+ array(
243
+ 'methods' => array(
244
+ 'list' => array(
245
+ 'path' => '{userId}/history',
246
+ 'httpMethod' => 'GET',
247
+ 'parameters' => array(
248
+ 'userId' => array(
249
+ 'location' => 'path',
250
+ 'type' => 'string',
251
+ 'required' => true,
252
+ ),
253
+ 'historyTypes' => array(
254
+ 'location' => 'query',
255
+ 'type' => 'string',
256
+ 'repeated' => true,
257
+ ),
258
+ 'labelId' => array(
259
+ 'location' => 'query',
260
+ 'type' => 'string',
261
+ ),
262
+ 'maxResults' => array(
263
+ 'location' => 'query',
264
+ 'type' => 'integer',
265
+ ),
266
+ 'pageToken' => array(
267
+ 'location' => 'query',
268
+ 'type' => 'string',
269
+ ),
270
+ 'startHistoryId' => array(
271
+ 'location' => 'query',
272
+ 'type' => 'string',
273
+ ),
274
+ ),
275
+ ),
276
+ )
277
+ )
278
+ );
279
+ $this->users_labels = new Google_Service_Gmail_Resource_UsersLabels(
280
+ $this,
281
+ $this->serviceName,
282
+ 'labels',
283
+ array(
284
+ 'methods' => array(
285
+ 'create' => array(
286
+ 'path' => '{userId}/labels',
287
+ 'httpMethod' => 'POST',
288
+ 'parameters' => array(
289
+ 'userId' => array(
290
+ 'location' => 'path',
291
+ 'type' => 'string',
292
+ 'required' => true,
293
+ ),
294
+ ),
295
+ ),'delete' => array(
296
+ 'path' => '{userId}/labels/{id}',
297
+ 'httpMethod' => 'DELETE',
298
+ 'parameters' => array(
299
+ 'userId' => array(
300
+ 'location' => 'path',
301
+ 'type' => 'string',
302
+ 'required' => true,
303
+ ),
304
+ 'id' => array(
305
+ 'location' => 'path',
306
+ 'type' => 'string',
307
+ 'required' => true,
308
+ ),
309
+ ),
310
+ ),'get' => array(
311
+ 'path' => '{userId}/labels/{id}',
312
+ 'httpMethod' => 'GET',
313
+ 'parameters' => array(
314
+ 'userId' => array(
315
+ 'location' => 'path',
316
+ 'type' => 'string',
317
+ 'required' => true,
318
+ ),
319
+ 'id' => array(
320
+ 'location' => 'path',
321
+ 'type' => 'string',
322
+ 'required' => true,
323
+ ),
324
+ ),
325
+ ),'list' => array(
326
+ 'path' => '{userId}/labels',
327
+ 'httpMethod' => 'GET',
328
+ 'parameters' => array(
329
+ 'userId' => array(
330
+ 'location' => 'path',
331
+ 'type' => 'string',
332
+ 'required' => true,
333
+ ),
334
+ ),
335
+ ),'patch' => array(
336
+ 'path' => '{userId}/labels/{id}',
337
+ 'httpMethod' => 'PATCH',
338
+ 'parameters' => array(
339
+ 'userId' => array(
340
+ 'location' => 'path',
341
+ 'type' => 'string',
342
+ 'required' => true,
343
+ ),
344
+ 'id' => array(
345
+ 'location' => 'path',
346
+ 'type' => 'string',
347
+ 'required' => true,
348
+ ),
349
+ ),
350
+ ),'update' => array(
351
+ 'path' => '{userId}/labels/{id}',
352
+ 'httpMethod' => 'PUT',
353
+ 'parameters' => array(
354
+ 'userId' => array(
355
+ 'location' => 'path',
356
+ 'type' => 'string',
357
+ 'required' => true,
358
+ ),
359
+ 'id' => array(
360
+ 'location' => 'path',
361
+ 'type' => 'string',
362
+ 'required' => true,
363
+ ),
364
+ ),
365
+ ),
366
+ )
367
+ )
368
+ );
369
+ $this->users_messages = new Google_Service_Gmail_Resource_UsersMessages(
370
+ $this,
371
+ $this->serviceName,
372
+ 'messages',
373
+ array(
374
+ 'methods' => array(
375
+ 'batchDelete' => array(
376
+ 'path' => '{userId}/messages/batchDelete',
377
+ 'httpMethod' => 'POST',
378
+ 'parameters' => array(
379
+ 'userId' => array(
380
+ 'location' => 'path',
381
+ 'type' => 'string',
382
+ 'required' => true,
383
+ ),
384
+ ),
385
+ ),'batchModify' => array(
386
+ 'path' => '{userId}/messages/batchModify',
387
+ 'httpMethod' => 'POST',
388
+ 'parameters' => array(
389
+ 'userId' => array(
390
+ 'location' => 'path',
391
+ 'type' => 'string',
392
+ 'required' => true,
393
+ ),
394
+ ),
395
+ ),'delete' => array(
396
+ 'path' => '{userId}/messages/{id}',
397
+ 'httpMethod' => 'DELETE',
398
+ 'parameters' => array(
399
+ 'userId' => array(
400
+ 'location' => 'path',
401
+ 'type' => 'string',
402
+ 'required' => true,
403
+ ),
404
+ 'id' => array(
405
+ 'location' => 'path',
406
+ 'type' => 'string',
407
+ 'required' => true,
408
+ ),
409
+ ),
410
+ ),'get' => array(
411
+ 'path' => '{userId}/messages/{id}',
412
+ 'httpMethod' => 'GET',
413
+ 'parameters' => array(
414
+ 'userId' => array(
415
+ 'location' => 'path',
416
+ 'type' => 'string',
417
+ 'required' => true,
418
+ ),
419
+ 'id' => array(
420
+ 'location' => 'path',
421
+ 'type' => 'string',
422
+ 'required' => true,
423
+ ),
424
+ 'format' => array(
425
+ 'location' => 'query',
426
+ 'type' => 'string',
427
+ ),
428
+ 'metadataHeaders' => array(
429
+ 'location' => 'query',
430
+ 'type' => 'string',
431
+ 'repeated' => true,
432
+ ),
433
+ ),
434
+ ),'import' => array(
435
+ 'path' => '{userId}/messages/import',
436
+ 'httpMethod' => 'POST',
437
+ 'parameters' => array(
438
+ 'userId' => array(
439
+ 'location' => 'path',
440
+ 'type' => 'string',
441
+ 'required' => true,
442
+ ),
443
+ 'deleted' => array(
444
+ 'location' => 'query',
445
+ 'type' => 'boolean',
446
+ ),
447
+ 'internalDateSource' => array(
448
+ 'location' => 'query',
449
+ 'type' => 'string',
450
+ ),
451
+ 'neverMarkSpam' => array(
452
+ 'location' => 'query',
453
+ 'type' => 'boolean',
454
+ ),
455
+ 'processForCalendar' => array(
456
+ 'location' => 'query',
457
+ 'type' => 'boolean',
458
+ ),
459
+ ),
460
+ ),'insert' => array(
461
+ 'path' => '{userId}/messages',
462
+ 'httpMethod' => 'POST',
463
+ 'parameters' => array(
464
+ 'userId' => array(
465
+ 'location' => 'path',
466
+ 'type' => 'string',
467
+ 'required' => true,
468
+ ),
469
+ 'deleted' => array(
470
+ 'location' => 'query',
471
+ 'type' => 'boolean',
472
+ ),
473
+ 'internalDateSource' => array(
474
+ 'location' => 'query',
475
+ 'type' => 'string',
476
+ ),
477
+ ),
478
+ ),'list' => array(
479
+ 'path' => '{userId}/messages',
480
+ 'httpMethod' => 'GET',
481
+ 'parameters' => array(
482
+ 'userId' => array(
483
+ 'location' => 'path',
484
+ 'type' => 'string',
485
+ 'required' => true,
486
+ ),
487
+ 'includeSpamTrash' => array(
488
+ 'location' => 'query',
489
+ 'type' => 'boolean',
490
+ ),
491
+ 'labelIds' => array(
492
+ 'location' => 'query',
493
+ 'type' => 'string',
494
+ 'repeated' => true,
495
+ ),
496
+ 'maxResults' => array(
497
+ 'location' => 'query',
498
+ 'type' => 'integer',
499
+ ),
500
+ 'pageToken' => array(
501
+ 'location' => 'query',
502
+ 'type' => 'string',
503
+ ),
504
+ 'q' => array(
505
+ 'location' => 'query',
506
+ 'type' => 'string',
507
+ ),
508
+ ),
509
+ ),'modify' => array(
510
+ 'path' => '{userId}/messages/{id}/modify',
511
+ 'httpMethod' => 'POST',
512
+ 'parameters' => array(
513
+ 'userId' => array(
514
+ 'location' => 'path',
515
+ 'type' => 'string',
516
+ 'required' => true,
517
+ ),
518
+ 'id' => array(
519
+ 'location' => 'path',
520
+ 'type' => 'string',
521
+ 'required' => true,
522
+ ),
523
+ ),
524
+ ),'send' => array(
525
+ 'path' => '{userId}/messages/send',
526
+ 'httpMethod' => 'POST',
527
+ 'parameters' => array(
528
+ 'userId' => array(
529
+ 'location' => 'path',
530
+ 'type' => 'string',
531
+ 'required' => true,
532
+ ),
533
+ ),
534
+ ),'trash' => array(
535
+ 'path' => '{userId}/messages/{id}/trash',
536
+ 'httpMethod' => 'POST',
537
+ 'parameters' => array(
538
+ 'userId' => array(
539
+ 'location' => 'path',
540
+ 'type' => 'string',
541
+ 'required' => true,
542
+ ),
543
+ 'id' => array(
544
+ 'location' => 'path',
545
+ 'type' => 'string',
546
+ 'required' => true,
547
+ ),
548
+ ),
549
+ ),'untrash' => array(
550
+ 'path' => '{userId}/messages/{id}/untrash',
551
+ 'httpMethod' => 'POST',
552
+ 'parameters' => array(
553
+ 'userId' => array(
554
+ 'location' => 'path',
555
+ 'type' => 'string',
556
+ 'required' => true,
557
+ ),
558
+ 'id' => array(
559
+ 'location' => 'path',
560
+ 'type' => 'string',
561
+ 'required' => true,
562
+ ),
563
+ ),
564
+ ),
565
+ )
566
+ )
567
+ );
568
+ $this->users_messages_attachments = new Google_Service_Gmail_Resource_UsersMessagesAttachments(
569
+ $this,
570
+ $this->serviceName,
571
+ 'attachments',
572
+ array(
573
+ 'methods' => array(
574
+ 'get' => array(
575
+ 'path' => '{userId}/messages/{messageId}/attachments/{id}',
576
+ 'httpMethod' => 'GET',
577
+ 'parameters' => array(
578
+ 'userId' => array(
579
+ 'location' => 'path',
580
+ 'type' => 'string',
581
+ 'required' => true,
582
+ ),
583
+ 'messageId' => array(
584
+ 'location' => 'path',
585
+ 'type' => 'string',
586
+ 'required' => true,
587
+ ),
588
+ 'id' => array(
589
+ 'location' => 'path',
590
+ 'type' => 'string',
591
+ 'required' => true,
592
+ ),
593
+ ),
594
+ ),
595
+ )
596
+ )
597
+ );
598
+ $this->users_settings = new Google_Service_Gmail_Resource_UsersSettings(
599
+ $this,
600
+ $this->serviceName,
601
+ 'settings',
602
+ array(
603
+ 'methods' => array(
604
+ 'getAutoForwarding' => array(
605
+ 'path' => '{userId}/settings/autoForwarding',
606
+ 'httpMethod' => 'GET',
607
+ 'parameters' => array(
608
+ 'userId' => array(
609
+ 'location' => 'path',
610
+ 'type' => 'string',
611
+ 'required' => true,
612
+ ),
613
+ ),
614
+ ),'getImap' => array(
615
+ 'path' => '{userId}/settings/imap',
616
+ 'httpMethod' => 'GET',
617
+ 'parameters' => array(
618
+ 'userId' => array(
619
+ 'location' => 'path',
620
+ 'type' => 'string',
621
+ 'required' => true,
622
+ ),
623
+ ),
624
+ ),'getLanguage' => array(
625
+ 'path' => '{userId}/settings/language',
626
+ 'httpMethod' => 'GET',
627
+ 'parameters' => array(
628
+ 'userId' => array(
629
+ 'location' => 'path',
630
+ 'type' => 'string',
631
+ 'required' => true,
632
+ ),
633
+ ),
634
+ ),'getPop' => array(
635
+ 'path' => '{userId}/settings/pop',
636
+ 'httpMethod' => 'GET',
637
+ 'parameters' => array(
638
+ 'userId' => array(
639
+ 'location' => 'path',
640
+ 'type' => 'string',
641
+ 'required' => true,
642
+ ),
643
+ ),
644
+ ),'getVacation' => array(
645
+ 'path' => '{userId}/settings/vacation',
646
+ 'httpMethod' => 'GET',
647
+ 'parameters' => array(
648
+ 'userId' => array(
649
+ 'location' => 'path',
650
+ 'type' => 'string',
651
+ 'required' => true,
652
+ ),
653
+ ),
654
+ ),'updateAutoForwarding' => array(
655
+ 'path' => '{userId}/settings/autoForwarding',
656
+ 'httpMethod' => 'PUT',
657
+ 'parameters' => array(
658
+ 'userId' => array(
659
+ 'location' => 'path',
660
+ 'type' => 'string',
661
+ 'required' => true,
662
+ ),
663
+ ),
664
+ ),'updateImap' => array(
665
+ 'path' => '{userId}/settings/imap',
666
+ 'httpMethod' => 'PUT',
667
+ 'parameters' => array(
668
+ 'userId' => array(
669
+ 'location' => 'path',
670
+ 'type' => 'string',
671
+ 'required' => true,
672
+ ),
673
+ ),
674
+ ),'updateLanguage' => array(
675
+ 'path' => '{userId}/settings/language',
676
+ 'httpMethod' => 'PUT',
677
+ 'parameters' => array(
678
+ 'userId' => array(
679
+ 'location' => 'path',
680
+ 'type' => 'string',
681
+ 'required' => true,
682
+ ),
683
+ ),
684
+ ),'updatePop' => array(
685
+ 'path' => '{userId}/settings/pop',
686
+ 'httpMethod' => 'PUT',
687
+ 'parameters' => array(
688
+ 'userId' => array(
689
+ 'location' => 'path',
690
+ 'type' => 'string',
691
+ 'required' => true,