Version Description
- 2020-09-17 =
- Added: Prefix all 3rd-party libraries to avoid compatibility issues with other plugins using different versions of the same libraries.
- Changed: Sendinblue SDK library version to 6.4.
- Changed: Google apiclient library version to 2.7.
- Changed: Improve plugin settings input and toggle focus states.
- Fixed: Hide admin bar menu when errors are present and the "Hide Email Delivery Errors" setting is enabled.
- Fixed: CSS sourcemaps warning messages in browser dev tools.
- Fixed: Action Scheduler tasks being registered too early and not getting assigned to the plugin group.
- Fixed: Admin bar CSS asset loading when the admin bar is not showing.
- Fixed: Fatal error on plugin uninstall if
ActionScheduler_QueueRunner::unhook_dispatch_async_request
method does not exist. - Fixed: PHP Deprecated notice for
base_convert()
function usage in the Mailgun mailer.
Download this release
Release Info
Developer | slaFFik |
Plugin | WP Mail SMTP by WPForms |
Version | 2.4.0 |
Comparing to | |
See all releases |
Code changes from version 2.3.1 to 2.4.0
- assets/css/admin-bar.min.css +0 -2
- assets/css/admin-notifications.min.css +0 -2
- assets/css/smtp-about.min.css +1 -3
- assets/css/smtp-admin.min.css +1 -3
- assets/images/about/plugin-mi.png +0 -0
- assets/images/email/wp-mail-smtp.png +0 -0
- assets/images/loaders/loading-blue.svg +1 -0
- assets/images/loaders/loading-white.svg +1 -0
- assets/images/loaders/loading.svg +1 -0
- assets/js/smtp-admin.js +1 -1
- assets/js/smtp-admin.min.js +1 -1
- assets/languages/wp-mail-smtp.pot +70 -540
- assets/libs/jquery-confirm.min.css +8 -8
- assets/libs/jquery-confirm.min.js +9 -9
- readme.txt +18 -4
- src/Admin/AdminBarMenu.php +13 -2
- src/Admin/Notifications.php +2 -1
- src/Admin/PageInterface.php +45 -45
- src/Admin/Pages/About.php +66 -51
- src/Admin/Pages/AuthTab.php +63 -63
- src/Conflicts.php +184 -184
- src/Core.php +25 -0
- src/Geo.php +22 -22
- src/MailCatcher.php +12 -0
- src/MailCatcherInterface.php +9 -0
- src/MailCatcherV6.php +12 -0
- src/Options.php +13 -10
- src/Providers/AmazonSES/Options.php +44 -44
- src/Providers/AuthAbstract.php +148 -148
- src/Providers/AuthInterface.php +30 -30
- src/Providers/Gmail/Auth.php +20 -20
- src/Providers/Gmail/Mailer.php +6 -4
- src/Providers/Loader.php +2 -2
- src/Providers/Mail/Mailer.php +49 -49
- src/Providers/Mail/Options.php +42 -42
- src/Providers/Mailgun/Mailer.php +3 -4
- src/Providers/Outlook/Options.php +44 -44
- src/Providers/Pepipost/Mailer.php +32 -32
- src/Providers/SMTP/Mailer.php +32 -32
- src/Providers/Sendinblue/Api.php +98 -93
- src/Providers/Sendinblue/Mailer.php +8 -5
- src/Providers/Sendinblue/Options.php +30 -18
- src/Tasks/Task.php +1 -1
- src/Tasks/Tasks.php +3 -3
- src/Upgrade.php +71 -71
- src/UsageTracking/SendUsageTask.php +1 -1
- uninstall.php +5 -1
- vendor/autoload.php +1 -1
- vendor/composer/ClassLoader.php +1 -1
- vendor/composer/autoload_classmap.php +520 -2
- vendor/composer/autoload_files.php +7 -7
- vendor/composer/autoload_namespaces.php +0 -2
- vendor/composer/autoload_psr4.php +1 -13
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +535 -104
- vendor/google/apiclient-services/src/Google/Service/Gmail.php +0 -1232
- vendor/google/apiclient-services/src/Google/Service/Gmail/AutoForwarding.php +0 -48
- vendor/google/apiclient-services/src/Google/Service/Gmail/BatchDeleteMessagesRequest.php +0 -31
- vendor/google/apiclient-services/src/Google/Service/Gmail/BatchModifyMessagesRequest.php +0 -49
- vendor/google/apiclient-services/src/Google/Service/Gmail/Delegate.php +0 -39
- vendor/google/apiclient-services/src/Google/Service/Gmail/Draft.php +0 -46
- vendor/google/apiclient-services/src/Google/Service/Gmail/Filter.php +0 -62
- vendor/google/apiclient-services/src/Google/Service/Gmail/FilterAction.php +0 -49
- vendor/google/apiclient-services/src/Google/Service/Gmail/FilterCriteria.php +0 -102
- vendor/google/apiclient-services/src/Google/Service/Gmail/ForwardingAddress.php +0 -39
- vendor/google/apiclient-services/src/Google/Service/Gmail/History.php +0 -111
- vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelAdded.php +0 -47
- vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelRemoved.php +0 -47
- vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageAdded.php +0 -37
- vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageDeleted.php +0 -37
- vendor/google/apiclient-services/src/Google/Service/Gmail/ImapSettings.php +0 -57
- vendor/google/apiclient-services/src/Google/Service/Gmail/Label.php +0 -118
- vendor/google/apiclient-services/src/Google/Service/Gmail/LabelColor.php +0 -39
- vendor/google/apiclient-services/src/Google/Service/Gmail/LanguageSettings.php +0 -30
- vendor/google/apiclient-services/src/Google/Service/Gmail/ListDelegatesResponse.php +0 -38
- vendor/google/apiclient-services/src/Google/Service/Gmail/ListDraftsResponse.php +0 -56
- vendor/google/apiclient-services/src/Google/Service/Gmail/ListFiltersResponse.php +0 -38
- vendor/google/apiclient-services/src/Google/Service/Gmail/ListForwardingAddressesResponse.php +0 -38
- vendor/google/apiclient-services/src/Google/Service/Gmail/ListHistoryResponse.php +0 -56
- vendor/google/apiclient-services/src/Google/Service/Gmail/ListLabelsResponse.php +0 -38
- vendor/google/apiclient-services/src/Google/Service/Gmail/ListMessagesResponse.php +0 -56
- vendor/google/apiclient-services/src/Google/Service/Gmail/ListSendAsResponse.php +0 -38
- vendor/google/apiclient-services/src/Google/Service/Gmail/ListSmimeInfoResponse.php +0 -38
- vendor/google/apiclient-services/src/Google/Service/Gmail/ListThreadsResponse.php +0 -56
- vendor/google/apiclient-services/src/Google/Service/Gmail/Message.php +0 -110
- vendor/google/apiclient-services/src/Google/Service/Gmail/MessagePart.php +0 -97
- vendor/google/apiclient-services/src/Google/Service/Gmail/MessagePartBody.php +0 -48
- vendor/google/apiclient-services/src/Google/Service/Gmail/MessagePartHeader.php +0 -39
- vendor/google/apiclient-services/src/Google/Service/Gmail/ModifyMessageRequest.php +0 -40
- vendor/google/apiclient-services/src/Google/Service/Gmail/ModifyThreadRequest.php +0 -40
- vendor/google/apiclient-services/src/Google/Service/Gmail/PopSettings.php +0 -39
- vendor/google/apiclient-services/src/Google/Service/Gmail/Profile.php +0 -57
- vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php +0 -71
- vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php +0 -130
- vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php +0 -61
- vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php +0 -119
- vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php +0 -229
- vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessagesAttachments.php +0 -44
- vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php +0 -184
- vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsDelegates.php +0 -119
- vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsFilters.php +0 -86
- vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php +0 -97
- vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php +0 -157
- vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAsSmimeInfo.php +0 -115
- vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php +0 -135
- vendor/google/apiclient-services/src/Google/Service/Gmail/SendAs.php +0 -109
- vendor/google/apiclient-services/src/Google/Service/Gmail/SmimeInfo.php +0 -84
- vendor/google/apiclient-services/src/Google/Service/Gmail/SmtpMsa.php +0 -66
- vendor/google/apiclient-services/src/Google/Service/Gmail/Thread.php +0 -65
- vendor/google/apiclient-services/src/Google/Service/Gmail/VacationSettings.php +0 -93
- vendor/google/apiclient-services/src/Google/Service/Gmail/WatchRequest.php +0 -49
- vendor/google/apiclient-services/src/Google/Service/Gmail/WatchResponse.php +0 -39
- vendor/google/apiclient/src/Google/AccessToken/Revoke.php +0 -78
- vendor/google/apiclient/src/Google/AccessToken/Verify.php +0 -273
- vendor/google/apiclient/src/Google/AuthHandler/AuthHandlerFactory.php +0 -42
- vendor/google/apiclient/src/Google/AuthHandler/Guzzle5AuthHandler.php +0 -99
- vendor/google/apiclient/src/Google/AuthHandler/Guzzle6AuthHandler.php +0 -106
- vendor/google/apiclient/src/Google/Client.php +0 -1185
- vendor/google/apiclient/src/Google/Collection.php +0 -100
- vendor/google/apiclient/src/Google/Exception.php +0 -20
- vendor/google/apiclient/src/Google/Http/Batch.php +0 -253
- vendor/google/apiclient/src/Google/Http/MediaFileUpload.php +0 -353
- vendor/google/apiclient/src/Google/Http/REST.php +0 -182
- vendor/google/apiclient/src/Google/Model.php +0 -317
- vendor/google/apiclient/src/Google/Service.php +0 -56
- vendor/google/apiclient/src/Google/Service/Exception.php +0 -68
- vendor/google/apiclient/src/Google/Service/Resource.php +0 -302
- vendor/google/apiclient/src/Google/Task/Exception.php +0 -20
- vendor/google/apiclient/src/Google/Task/Retryable.php +0 -24
- vendor/google/apiclient/src/Google/Task/Runner.php +0 -281
- vendor/google/apiclient/src/Google/Utils/UriTemplate.php +0 -333
- vendor/google/apiclient/src/Google/autoload.php +0 -21
- vendor/google/auth/COPYING +0 -202
- vendor/google/auth/LICENSE +0 -203
- vendor/google/auth/autoload.php +0 -34
- vendor/google/auth/src/AccessToken.php +0 -479
- vendor/google/auth/src/ApplicationDefaultCredentials.php +0 -279
- vendor/google/auth/src/Cache/InvalidArgumentException.php +0 -24
- vendor/google/auth/src/Cache/Item.php +0 -190
- vendor/google/auth/src/Cache/MemoryCacheItemPool.php +0 -154
- vendor/google/auth/src/Cache/SysVCacheItemPool.php +0 -241
- vendor/google/auth/src/CacheTrait.php +0 -83
- vendor/google/auth/src/Credentials/AppIdentityCredentials.php +0 -230
- vendor/google/auth/src/Credentials/GCECredentials.php +0 -485
- vendor/google/auth/src/Credentials/IAMCredentials.php +0 -91
- vendor/google/auth/src/Credentials/InsecureCredentials.php +0 -70
- vendor/google/auth/src/Credentials/ServiceAccountCredentials.php +0 -259
- vendor/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php +0 -191
- vendor/google/auth/src/Credentials/UserRefreshCredentials.php +0 -138
- vendor/google/auth/src/CredentialsLoader.php +0 -235
- vendor/google/auth/src/FetchAuthTokenCache.php +0 -191
- vendor/google/auth/src/FetchAuthTokenInterface.php +0 -54
- vendor/google/auth/src/GetQuotaProjectInterface.php +0 -33
- vendor/google/auth/src/HttpHandler/Guzzle5HttpHandler.php +0 -126
- vendor/google/auth/src/HttpHandler/Guzzle6HttpHandler.php +0 -62
- vendor/google/auth/src/HttpHandler/Guzzle7HttpHandler.php +0 -21
- vendor/google/auth/src/HttpHandler/HttpClientCache.php +0 -54
- vendor/google/auth/src/HttpHandler/HttpHandlerFactory.php +0 -53
- vendor/google/auth/src/Iam.php +0 -99
- vendor/google/auth/src/Middleware/AuthTokenMiddleware.php +0 -148
- vendor/google/auth/src/Middleware/ScopedAccessTokenMiddleware.php +0 -175
- vendor/google/auth/src/Middleware/SimpleMiddleware.php +0 -92
- vendor/google/auth/src/OAuth2.php +0 -1408
- vendor/google/auth/src/ProjectIdProviderInterface.php +0 -18
assets/css/admin-bar.min.css
CHANGED
@@ -1,3 +1 @@
|
|
1 |
#wpadminbar .wp-mail-smtp-admin-bar-menu-notification-counter,#wpadminbar .wp-mail-smtp-admin-bar-menu-error{display:inline-block !important;vertical-align:top !important;box-sizing:border-box !important;margin:7px 0 0 2px !important;padding:0 5px !important;min-width:18px !important;height:18px !important;border-radius:9px !important;background-color:#ca4a1f !important;color:#fff !important;font-size:11px !important;line-height:1.6 !important;text-align:center !important}#wpadminbar .wp-mail-smtp-admin-bar-menu-notification-counter span,#wpadminbar .wp-mail-smtp-admin-bar-menu-error span{line-height:1 !important;font-size:11px !important}
|
2 |
-
|
3 |
-
/*# sourceMappingURL=admin-bar.min.css.map */
|
1 |
#wpadminbar .wp-mail-smtp-admin-bar-menu-notification-counter,#wpadminbar .wp-mail-smtp-admin-bar-menu-error{display:inline-block !important;vertical-align:top !important;box-sizing:border-box !important;margin:7px 0 0 2px !important;padding:0 5px !important;min-width:18px !important;height:18px !important;border-radius:9px !important;background-color:#ca4a1f !important;color:#fff !important;font-size:11px !important;line-height:1.6 !important;text-align:center !important}#wpadminbar .wp-mail-smtp-admin-bar-menu-notification-counter span,#wpadminbar .wp-mail-smtp-admin-bar-menu-error span{line-height:1 !important;font-size:11px !important}
|
|
|
|
assets/css/admin-notifications.min.css
CHANGED
@@ -1,3 +1 @@
|
|
1 |
#wp-mail-smtp-notifications{position:relative;background:#FFFFFF 0 0 no-repeat padding-box;box-shadow:0 5px 15px #0000000D;border-radius:6px;opacity:1;min-height:48px;padding:15px 102px 15px 72px;margin:0 0 14px 0}#wp-mail-smtp-notifications *{box-sizing:border-box}#wp-mail-smtp-notifications .bell{position:absolute;top:15px;left:15px;width:42px;height:48px}#wp-mail-smtp-notifications .messages .message{display:none}#wp-mail-smtp-notifications .messages .message.current{display:block}#wp-mail-smtp-notifications .messages .message .title{font-weight:bold;font-size:17px;line-height:20px;margin:0;color:#444}#wp-mail-smtp-notifications .messages .message .content{font-weight:normal;font-size:13px;line-height:20px;margin:6px 0 40px 0}#wp-mail-smtp-notifications .messages .message .buttons{margin:-30px 80px 0 0}#wp-mail-smtp-notifications .messages .message .buttons a{margin:0 6px 0 0;padding:8px 10px;line-height:13px;font-size:13px;min-height:unset}#wp-mail-smtp-notifications .messages .message .buttons .button-secondary{border:1px solid #0071A1}#wp-mail-smtp-notifications .dismiss{position:absolute;top:15px;right:15px;width:16px;height:16px;color:#72777C;font-size:16px;cursor:pointer;text-align:center;vertical-align:middle;line-height:16px}#wp-mail-smtp-notifications .dismiss:hover{color:#dc3232}#wp-mail-smtp-notifications .navigation{position:absolute;bottom:15px;right:15px;width:63px;height:30px}#wp-mail-smtp-notifications .navigation a{display:block;width:30px;height:30px;border:1px solid #7E8993;border-radius:3px;font-size:8px;text-align:center;vertical-align:middle;line-height:30px;cursor:pointer;background-color:#ffffff;color:#41454A}#wp-mail-smtp-notifications .navigation a:hover{background-color:#f1f1f1}#wp-mail-smtp-notifications .navigation a .dashicons{margin-top:8px;font-size:12px}#wp-mail-smtp-notifications .navigation .prev{float:left}#wp-mail-smtp-notifications .navigation .next{float:right}#wp-mail-smtp-notifications .navigation .disabled{border-color:#dddddd;color:#A0A5AA;cursor:default}#wp-mail-smtp-notifications .navigation .disabled:hover{background-color:#ffffff}@media screen and (max-width: 768px){#wp-mail-smtp-notifications{padding:15px 15px 15px 72px}#wp-mail-smtp-notifications .messages .message .title{margin:0 30px 0 0}#wp-mail-smtp-notifications .messages .message .content{font-size:16px;line-height:24px}#wp-mail-smtp-notifications .messages .message .buttons{margin:-30px 80px 0 0}#wp-mail-smtp-notifications .messages .message .buttons a{margin:0;display:table}#wp-mail-smtp-notifications .messages .message .buttons .button-secondary{margin-top:6px}}
|
2 |
-
|
3 |
-
/*# sourceMappingURL=admin-notifications.min.css.map */
|
1 |
#wp-mail-smtp-notifications{position:relative;background:#FFFFFF 0 0 no-repeat padding-box;box-shadow:0 5px 15px #0000000D;border-radius:6px;opacity:1;min-height:48px;padding:15px 102px 15px 72px;margin:0 0 14px 0}#wp-mail-smtp-notifications *{box-sizing:border-box}#wp-mail-smtp-notifications .bell{position:absolute;top:15px;left:15px;width:42px;height:48px}#wp-mail-smtp-notifications .messages .message{display:none}#wp-mail-smtp-notifications .messages .message.current{display:block}#wp-mail-smtp-notifications .messages .message .title{font-weight:bold;font-size:17px;line-height:20px;margin:0;color:#444}#wp-mail-smtp-notifications .messages .message .content{font-weight:normal;font-size:13px;line-height:20px;margin:6px 0 40px 0}#wp-mail-smtp-notifications .messages .message .buttons{margin:-30px 80px 0 0}#wp-mail-smtp-notifications .messages .message .buttons a{margin:0 6px 0 0;padding:8px 10px;line-height:13px;font-size:13px;min-height:unset}#wp-mail-smtp-notifications .messages .message .buttons .button-secondary{border:1px solid #0071A1}#wp-mail-smtp-notifications .dismiss{position:absolute;top:15px;right:15px;width:16px;height:16px;color:#72777C;font-size:16px;cursor:pointer;text-align:center;vertical-align:middle;line-height:16px}#wp-mail-smtp-notifications .dismiss:hover{color:#dc3232}#wp-mail-smtp-notifications .navigation{position:absolute;bottom:15px;right:15px;width:63px;height:30px}#wp-mail-smtp-notifications .navigation a{display:block;width:30px;height:30px;border:1px solid #7E8993;border-radius:3px;font-size:8px;text-align:center;vertical-align:middle;line-height:30px;cursor:pointer;background-color:#ffffff;color:#41454A}#wp-mail-smtp-notifications .navigation a:hover{background-color:#f1f1f1}#wp-mail-smtp-notifications .navigation a .dashicons{margin-top:8px;font-size:12px}#wp-mail-smtp-notifications .navigation .prev{float:left}#wp-mail-smtp-notifications .navigation .next{float:right}#wp-mail-smtp-notifications .navigation .disabled{border-color:#dddddd;color:#A0A5AA;cursor:default}#wp-mail-smtp-notifications .navigation .disabled:hover{background-color:#ffffff}@media screen and (max-width: 768px){#wp-mail-smtp-notifications{padding:15px 15px 15px 72px}#wp-mail-smtp-notifications .messages .message .title{margin:0 30px 0 0}#wp-mail-smtp-notifications .messages .message .content{font-size:16px;line-height:24px}#wp-mail-smtp-notifications .messages .message .buttons{margin:-30px 80px 0 0}#wp-mail-smtp-notifications .messages .message .buttons a{margin:0;display:table}#wp-mail-smtp-notifications .messages .message .buttons .button-secondary{margin-top:6px}}
|
|
|
|
assets/css/smtp-about.min.css
CHANGED
@@ -1,3 +1 @@
|
|
1 |
-
.wp-mail-smtp-page-about{padding:0 !important}.wp-mail-smtp-page-about *,.wp-mail-smtp-page-about *::before,.wp-mail-smtp-page-about *::after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins{padding:0 10px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container{margin-left:-20px;margin-right:-20px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-container{padding:0 10px;float:left;width:33.333333%;margin-bottom:20px}@media (max-width: 1249px){.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-container{width:50%}}@media (max-width: 781px){.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-container{width:100%;margin-bottom:20px}}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container h5{font-size:17px;font-weight:700}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item{background-color:#fff;border:1px solid #ddd;border-radius:3px;margin:0}@media (max-width: 781px){.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item{margin:0 0}}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item img{border:1px solid #eee;float:left;max-width:75px;padding:10px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item img[src*="-mi"]{padding:13px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item h5{margin:0 0 10px 100px;font-size:16px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item p{margin:0 0 0 100px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .details{padding:20px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .actions{background-color:#f7f7f7;border-top:1px solid #ddd;padding:20px;position:relative}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .actions .msg{background-color:#f7f7f7;position:absolute;text-align:center;font-weight:600;top:0;left:0;height:100%;width:100%;z-index:99;padding:20px;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-align-items:center;-ms-align-items:center;align-items:center;justify-content:center}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .actions .msg.success{color:#2a9b39}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .actions .msg.error{color:red}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .status{float:left;padding-top:8px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .status .status-inactive{color:red}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .status .status-download{color:#666}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .status .status-active{color:#2a9b39}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button{float:right}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button{background:none;cursor:pointer;width:140px;text-align:center;display:inline-block;text-decoration:none;font-size:13px;line-height:26px;height:28px;margin:0;padding:0 10px 1px;-webkit-appearance:none;border-radius:3px;border:1px solid #cccccc;background:#f7f7f7;box-shadow:0 1px 0 #cccccc;font-weight:normal}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button:hover,.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button:focus,.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.loading{background:#fafafa;border-color:#999;color:#23282d}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button .fa{margin-right:8px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button .fa.fa-spinner{margin-right:0}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-primary{background:#0085ba;border-color:#0073aa #006799 #006799;box-shadow:0 1px 0 #006799;color:#fff;text-shadow:0 -1px 1px #006799, 1px 0 1px #006799, 0 1px 1px #006799, -1px 0 1px #006799}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-primary:hover,.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-primary:focus{background:#008ec2;border-color:#006799;color:#fff}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-primary .fa-spinner{color:#fff}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-secondary{color:#555;border-color:#cccccc;background:#f7f7f7;box-shadow:0 1px 0 #cccccc}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-secondary:hover,.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-secondary:focus{background:#fafafa;border-color:#999;color:#23282d}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.status-active .fa{color:#2a9b39}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.status-inactive .fa{color:red}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.status-download .fa{color:#999}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.loading .fa{color:#666}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.disabled{cursor:default}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section{margin:0 0 20px;padding:30px;background:#fff;border:1px solid #E5E6E6;line-height:2}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h1,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h2,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h3,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h4,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h5{margin-top:0;padding-top:0;line-height:1.6}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h2{font-size:24px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h3{font-size:18px;margin-bottom:30px;color:#23282C}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section ul,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section p{font-size:16px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section p{margin-bottom:20px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section p.bigger{font-size:18px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section p.smaller{font-size:14px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section p:last-child{margin-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section hr{margin:30px 0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section figure{margin:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section figure img{width:100%}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section figure figcaption{font-size:14px;color:#888888;margin-top:5px;text-align:center;line-height:initial}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .wp-mail-smtp-admin-column-40{padding-left:15px}@media (max-width: 781px){.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .wp-mail-smtp-admin-column-40{width:100%;padding-left:0;padding-top:20px}}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .wp-mail-smtp-admin-column-60{padding-right:15px}@media (max-width: 781px){.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .wp-mail-smtp-admin-column-60{width:100%;padding-right:0}}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section ul.list-plain{margin-top:0;margin-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section ul.list-plain li{margin-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section ul.list-features li .fa{color:#2a9b39;margin:0 8px 0 0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .fa-star{color:gold}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .no-margin{margin:0 !important}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .no-padding{padding:0 !important}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .centered{text-align:center !important}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero{padding:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-main,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-extra{padding:30px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-extra table{width:100%}@media (max-width: 781px){.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-extra .wp-mail-smtp-admin-column-50{float:none;width:100%}}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-main{background-color:#FAFAFA;border-bottom:1px solid #E5E6E6}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-main.no-border{border-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-main p{color:#666}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero h3.call-to-action{margin-bottom:-10px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero span.price-off{color:#6AB255}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-squashed{margin-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-squashed:not(:last-of-type){border-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post h2{margin-bottom:-10px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post h3{margin-bottom:15px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post p:last-of-type{margin-bottom:30px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-20{padding-right:20px;width:auto}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-20 img{width:270px}@media (max-width: 781px){.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-20{width:20%}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-20 img{width:auto;max-width:100%}}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-80{padding-left:20px;width:calc(100% - 20px - 270px)}@media (max-width: 781px){.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-80{width:80%}}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-about-section-post-link{padding:10px 15px;background-color:#DF7739;color:#fff;border-radius:3px;text-decoration:none;margin-top:15px;font-size:14px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-about-section-post-link:hover{background-color:#B85A1B}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-about-section-post-link .fa{color:#EDBA9E;vertical-align:middle;margin-left:8px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table{border-collapse:collapse}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table tr td{border-bottom:1px solid #E5E6E6;border-right:1px solid #E5E6E6;padding:30px;vertical-align:top}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table tr td:last-of-type{border-right:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table tr:last-child td{border-bottom:none}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table p{background-repeat:no-repeat;background-size:15px auto;background-position:0 6px;margin:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table p.features-full{padding-left:30px;background-image:url(../images/about/icon-full.svg)}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table p.features-none{padding-left:30px;background-image:url(../images/about/icon-none.svg)}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table p.features-partial{padding-left:30px;background-position:-3px 0;background-size:23px auto;background-image:url(../images/about/icon-partial.svg)}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table .wp-mail-smtp-admin-about-section-hero-main{padding:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table .wp-mail-smtp-admin-about-section-hero-main h3{padding:30px 30px 30px 60px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table .wp-mail-smtp-admin-about-section-hero-main .wp-mail-smtp-admin-column-33:first-child h3{padding:30px}
|
2 |
-
|
3 |
-
/*# sourceMappingURL=smtp-about.min.css.map */
|
1 |
+
.wp-mail-smtp-page-about{padding:0 !important}.wp-mail-smtp-page-about *,.wp-mail-smtp-page-about *::before,.wp-mail-smtp-page-about *::after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins{padding:0 10px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container{margin-left:-20px;margin-right:-20px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-container{padding:0 10px;float:left;width:33.333333%;margin-bottom:20px}@media (max-width: 1249px){.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-container{width:50%}}@media (max-width: 781px){.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-container{width:100%;margin-bottom:20px}}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container h5{font-size:17px;font-weight:700}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item{background-color:#fff;border:1px solid #ddd;border-radius:3px;margin:0}@media (max-width: 781px){.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item{margin:0 0}}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item img{border:1px solid #eee;float:left;max-width:75px;padding:10px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item img[src*="-mi"]{padding:13px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item h5{margin:0 0 10px 100px;font-size:16px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item p{margin:0 0 0 100px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .details{padding:20px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .actions{background-color:#f7f7f7;border-top:1px solid #ddd;padding:20px;position:relative}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .actions .msg{background-color:#f7f7f7;position:absolute;text-align:center;font-weight:600;top:0;left:0;height:100%;width:100%;z-index:99;padding:20px;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-align-items:center;-ms-align-items:center;align-items:center;justify-content:center}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .actions .msg.success{color:#2a9b39}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .actions .msg.error{color:red}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .status{float:left;padding-top:8px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .status .status-inactive{color:red}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .status .status-download{color:#666}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .status .status-active{color:#2a9b39}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button{float:right}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button{background:none;cursor:pointer;width:140px;text-align:center;display:inline-block;text-decoration:none;font-size:13px;line-height:26px;height:28px;margin:0;padding:0 10px 1px;-webkit-appearance:none;border-radius:3px;border:1px solid #cccccc;background:#f7f7f7;box-shadow:0 1px 0 #cccccc;font-weight:normal}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button:hover,.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button:focus,.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.loading{background:#fafafa;border-color:#999;color:#23282d}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button .fa{margin-right:8px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button .fa.fa-spinner{margin-right:0}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-primary{background:#0085ba;border-color:#0073aa #006799 #006799;box-shadow:0 1px 0 #006799;color:#fff;text-shadow:0 -1px 1px #006799, 1px 0 1px #006799, 0 1px 1px #006799, -1px 0 1px #006799}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-primary:hover,.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-primary:focus{background:#008ec2;border-color:#006799;color:#fff}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-primary .fa-spinner{color:#fff}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-secondary{color:#555;border-color:#cccccc;background:#f7f7f7;box-shadow:0 1px 0 #cccccc}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-secondary:hover,.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-secondary:focus{background:#fafafa;border-color:#999;color:#23282d}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.status-active .fa{color:#2a9b39}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.status-inactive .fa{color:red}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.status-download .fa{color:#999}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.loading .fa{color:#666}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.disabled{cursor:default}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section{margin:0 0 20px;padding:30px;background:#fff;border:1px solid #E5E6E6;line-height:2}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h1,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h2,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h3,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h4,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h5{margin-top:0;padding-top:0;line-height:1.6}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h2{font-size:24px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h3{font-size:18px;margin-bottom:30px;color:#23282C}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section ul,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section p{font-size:16px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section p{margin-bottom:20px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section p.bigger{font-size:18px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section p.smaller{font-size:14px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section p:last-child{margin-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section hr{margin:30px 0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section figure{margin:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section figure img{width:100%}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section figure figcaption{font-size:14px;color:#888888;margin-top:5px;text-align:center;line-height:initial}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .wp-mail-smtp-admin-column-40{padding-left:15px}@media (max-width: 781px){.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .wp-mail-smtp-admin-column-40{width:100%;padding-left:0;padding-top:20px}}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .wp-mail-smtp-admin-column-60{padding-right:15px}@media (max-width: 781px){.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .wp-mail-smtp-admin-column-60{width:100%;padding-right:0}}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section ul.list-plain{margin-top:0;margin-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section ul.list-plain li{margin-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section ul.list-features li .fa{color:#2a9b39;margin:0 8px 0 0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .fa-star{color:gold}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .no-margin{margin:0 !important}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .no-padding{padding:0 !important}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .centered{text-align:center !important}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero{padding:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-main,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-extra{padding:30px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-extra table{width:100%}@media (max-width: 781px){.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-extra .wp-mail-smtp-admin-column-50{float:none;width:100%}}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-main{background-color:#FAFAFA;border-bottom:1px solid #E5E6E6}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-main.no-border{border-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-main p{color:#666}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero h3.call-to-action{margin-bottom:-10px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero span.price-off{color:#6AB255}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-squashed{margin-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-squashed:not(:last-of-type){border-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post h2{margin-bottom:-10px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post h3{margin-bottom:15px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post p:last-of-type{margin-bottom:30px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-20{padding-right:20px;width:auto}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-20 img{width:270px}@media (max-width: 781px){.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-20{width:20%}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-20 img{width:auto;max-width:100%}}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-80{padding-left:20px;width:calc(100% - 20px - 270px)}@media (max-width: 781px){.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-80{width:80%}}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-about-section-post-link{padding:10px 15px;background-color:#DF7739;color:#fff;border-radius:3px;text-decoration:none;margin-top:15px;font-size:14px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-about-section-post-link:hover{background-color:#B85A1B}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-about-section-post-link .fa{color:#EDBA9E;vertical-align:middle;margin-left:8px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table{border-collapse:collapse}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table tr td{border-bottom:1px solid #E5E6E6;border-right:1px solid #E5E6E6;padding:30px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table tr td:last-of-type{border-right:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table tr:last-child td{border-bottom:none}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table p{background-repeat:no-repeat;background-size:15px auto;background-position:0 6px;margin:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table p.features-full{padding-left:30px;background-image:url(../images/about/icon-full.svg)}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table p.features-none{padding-left:30px;background-image:url(../images/about/icon-none.svg)}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table p.features-partial{padding-left:30px;background-position:-3px 0;background-size:23px auto;background-image:url(../images/about/icon-partial.svg)}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table .wp-mail-smtp-admin-about-section-hero-main{padding:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table .wp-mail-smtp-admin-about-section-hero-main h3{padding:30px 30px 30px 60px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table .wp-mail-smtp-admin-about-section-hero-main .wp-mail-smtp-admin-column-33:first-child h3{padding:30px}
|
|
|
|
assets/css/smtp-admin.min.css
CHANGED
@@ -1,3 +1 @@
|
|
1 |
-
#wpcontent{padding-left:0 !important;position:relative}@media (max-width: 600px){#wpcontent{padding-top:46px}}@media (max-width: 600px){#wpbody{padding-top:0}}@-webkit-keyframes wp-mail-smtp-fade-in-stop-out{0%,100%{opacity:0}35%{opacity:1}65%{opacity:1}}@keyframes wp-mail-smtp-fade-in-stop-out{0%,100%{opacity:0}35%{opacity:1}65%{opacity:1}}body.toplevel_page_wp-mail-smtp div.jconfirm *,body.toplevel_page_wp-mail-smtp div.jconfirm *::before,body.toplevel_page_wp-mail-smtp div.jconfirm *::after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box-container div.jconfirm-box{border-radius:0;box-shadow:0 2px 6px rgba(0,0,0,0.2)}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box-container div.jconfirm-box div.jconfirm-closeIcon{color:rgba(0,0,0,0.4);top:8px;right:8px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box-container div.jconfirm-box div.jconfirm-closeIcon:hover{color:rgba(0,0,0,0.8)}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c{margin:0 0 26px 0 !important;padding:0 !important}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c .jconfirm-icon-c{margin:0 !important;color:#c4c4c4 !important;-webkit-transition:none !important;transition:none !important;-webkit-transform:none !important;-ms-transform:none !important;transform:none !important;font-size:45px !important}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c .jconfirm-icon-c i:empty{display:none}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c .jconfirm-icon-c svg{height:35px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c .jconfirm-title{display:block;color:#444}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c .jconfirm-icon-c+span.jconfirm-title{margin-top:20px !important}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content-pane{margin-bottom:0;display:block}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content-pane .jconfirm-content{overflow:inherit}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content{font-size:16px;color:#777;line-height:1.4}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content.lite-upgrade p{font-size:18px;padding:0 20px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content p{margin:0 0 20px;font-size:16px;line-height:1.5}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content p:last-of-type{margin:0}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content p.large{font-size:18px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content p.small{font-size:14px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .already-purchased{font-size:12px;color:#ccc;text-decoration:none}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .already-purchased:hover{text-decoration:underline}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-buttons .already-purchased{display:block;font-size:12px;color:#aaa;text-decoration:none;padding-top:20px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-buttons .already-purchased:hover{color:#999;text-decoration:underline}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .discount-note{text-align:center;margin:30px 0 0}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .discount-note p{background-color:#faffac;margin:0 -30px;padding:24px 60px 20px;font-size:15px;color:#4d4d4d;position:relative}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .discount-note p:after{content:url(../images/font-awesome/check-circle-solid-green.svg);width:40px;height:40px;background-color:#fff;border-radius:50%;padding:5px 6px;position:absolute;top:-20px;right:50%;margin-right:-18px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .discount-note span{font-weight:700;color:#3abc01}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .discount-note a{color:#aaa;display:block;margin-top:12px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box input[type=text]{display:block;width:99%;border:1px solid #d6d6d6;padding:10px;box-shadow:none;margin:20px auto 0 auto}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.btn-confirm{background-color:#FF982D;color:#fff;outline:none}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.btn-confirm:hover{background-color:#f97f00;border-color:#f97f00}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button,body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.btn-default{color:#666}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.btn-block{display:block;text-align:center;width:100%;margin:0 0 10px 0 !important}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.btn-normal-case{text-transform:none !important}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .error{display:none;color:red}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .wpforms-error{border:1px solid #ebccd1 !important}@media screen and (max-width: 1023px){#wp-mail-smtp-notice-bar{display:none !important}}#wp-mail-smtp-notice-bar{max-height:35px;position:relative;margin-bottom:-3px;transition:all .3s ease-out;overflow:hidden}#wp-mail-smtp-notice-bar.out{max-height:3px}#wp-mail-smtp-notice-bar .wp-amil-smtp-notice-bar-container{background-color:#DDDDDD;border-top:3px solid #FF982D;color:#777777;text-align:center;padding:7px}#wp-mail-smtp-notice-bar a{color:#FF982D}#wp-mail-smtp-notice-bar a:hover{color:#f97f00}#wp-mail-smtp-notice-bar .dismiss{position:absolute;top:0;right:0;border:none;padding:5px;margin-top:4px;background:0 0;color:#72777c;cursor:pointer}#wp-mail-smtp-notice-bar .dismiss:before{background:0 0;color:#72777c;content:"\f335";display:block;font:normal 20px/20px dashicons;speak:none;height:20px;text-align:center;width:20px;-webkit-font-smoothing:antialiased}#screen-meta-links .screen-meta-toggle{position:absolute;right:20px;top:auto}#screen-meta-links,#screen-meta{display:none}#wp-mail-smtp-header-temp{position:absolute;margin:0;top:-1px;left:20px;right:20px;z-index:99}#wp-mail-smtp-header{border-top:3px solid #FF982D;padding:20px}#wp-mail-smtp-header img{display:block;margin:0;max-width:242px}@media (max-width: 782px){#wp-mail-smtp-header img{max-width:200px}}#wp-mail-smtp{margin:0}#wp-mail-smtp .wp-mail-smtp-hide{display:none}#wp-mail-smtp .wp-mail-smtp-page-title{height:58px;background-color:#fff;font-size:14px;margin:0 0 20px 0;padding:0 20px}#wp-mail-smtp .wp-mail-smtp-page-title a.tab{border-bottom:2px solid #fff;box-shadow:none;color:#666;display:inline-block;margin-right:30px;padding:20px 0 18px 0;text-decoration:none}#wp-mail-smtp .wp-mail-smtp-page-title a.tab.active{border-bottom:2px solid #FF982D}#wp-mail-smtp .wp-mail-smtp-page-title a.tab:hover{border-color:#999}#wp-mail-smtp .wp-mail-smtp-page-title a.action{padding:5px;border:0;min-height:auto;color:#fff;margin:-10px 0 0 20px}#wp-mail-smtp .wp-mail-smtp-page-title .page-title{background-color:#fff;display:inline-block;font-size:23px;margin:0;padding:20px 20px 20px 0}#wp-mail-smtp .wp-mail-smtp-page-content{padding:0 20px}#wp-mail-smtp .wp-mail-smtp-page-content *,#wp-mail-smtp .wp-mail-smtp-page-content *::before,#wp-mail-smtp .wp-mail-smtp-page-content *::after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-clear:before{content:" ";display:table}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-clear:after{clear:both;content:" ";display:table}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row{border-bottom:1px solid #e4e4e4;padding:30px 0;font-size:14px;line-height:1.3}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row:first-of-type{padding-top:10px !important}@media (max-width: 781px){#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row{padding:20px 0}}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.inactive{display:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row .wp-mail-smtp-setting-mid-row-sep{background:#e4e4e4;height:1px;border:0;margin:15px 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.section-heading{padding:20px 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.section-heading.no-desc h2,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.section-heading.no-desc h4{margin:0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.section-heading .wp-mail-smtp-setting-field{margin:0;max-width:1005px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox input[type=checkbox]{float:left;margin:1px 0 0 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox input[type=checkbox]+label{margin:0 0 0 8px;vertical-align:baseline}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox .desc{margin:0 0 0 30px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox input[type=checkbox]+label+.desc{margin:8px 0 0 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-text .wp-mail-smtp-setting-label,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-password .wp-mail-smtp-setting-label,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-number .wp-mail-smtp-setting-label,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-email .wp-mail-smtp-setting-label{padding-top:8px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-select .wp-mail-smtp-setting-label{padding-top:8px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-radio .wp-mail-smtp-setting-field input[type=radio]{margin:-3px 10px 0 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-radio .wp-mail-smtp-setting-field label{margin-right:30px;display:inline-block}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field label{vertical-align:middle;display:inline-block}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field label:hover .wp-mail-smtp-setting-toggle-switch{background-color:#999}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]{display:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked+.wp-mail-smtp-setting-toggle-switch{background-color:#46B450}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked+.wp-mail-smtp-setting-toggle-switch:before{-webkit-transform:translateX(19px);-ms-transform:translateX(19px);transform:translateX(19px)}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled+.wp-mail-smtp-setting-toggle-switch{background-color:#a0daa5;cursor:default}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked+.wp-mail-smtp-setting-toggle-switch+.wp-mail-smtp-setting-toggle-checked-label{display:inline-block}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked+.wp-mail-smtp-setting-toggle-switch+.wp-mail-smtp-setting-toggle-checked-label+.wp-mail-smtp-setting-toggle-unchecked-label{display:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled+.wp-mail-smtp-setting-toggle-switch+.wp-mail-smtp-setting-toggle-checked-label,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled+.wp-mail-smtp-setting-toggle-switch+.wp-mail-smtp-setting-toggle-unchecked-label{color:#aaa}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field .wp-mail-smtp-setting-toggle-unchecked-label,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field .wp-mail-smtp-setting-toggle-checked-label{text-transform:uppercase;font-weight:400;color:#777;font-size:13px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field .wp-mail-smtp-setting-toggle-checked-label{display:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field .wp-mail-smtp-setting-toggle-switch{position:relative;cursor:pointer;background-color:#ccc;border-radius:15px;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out;vertical-align:middle;position:relative;display:inline-block;margin:0 5px 0 0;width:40px;height:20px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field .wp-mail-smtp-setting-toggle-switch:before{position:absolute;content:"";height:14px;width:14px;left:3px;top:3px;background-color:#fff;border-radius:50%;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer{padding-bottom:20px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer{display:inline-block;width:140px;margin-right:12px;margin-bottom:12px;position:relative}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer .wp-mail-smtp-mailer-image{background:#fff;text-align:center;border:2px solid #E5E5E5;border-radius:4px;cursor:pointer;height:76px;position:relative;margin-bottom:10px;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer .wp-mail-smtp-mailer-image.is-recommended{background-image:url(../images/recommended.svg);background-repeat:no-repeat;background-size:60%;background-position:top right -2px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer .wp-mail-smtp-mailer-image img{max-width:90%;max-height:40px;display:block;position:relative;top:50%;left:50%;transform:translate(-50%, -50%);opacity:0.6;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer.wp-mail-smtp-mailer-smtp .wp-mail-smtp-mailer-image img{max-height:30px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer.active .wp-mail-smtp-mailer-image{border-color:#FF982D}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer.active .wp-mail-smtp-mailer-image img{opacity:1}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer:hover .wp-mail-smtp-mailer-image{border-color:#ccc}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer:hover .wp-mail-smtp-mailer-image img{opacity:1}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row h2,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row h4{color:#444;font-size:20px;font-weight:700;margin:0 0 6px 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row h2{margin-bottom:15px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row h3{color:#444;font-size:24px;font-weight:600;margin:0 0 20px 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p{margin:12px 0 0;font-size:14px;line-height:1.5em}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p:first-of-type{margin:8px 0 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.desc{font-style:italic;color:#777}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.buttonned{margin-top:30px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.inline-notice{margin:5px 0 15px;box-sizing:border-box;background:#fff;border-left:4px solid transparent;box-shadow:0 1px 1px 0 rgba(0,0,0,0.1)}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.inline-notice.inline-error{border-color:#dc3232;margin-bottom:5px;padding:10px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.inline-notice.inline-edu-notice{border-color:#809EB0;line-height:1.5em;padding:10px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.inline-notice a.wp-mail-smtp-mailer-notice-dismiss{float:right;color:#999DA1;margin:0 0 10px 10px;text-decoration:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.inline-notice a.wp-mail-smtp-mailer-notice-dismiss:hover{color:#666a6e}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row ul{margin:8px 0 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row ul.list li{margin-left:20px;list-style-type:disc}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list th{padding:5px 5px 5px 0;text-align:left}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.email{padding-right:2em}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.status{width:100px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a{border-bottom:1px solid;display:inline-block;margin-right:5px;text-decoration:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=delete]{color:#a00}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=delete]:hover,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=delete]:active,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=delete]:focus{color:#400}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password]{background-color:#fff;border:1px solid #ddd;border-radius:3px;box-shadow:none;color:#333;display:inline-block;vertical-align:middle;padding:7px 12px;margin:0 10px 0 0;width:400px;min-height:35px;line-height:1.3}@media (max-width: 959px){#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password]{width:300px}}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text][readonly],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email][readonly],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number][readonly],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password][readonly]{background-color:#f9f9f9}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text].small-text,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email].small-text,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number].small-text,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password].small-text{width:75px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text]:focus,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email]:focus,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number]:focus,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password]:focus{border-color:#bbb}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text]:disabled,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email]:disabled,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number]:disabled,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password]:disabled{opacity:0.6}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row .dashicons-yes-alt.wp-mail-smtp-animate{-webkit-animation:wp-mail-smtp-fade-in-stop-out 1s linear;animation:wp-mail-smtp-fade-in-stop-out 1s linear}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row .dashicons-yes-alt.wp-mail-smtp-success{color:#46b450}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-label{display:block;float:left;width:205px;padding:0 20px 0 0}@media (max-width: 781px){#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-label{float:none;width:100%;padding-bottom:15px}}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-label label{display:block;font-weight:600}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-field{display:block;margin:0 0 0 205px;max-width:800px}@media (max-width: 781px){#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-field{margin:0}}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-submit{margin:0;padding:25px 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-submit .help-text{margin-left:10px;vertical-align:middle}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-mailer-options .wp-mail-smtp-mailer-option .wp-mail-smtp-setting-row.section-heading{padding:20px 0 !important}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-mailer-options .wp-mail-smtp-mailer-option blockquote{background:#E5E5E5;border-radius:4px;color:#666;font-size:14px;margin:20px 0;padding:15px;width:1005px}#wp-mail-smtp .wp-mail-smtp-page-content.wp-mail-smtp-page-general p{margin:0}#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline{background:#fff;border-left:4px solid #fff;box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);margin:5px 0 15px;padding:1px 12px}#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline.notice-success{border-left-color:#46b450}#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline.notice-warning{border-left-color:#ffb900}#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline.notice-error{border-left-color:#dc3232}#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline.notice-info{border-left-color:#00a0d2}#wp-mail-smtp .wp-mail-smtp-page-content .notice p,#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline p{margin:0.5em 0;padding:2px}#wp-mail-smtp .wp-mail-smtp-page-content pre{white-space:pre-line}#wp-mail-smtp .wp-mail-smtp-page-content.active{display:block}#wp-mail-smtp .wp-mail-smtp-page-content .connected-as{margin-left:30px}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug{background-color:#fff;padding:25px 20px 1px 25px}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug h2{color:#444;margin:1.4em 0 0.8em;font-size:16px;font-weight:700}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug p{font-size:14px;color:#555;margin-bottom:1.1em}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ul,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ol{font-size:14px;color:#555;margin:0 0 1.1em 1.8em}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ul li,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ol li{margin:0 0 8px 0;line-height:1.5}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ul li:last-of-type,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ol li:last-of-type{margin:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ul li ul,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ol li ul{list-style-type:disc}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug a{color:#FF982D}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug a:hover{color:#f97f00}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .dashicons-star-filled{color:#FF982D;width:16px;height:16px;font-size:16px;vertical-align:text-top}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .price-off{color:green;font-weight:bold}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log-toggle{text-decoration:none;color:#444}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log-toggle:hover{color:#FF982D}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log-toggle .dashicons{font-size:15px;height:15px;width:15px;padding-top:3px;border:0;outline:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log{border-left:3px solid #ffb900;padding:0 0 0 20px;margin:0 0 10px 0;font-size:12px;display:none}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log pre{margin:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log-note{display:none}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner{background-color:#fff;padding:25px 20px;border:1px solid #dadada;margin:10px 0 0 0;position:relative}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .wp-mail-smtp-pro-banner-dismiss{position:absolute;right:10px;top:10px}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .wp-mail-smtp-pro-banner-dismiss button{background:none;border:none;color:#a9a9a9;cursor:pointer;margin:0;padding:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner h2{color:#444;margin-top:0;font-size:16px;font-weight:700}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner p{font-size:14px;color:#555;margin-bottom:1.1em}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner p:last-of-type{margin:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits{margin:0 0 16px 0;overflow:auto;max-width:1000px}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits ul{margin:0;padding:0;width:50%;float:left}@media (max-width: 600px){#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits ul{width:100%;float:none}}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits ul li{margin:0;padding:0 0 2px 16px;color:#555;font-size:14px;position:relative}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits ul li:before{content:'+';position:absolute;top:-1px;left:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits ul li.arrow-right:before{content:'→'}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner a{color:#FF982D}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner a:hover,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner a:active,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner a:focus{color:#f97f00}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .stars{text-decoration:none}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .stars .dashicons{width:16px;height:16px;font-size:16px;vertical-align:text-top}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .price-off{color:green;font-weight:bold}#wp-mail-smtp .wp-mail-smtp-admin-columns>div[class*="-column-"]{float:left}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-20{width:20%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-33{width:33.33333%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-40{width:40%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-50{width:50%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-60{width:60%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-80{width:80%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-last{float:right !important}#wp-mail-smtp .wp-mail-smtp-admin-columns:after{content:"";display:table;clear:both}#wp-mail-smtp .wp-mail-smtp-page-upsell{display:flex;align-items:center;justify-content:center;height:auto;flex-direction:column}#wp-mail-smtp .wp-mail-smtp-page-upsell>*{width:800px}#wp-mail-smtp .wp-mail-smtp-page-upsell *,#wp-mail-smtp .wp-mail-smtp-page-upsell *::before,#wp-mail-smtp .wp-mail-smtp-page-upsell *::after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#wp-mail-smtp .wp-mail-smtp-page-upsell h2{font-size:24px;color:#444444;text-align:center}#wp-mail-smtp .wp-mail-smtp-page-upsell h3{font-size:16px;font-weight:normal;color:#72777C;line-height:1.5em;margin-top:0;margin-bottom:6px;text-align:center}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features{margin-bottom:40px;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:stretch;align-content:flex-start}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature{display:flex;flex-direction:row;width:360px;align-items:flex-start;align-content:flex-start;margin-right:60px;margin-top:40px}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature:nth-of-type(1){margin-top:20px}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature:nth-of-type(2){margin-top:20px}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature:nth-of-type(even){margin-right:0}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-image{display:flex;align-items:center}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-image svg{height:64px;width:64px}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-image .st0{fill:#C3D0D7}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-image .st1{fill:#809DB0}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-content{margin-left:20px}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-content h4{font-size:15px;margin:0 0 0.5em}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-content p{color:#72777C;margin:0}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-images{margin-top:20px;margin-bottom:30px;text-align:center}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-images img{width:380px;height:auto;margin-right:30px;border:5px solid #fff;border-radius:5px;box-shadow:0 5px 15px rgba(0,0,0,0.1);float:left}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-images img:last-child{margin-right:0}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-button{text-align:center}.wp-mail-smtp-btn{border:0;border-radius:3px;cursor:pointer;display:inline-block;margin:0;text-decoration:none;text-align:center;vertical-align:middle;white-space:nowrap;text-shadow:none;box-shadow:none;outline:none}.wp-mail-smtp-btn .dashicons{font-size:16px;width:16px;height:16px}.wp-mail-smtp-btn:disabled{opacity:0.5;cursor:not-allowed}.wp-mail-smtp-btn.wp-mail-smtp-btn-md{font-size:13px;font-weight:600;padding:8px 12px;min-height:35px}.wp-mail-smtp-btn.wp-mail-smtp-btn-lg{font-size:16px;font-weight:600;padding:16px 28px}.wp-mail-smtp-btn.wp-mail-smtp-btn-orange{background-color:#FF982D;border-color:#FF982D;color:#fff}.wp-mail-smtp-btn.wp-mail-smtp-btn-orange:hover,.wp-mail-smtp-btn.wp-mail-smtp-btn-orange:active,.wp-mail-smtp-btn.wp-mail-smtp-btn-orange:focus{background-color:#f97f00;border-color:#f97f00}.wp-mail-smtp-btn.wp-mail-smtp-btn-red{background-color:#DC3232;border-color:#DC3232;color:#fff}.wp-mail-smtp-btn.wp-mail-smtp-btn-red:hover,.wp-mail-smtp-btn.wp-mail-smtp-btn-red:active,.wp-mail-smtp-btn.wp-mail-smtp-btn-red:focus{background-color:darkred;border-color:darkred}.wp-mail-smtp-btn.wp-mail-smtp-btn-grey{background-color:#f5f5f5;border:1px solid #ccc;color:#666}.wp-mail-smtp-btn.wp-mail-smtp-btn-grey:hover,.wp-mail-smtp-btn.wp-mail-smtp-btn-grey:active,.wp-mail-smtp-btn.wp-mail-smtp-btn-grey:focus{background-color:#d7d7d7;border-color:#ccc;color:#444}.wp-mail-smtp-btn.wp-mail-smtp-btn-light-grey{background-color:#f5f5f5;border:1px solid #ccc;color:#666}.wp-mail-smtp-btn.wp-mail-smtp-btn-light-grey:hover,.wp-mail-smtp-btn.wp-mail-smtp-btn-light-grey:active,.wp-mail-smtp-btn.wp-mail-smtp-btn-light-grey:focus{background-color:#eee;color:#444}.wp-mail-smtp-btn.wp-mail-smtp-btn-blueish{background-color:#738e9e;border:1px solid #738e9e;color:#fff}.wp-mail-smtp-btn.wp-mail-smtp-btn-blueish:hover,.wp-mail-smtp-btn.wp-mail-smtp-btn-blueish:active,.wp-mail-smtp-btn.wp-mail-smtp-btn-blueish:focus{background-color:#395360;border-color:#395360;color:#fff}
|
2 |
-
|
3 |
-
/*# sourceMappingURL=smtp-admin.min.css.map */
|
1 |
+
#wpcontent{padding-left:0 !important;position:relative}@media (max-width: 600px){#wpcontent{padding-top:46px}}@media (max-width: 600px){#wpbody{padding-top:0}}@-webkit-keyframes wp-mail-smtp-fade-in-stop-out{0%,100%{opacity:0}35%{opacity:1}65%{opacity:1}}@keyframes wp-mail-smtp-fade-in-stop-out{0%,100%{opacity:0}35%{opacity:1}65%{opacity:1}}body.toplevel_page_wp-mail-smtp div.jconfirm *,body.toplevel_page_wp-mail-smtp div.jconfirm *::before,body.toplevel_page_wp-mail-smtp div.jconfirm *::after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box-container div.jconfirm-box{border-radius:0;box-shadow:0 2px 6px rgba(0,0,0,0.2)}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box-container div.jconfirm-box div.jconfirm-closeIcon{color:rgba(0,0,0,0.4);top:8px;right:8px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box-container div.jconfirm-box div.jconfirm-closeIcon:hover{color:rgba(0,0,0,0.8)}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c{margin:0 0 26px 0 !important;padding:0 !important}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c .jconfirm-icon-c{margin:0 !important;color:#c4c4c4 !important;-webkit-transition:none !important;transition:none !important;-webkit-transform:none !important;-ms-transform:none !important;transform:none !important;font-size:45px !important}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c .jconfirm-icon-c i:empty{display:none}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c .jconfirm-icon-c svg{height:35px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c .jconfirm-title{display:block;color:#444}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c .jconfirm-icon-c+span.jconfirm-title{margin-top:20px !important}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content-pane{margin-bottom:0;display:block}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content-pane .jconfirm-content{overflow:inherit}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content{font-size:16px;color:#777;line-height:1.4}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content.lite-upgrade p{font-size:18px;padding:0 20px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content p{margin:0 0 20px;font-size:16px;line-height:1.5}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content p:last-of-type{margin:0}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content p.large{font-size:18px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content p.small{font-size:14px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .already-purchased{font-size:12px;color:#ccc;text-decoration:none}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .already-purchased:hover{text-decoration:underline}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-btn{font-weight:bold;text-transform:uppercase;-webkit-transition:background .1s;transition:background .1s;padding:10px 20px;outline:none;display:inline-block;font-size:14px;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:4px;min-height:1em;-webkit-tap-highlight-color:transparent;border:0;background-image:none}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-btn.with-loader{padding:12px 12px 7px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record{display:flex;justify-content:space-evenly;align-items:center}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record-label{color:#444}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record input[type="text"]{display:inline-block;width:340px;color:#777;background-color:#f8f8f8;border:1px solid #ddd;border-radius:3px;margin:0;padding:10px 0 10px 12px;font-size:16px;line-height:18px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record input[type="text"][readonly]{background-color:#f9f9f9}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record input[type="text"]:focus{border-color:#bbb}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record input[type="text"]:disabled{opacity:0.6}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record button{padding:9px 11px;background-color:#fff;border:1px solid #ddd;border-radius:3px;cursor:pointer;outline:none}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record button:hover{background-color:#ddd}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record button:active{background-color:#aaa;border-color:#aaa}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record .dashicons-yes-alt{color:#46b450}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-buttons .already-purchased{display:block;font-size:12px;color:#aaa;text-decoration:none;padding-top:20px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-buttons .already-purchased:hover{color:#999;text-decoration:underline}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-buttons .btn-hide{display:none}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .discount-note{text-align:center;margin:30px 0 0}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .discount-note p{background-color:#faffac;margin:0 -30px;padding:24px 60px 20px;font-size:15px;color:#4d4d4d;position:relative}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .discount-note p:after{content:url(../images/font-awesome/check-circle-solid-green.svg);width:40px;height:40px;background-color:#fff;border-radius:50%;padding:5px 6px;position:absolute;top:-20px;right:50%;margin-right:-18px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .discount-note span{font-weight:700;color:#3abc01}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .discount-note a{color:#aaa;display:block;margin-top:12px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box input[type=text]{display:block;width:99%;border:1px solid #d6d6d6;padding:10px;box-shadow:none;margin:20px auto 0 auto}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.btn-confirm{background-color:#FF982D;color:#fff;outline:none}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.btn-confirm:hover{background-color:#f97f00;border-color:#f97f00}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button,body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.btn-default{color:#666}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.wp-mail-smtp-btn-orange{color:#fff}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.btn-block{display:block;text-align:center;width:100%;margin:0 0 10px 0 !important}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.btn-normal-case{text-transform:none !important}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .error{display:none;color:red}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .wpforms-error{border:1px solid #ebccd1 !important}@media screen and (max-width: 1023px){#wp-mail-smtp-notice-bar{display:none !important}}#wp-mail-smtp-notice-bar{max-height:35px;position:relative;margin-bottom:-3px;transition:all .3s ease-out;overflow:hidden}#wp-mail-smtp-notice-bar.out{max-height:3px}#wp-mail-smtp-notice-bar .wp-amil-smtp-notice-bar-container{background-color:#DDDDDD;border-top:3px solid #FF982D;color:#777777;text-align:center;padding:7px}#wp-mail-smtp-notice-bar a{color:#FF982D}#wp-mail-smtp-notice-bar a:hover{color:#f97f00}#wp-mail-smtp-notice-bar .dismiss{position:absolute;top:0;right:0;border:none;padding:5px;margin-top:4px;background:0 0;color:#72777c;cursor:pointer}#wp-mail-smtp-notice-bar .dismiss:before{background:0 0;color:#72777c;content:"\f335";display:block;font:normal 20px/20px dashicons;speak:none;height:20px;text-align:center;width:20px;-webkit-font-smoothing:antialiased}#screen-meta-links .screen-meta-toggle{position:absolute;right:20px;top:auto}#screen-meta-links,#screen-meta{display:none}#wp-mail-smtp-header-temp{position:absolute;margin:0;top:-1px;left:20px;right:20px;z-index:99}#wp-mail-smtp-header{border-top:3px solid #FF982D;padding:20px}#wp-mail-smtp-header img{display:block;margin:0;max-width:242px}@media (max-width: 782px){#wp-mail-smtp-header img{max-width:200px}}#wp-mail-smtp{margin:0}#wp-mail-smtp .wp-mail-smtp-hide{display:none}#wp-mail-smtp .wp-mail-smtp-page-title{height:58px;background-color:#fff;font-size:14px;margin:0 0 20px 0;padding:0 20px}#wp-mail-smtp .wp-mail-smtp-page-title a.tab{border-bottom:2px solid #fff;box-shadow:none;color:#666;display:inline-block;margin-right:30px;padding:20px 0 18px 0;text-decoration:none}#wp-mail-smtp .wp-mail-smtp-page-title a.tab.active{border-bottom:2px solid #FF982D}#wp-mail-smtp .wp-mail-smtp-page-title a.tab:hover{border-color:#999}#wp-mail-smtp .wp-mail-smtp-page-title a.action{padding:5px;border:0;min-height:auto;color:#fff;margin:-10px 0 0 20px}#wp-mail-smtp .wp-mail-smtp-page-title .page-title{background-color:#fff;display:inline-block;font-size:23px;margin:0;padding:20px 20px 20px 0}#wp-mail-smtp .wp-mail-smtp-page-content{padding:0 20px}#wp-mail-smtp .wp-mail-smtp-page-content *,#wp-mail-smtp .wp-mail-smtp-page-content *::before,#wp-mail-smtp .wp-mail-smtp-page-content *::after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-clear:before{content:" ";display:table}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-clear:after{clear:both;content:" ";display:table}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row{border-bottom:1px solid #e4e4e4;padding:30px 0;font-size:14px;line-height:1.3}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row:first-of-type{padding-top:10px !important}@media (max-width: 781px){#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row{padding:20px 0}}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.inactive{display:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row .wp-mail-smtp-setting-mid-row-sep{background:#e4e4e4;height:1px;border:0;margin:15px 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.section-heading{padding:20px 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.section-heading.no-desc h2,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.section-heading.no-desc h4{margin:0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.section-heading .wp-mail-smtp-setting-field{margin:0;max-width:1005px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox input[type=checkbox]{float:left;margin:1px 0 0 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox input[type=checkbox]+label{margin:0 0 0 8px;vertical-align:baseline}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox .desc{margin:0 0 0 30px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox input[type=checkbox]+label+.desc{margin:8px 0 0 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-text .wp-mail-smtp-setting-label,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-password .wp-mail-smtp-setting-label,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-number .wp-mail-smtp-setting-label,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-email .wp-mail-smtp-setting-label{padding-top:8px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-select .wp-mail-smtp-setting-label{padding-top:8px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-radio .wp-mail-smtp-setting-field input[type=radio]{margin:-3px 10px 0 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-radio .wp-mail-smtp-setting-field label{margin-right:30px;display:inline-block}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field label{vertical-align:middle;display:inline-block}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]{position:absolute;top:auto;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;white-space:nowrap}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked+.wp-mail-smtp-setting-toggle-switch{background-color:#46B450}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked+.wp-mail-smtp-setting-toggle-switch:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled:checked:hover+.wp-mail-smtp-setting-toggle-switch,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled:not(:checked):hover+.wp-mail-smtp-setting-toggle-switch{box-shadow:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled:not(:checked):hover+.wp-mail-smtp-setting-toggle-switch{background-color:#ddd}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled+.wp-mail-smtp-setting-toggle-switch{background-color:#ddd;cursor:default}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled:checked+.wp-mail-smtp-setting-toggle-switch{background-color:#a0daa5;cursor:default}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked+.wp-mail-smtp-setting-toggle-switch+.wp-mail-smtp-setting-toggle-checked-label{display:inline-block}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked+.wp-mail-smtp-setting-toggle-switch+.wp-mail-smtp-setting-toggle-checked-label+.wp-mail-smtp-setting-toggle-unchecked-label{display:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled+.wp-mail-smtp-setting-toggle-switch+.wp-mail-smtp-setting-toggle-checked-label,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled+.wp-mail-smtp-setting-toggle-switch+.wp-mail-smtp-setting-toggle-unchecked-label{color:#aaaaaa}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked:hover+.wp-mail-smtp-setting-toggle-switch,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked:focus+.wp-mail-smtp-setting-toggle-switch{box-shadow:0 0 0 1px #fff, 0 0 0 3px #46B450}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:not(:checked):hover+.wp-mail-smtp-setting-toggle-switch,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:not(:checked):focus+.wp-mail-smtp-setting-toggle-switch{background-color:#999;box-shadow:0 0 0 1px #fff, 0 0 0 3px #999}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field .wp-mail-smtp-setting-toggle-unchecked-label,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field .wp-mail-smtp-setting-toggle-checked-label{text-transform:uppercase;font-weight:400;color:#777;font-size:13px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field .wp-mail-smtp-setting-toggle-checked-label{display:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field .wp-mail-smtp-setting-toggle-switch{position:relative;cursor:pointer;background-color:#ccc;border-radius:15px;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out;vertical-align:middle;display:inline-block;margin:0 5px 0 0;width:36px;height:20px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field .wp-mail-smtp-setting-toggle-switch:before{position:absolute;content:"";height:16px;width:16px;left:2px;top:2px;background-color:#fff;border-radius:50%;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer{padding-bottom:20px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer{display:inline-block;width:140px;margin-right:12px;margin-bottom:12px;position:relative}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer .wp-mail-smtp-mailer-image{background:#fff;text-align:center;border:2px solid #E5E5E5;border-radius:4px;cursor:pointer;height:76px;position:relative;margin-bottom:10px;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer .wp-mail-smtp-mailer-image.is-recommended{background-image:url(../images/recommended.svg);background-repeat:no-repeat;background-size:60%;background-position:top right -2px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer .wp-mail-smtp-mailer-image img{max-width:90%;max-height:40px;display:block;position:relative;top:50%;left:50%;transform:translate(-50%, -50%);opacity:0.6;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer.wp-mail-smtp-mailer-smtp .wp-mail-smtp-mailer-image img{max-height:30px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer.active .wp-mail-smtp-mailer-image{border-color:#FF982D}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer.active .wp-mail-smtp-mailer-image img{opacity:1}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer:hover .wp-mail-smtp-mailer-image{border-color:#ccc}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer:hover .wp-mail-smtp-mailer-image img{opacity:1}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row h2,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row h4{color:#444;font-size:20px;font-weight:700;margin:0 0 6px 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row h2{margin-bottom:15px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row h3{color:#444;font-size:24px;font-weight:600;margin:0 0 20px 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p{margin:12px 0 0;font-size:14px;line-height:1.5em}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p:first-of-type{margin:8px 0 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.desc{font-style:italic;color:#777}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.buttonned{margin-top:30px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.inline-notice{margin:5px 0 15px;box-sizing:border-box;background:#fff;border-left:4px solid transparent;box-shadow:0 1px 1px 0 rgba(0,0,0,0.1)}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.inline-notice.inline-error{border-color:#dc3232;margin-bottom:5px;padding:10px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.inline-notice.inline-edu-notice{border-color:#809EB0;line-height:1.5em;padding:10px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.inline-notice a.wp-mail-smtp-mailer-notice-dismiss{float:right;color:#999DA1;margin:0 0 10px 10px;text-decoration:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.inline-notice a.wp-mail-smtp-mailer-notice-dismiss:hover{color:#666a6e}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row ul{margin:8px 0 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row ul.list li{margin-left:20px;list-style-type:disc}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list th{padding:5px 5px 5px 0;text-align:left}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.email{padding-right:2em}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.status{width:100px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a{border-bottom:1px solid;display:inline-block;margin-right:5px;text-decoration:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=delete],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=error]{color:#a00}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=delete]:hover,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=delete]:active,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=delete]:focus,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=error]:hover,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=error]:active,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=error]:focus{color:#440000}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row select{background-color:#fff;border:1px solid #ddd;border-radius:4px;box-shadow:none;color:#333;display:inline-block;vertical-align:middle;padding:7px 12px;margin:0 10px 0 0;width:400px;min-height:35px;line-height:1.3}@media (max-width: 959px){#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row select{width:300px}}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text][readonly],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email][readonly],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number][readonly],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password][readonly],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row select[readonly]{background-color:#f9f9f9}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text].small-text,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email].small-text,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number].small-text,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password].small-text,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row select.small-text{width:75px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text]:focus,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email]:focus,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number]:focus,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password]:focus,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row select:focus{border:1px solid #016AAB;box-shadow:0 0 0 1px #016AAB;outline:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text]:disabled,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email]:disabled,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number]:disabled,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password]:disabled,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row select:disabled{opacity:0.6}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=checkbox]:focus,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=radio]:focus{border:1px solid #016AAB;box-shadow:0 0 0 1px #016AAB;outline:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row .dashicons-yes-alt.wp-mail-smtp-animate{-webkit-animation:wp-mail-smtp-fade-in-stop-out 1s linear;animation:wp-mail-smtp-fade-in-stop-out 1s linear}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row .dashicons-yes-alt.wp-mail-smtp-success{color:#46b450}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-label{display:block;float:left;width:205px;padding:0 20px 0 0}@media (max-width: 781px){#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-label{float:none;width:100%;padding-bottom:15px}}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-label label{display:block;font-weight:600}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-field{display:block;margin:0 0 0 205px;max-width:800px}@media (max-width: 781px){#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-field{margin:0}}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-submit{margin:0;padding:25px 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-submit .help-text{margin-left:10px;vertical-align:middle}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-mailer-options .wp-mail-smtp-mailer-option .wp-mail-smtp-setting-row.section-heading{padding:20px 0 !important}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-mailer-options .wp-mail-smtp-mailer-option blockquote{background:#E5E5E5;border-radius:4px;color:#666;font-size:14px;margin:20px 0;padding:15px;width:1005px}#wp-mail-smtp .wp-mail-smtp-page-content.wp-mail-smtp-page-general p{margin:0}#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline{background:#fff;border-left:4px solid #fff;box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);margin:5px 0 15px;padding:1px 12px}#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline.notice-success{border-left-color:#46b450}#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline.notice-warning{border-left-color:#ffb900}#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline.notice-error{border-left-color:#dc3232}#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline.notice-info{border-left-color:#00a0d2}#wp-mail-smtp .wp-mail-smtp-page-content .notice p,#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline p{margin:0.5em 0;padding:2px}#wp-mail-smtp .wp-mail-smtp-page-content pre{white-space:pre-line}#wp-mail-smtp .wp-mail-smtp-page-content.active{display:block}#wp-mail-smtp .wp-mail-smtp-page-content .connected-as{margin-left:30px}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug{background-color:#fff;padding:25px 20px 1px 25px}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug h2{color:#444;margin:1.4em 0 0.8em;font-size:16px;font-weight:700}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug p{font-size:14px;color:#555;margin-bottom:1.1em}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ul,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ol{font-size:14px;color:#555;margin:0 0 1.1em 1.8em}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ul li,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ol li{margin:0 0 8px 0;line-height:1.5}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ul li:last-of-type,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ol li:last-of-type{margin:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ul li ul,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ol li ul{list-style-type:disc}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug a{color:#FF982D}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug a:hover{color:#f97f00}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .dashicons-star-filled{color:#FF982D;width:16px;height:16px;font-size:16px;vertical-align:text-top}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .price-off{color:green;font-weight:bold}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log-toggle{text-decoration:none;color:#444}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log-toggle:hover{color:#FF982D}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log-toggle .dashicons{font-size:15px;height:15px;width:15px;padding-top:3px;border:0;outline:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log{border-left:3px solid #ffb900;padding:0 0 0 20px;margin:0 0 10px 0;font-size:12px;display:none}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log pre{margin:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log-note{display:none}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner{background-color:#fff;padding:25px 20px;border:1px solid #dadada;margin:10px 0 0 0;position:relative}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .wp-mail-smtp-pro-banner-dismiss{position:absolute;right:10px;top:10px}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .wp-mail-smtp-pro-banner-dismiss button{background:none;border:none;color:#A9A9A9;cursor:pointer;margin:0;padding:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner h2{color:#444;margin-top:0;font-size:16px;font-weight:700}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner p{font-size:14px;color:#555;margin-bottom:1.1em}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner p:last-of-type{margin:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits{margin:0 0 16px 0;overflow:auto;max-width:1000px}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits ul{margin:0;padding:0;width:50%;float:left}@media (max-width: 600px){#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits ul{width:100%;float:none}}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits ul li{margin:0;padding:0 0 2px 16px;color:#555;font-size:14px;position:relative}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits ul li:before{content:'+';position:absolute;top:-1px;left:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits ul li.arrow-right:before{content:'→'}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner a{color:#FF982D}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner a:hover,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner a:active,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner a:focus{color:#f97f00}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .stars{text-decoration:none}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .stars .dashicons{width:16px;height:16px;font-size:16px;vertical-align:text-top}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .price-off{color:green;font-weight:bold}#wp-mail-smtp .wp-mail-smtp-admin-columns>div[class*="-column-"]{float:left}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-20{width:20%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-33{width:33.33333%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-40{width:40%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-50{width:50%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-60{width:60%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-80{width:80%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-last{float:right !important}#wp-mail-smtp .wp-mail-smtp-admin-columns:after{content:"";display:table;clear:both}#wp-mail-smtp .wp-mail-smtp-page-upsell{display:flex;align-items:center;justify-content:center;height:auto;flex-direction:column}#wp-mail-smtp .wp-mail-smtp-page-upsell>*{width:800px}#wp-mail-smtp .wp-mail-smtp-page-upsell *,#wp-mail-smtp .wp-mail-smtp-page-upsell *::before,#wp-mail-smtp .wp-mail-smtp-page-upsell *::after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#wp-mail-smtp .wp-mail-smtp-page-upsell h2{font-size:24px;color:#444444;text-align:center}#wp-mail-smtp .wp-mail-smtp-page-upsell h3{font-size:16px;font-weight:normal;color:#72777C;line-height:1.5em;margin-top:0;margin-bottom:6px;text-align:center}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features{margin-bottom:40px;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:stretch;align-content:flex-start}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature{display:flex;flex-direction:row;width:360px;align-items:flex-start;align-content:flex-start;margin-right:60px;margin-top:40px}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature:nth-of-type(1){margin-top:20px}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature:nth-of-type(2){margin-top:20px}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature:nth-of-type(even){margin-right:0}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-image{display:flex;align-items:center}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-image svg{height:64px;width:64px}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-image .st0{fill:#C3D0D7}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-image .st1{fill:#809DB0}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-content{margin-left:20px}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-content h4{font-size:15px;margin:0 0 0.5em}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-content p{color:#72777C;margin:0}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-images{margin-top:20px;margin-bottom:30px;text-align:center}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-images img{width:380px;height:auto;margin-right:30px;border:5px solid #fff;border-radius:5px;box-shadow:0 5px 15px rgba(0,0,0,0.1);float:left}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-images img:last-child{margin-right:0}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-button{text-align:center}.wp-mail-smtp-btn{border:0;border-radius:3px;cursor:pointer;display:inline-block;margin:0;text-decoration:none;text-align:center;vertical-align:middle;white-space:nowrap;text-shadow:none;box-shadow:none;outline:none}.wp-mail-smtp-btn .dashicons{font-size:16px;width:16px;height:16px}.wp-mail-smtp-btn:disabled{opacity:0.5;cursor:not-allowed}.wp-mail-smtp-btn.wp-mail-smtp-btn-md{font-size:13px;font-weight:600;padding:8px 12px;min-height:35px}.wp-mail-smtp-btn.wp-mail-smtp-btn-lg{font-size:16px;font-weight:600;padding:16px 28px}.wp-mail-smtp-btn.wp-mail-smtp-btn-orange{background-color:#FF982D;border-color:#FF982D;color:#fff}.wp-mail-smtp-btn.wp-mail-smtp-btn-orange:hover,.wp-mail-smtp-btn.wp-mail-smtp-btn-orange:active,.wp-mail-smtp-btn.wp-mail-smtp-btn-orange:focus{background-color:#f97f00;border-color:#f97f00}.wp-mail-smtp-btn.wp-mail-smtp-btn-orange:focus{box-shadow:0 0 0 1px #fff, 0 0 0 3px #f97f00}.wp-mail-smtp-btn.wp-mail-smtp-btn-red{background-color:#DC3232;border-color:#DC3232;color:#fff}.wp-mail-smtp-btn.wp-mail-smtp-btn-red:hover,.wp-mail-smtp-btn.wp-mail-smtp-btn-red:active,.wp-mail-smtp-btn.wp-mail-smtp-btn-red:focus{background-color:darkred;border-color:darkred}.wp-mail-smtp-btn.wp-mail-smtp-btn-red:focus{box-shadow:0 0 0 1px #fff, 0 0 0 3px darkred}.wp-mail-smtp-btn.wp-mail-smtp-btn-grey{background-color:#f5f5f5;border:1px solid #ccc;color:#666}.wp-mail-smtp-btn.wp-mail-smtp-btn-grey:hover,.wp-mail-smtp-btn.wp-mail-smtp-btn-grey:active,.wp-mail-smtp-btn.wp-mail-smtp-btn-grey:focus{background-color:#d7d7d7;border-color:#ccc;color:#444}.wp-mail-smtp-btn.wp-mail-smtp-btn-light-grey{background-color:#f5f5f5;border:1px solid #ccc;color:#666}.wp-mail-smtp-btn.wp-mail-smtp-btn-light-grey:hover,.wp-mail-smtp-btn.wp-mail-smtp-btn-light-grey:active,.wp-mail-smtp-btn.wp-mail-smtp-btn-light-grey:focus{background-color:#eee;color:#444}.wp-mail-smtp-btn.wp-mail-smtp-btn-blueish{background-color:#738e9e;border:1px solid #738e9e;color:#fff}.wp-mail-smtp-btn.wp-mail-smtp-btn-blueish:hover,.wp-mail-smtp-btn.wp-mail-smtp-btn-blueish:active,.wp-mail-smtp-btn.wp-mail-smtp-btn-blueish:focus{background-color:#395360;border-color:#395360;color:#fff}.wp-mail-smtp-btn.wp-mail-smtp-btn-blueish:focus{box-shadow:0 0 0 1px #fff, 0 0 0 3px #395360}
|
|
|
|
assets/images/about/plugin-mi.png
CHANGED
Binary file
|
assets/images/email/wp-mail-smtp.png
CHANGED
Binary file
|
assets/images/loaders/loading-blue.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><g fill="none" stroke-width="8"><g data-name="wpf-loading-track" stroke="rgba(0,0,0,0.1)"><circle cx="40" cy="40" r="40" stroke="none"/><circle cx="40" cy="40" r="36"/></g><g data-name="wpf-loading-seqment" stroke="#6693af" stroke-linecap="round" stroke-dasharray="60 1000"><circle cx="40" cy="40" r="40" stroke="none"/><circle cx="40" cy="40" r="36"/></g></g></svg>
|
assets/images/loaders/loading-white.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><g fill="none" stroke-width="8"><g data-name="wpf-loading-track" stroke="rgba(0,0,0,0.15)"><circle cx="40" cy="40" r="40" stroke="none"/><circle cx="40" cy="40" r="36"/></g><g data-name="wpf-loading-seqment" stroke="#fff" stroke-linecap="round" stroke-dasharray="60 1000"><circle cx="40" cy="40" r="40" stroke="none"/><circle cx="40" cy="40" r="36"/></g></g></svg>
|
assets/images/loaders/loading.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><g fill="none" stroke-width="8"><g data-name="wpf-loading-track" stroke="rgba(0,0,0,0.1)"><circle cx="40" cy="40" r="40" stroke="none"/><circle cx="40" cy="40" r="36"/></g><g data-name="wpf-loading-seqment" stroke="#e27730" stroke-linecap="round" stroke-dasharray="60 1000"><circle cx="40" cy="40" r="40" stroke="none"/><circle cx="40" cy="40" r="36"/></g></g></svg>
|
assets/js/smtp-admin.js
CHANGED
@@ -296,7 +296,7 @@ WPMailSMTP.Admin.Settings = WPMailSMTP.Admin.Settings || ( function( document, w
|
|
296 |
} );
|
297 |
|
298 |
// Set settings changed attribute, if any input was changed.
|
299 |
-
$( ':input:not( #wp-mail-smtp-setting-license-key )', $settingPages ).on( 'change', function() {
|
300 |
app.pluginSettingsChanged = true;
|
301 |
} );
|
302 |
|
296 |
} );
|
297 |
|
298 |
// Set settings changed attribute, if any input was changed.
|
299 |
+
$( ':input:not( #wp-mail-smtp-setting-license-key, .wp-mail-smtp-not-form-input )', $settingPages ).on( 'change', function() {
|
300 |
app.pluginSettingsChanged = true;
|
301 |
} );
|
302 |
|
assets/js/smtp-admin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
"use strict";var WPMailSMTP=window.WPMailSMTP||{};WPMailSMTP.Admin=WPMailSMTP.Admin||{},WPMailSMTP.Admin.Settings=WPMailSMTP.Admin.Settings||function(i,e,a){var s={pluginSettingsChanged:!1,init:function(){a(i).ready(s.ready)},ready:function(){s.pageHolder=a(".wp-mail-smtp-tab-settings"),a("#screen-meta-links, #screen-meta").prependTo("#wp-mail-smtp-header-temp").show(),s.bindActions()},bindActions:function(){a(".wp-mail-smtp-mailer-image",s.pageHolder).click(function(){a(this).parents(".wp-mail-smtp-mailer").find("input").trigger("click")}),a(".wp-mail-smtp-mailer input",s.pageHolder).click(function(){var t=a(this);if(t.prop("disabled"))return t.hasClass("educate")&&s.education.upgradeMailer(t),!1;a(".wp-mail-smtp-mailer",s.pageHolder).removeClass("active"),a(this).parents(".wp-mail-smtp-mailer").addClass("active"),a(".wp-mail-smtp-mailer-option",s.pageHolder).addClass("hidden").removeClass("active"),a(".wp-mail-smtp-mailer-option-"+a(this).val(),s.pageHolder).addClass("active").removeClass("hidden")}),s.mailers.smtp.bindActions(),a("#wp-mail-smtp-pro-banner-dismiss",s.pageHolder).on("click",function(){a.ajax({url:ajaxurl,dataType:"json",type:"POST",data:{action:"wp_mail_smtp_ajax",task:"pro_banner_dismiss"}}).always(function(){a("#wp-mail-smtp-pro-banner",s.pageHolder).fadeOut("fast")})}),a(".js-wp-mail-smtp-mailer-notice-dismiss",s.pageHolder).on("click",function(t){t.preventDefault();var e=a(this),i=e.parents(".inline-notice");if(e.hasClass("disabled"))return!1;a.ajax({url:ajaxurl,dataType:"json",type:"POST",data:{action:"wp_mail_smtp_ajax",task:"notice_dismiss",notice:i.data("notice"),mailer:i.data("mailer")},beforeSend:function(){e.addClass("disabled")}}).always(function(){i.fadeOut("fast",function(){e.removeClass("disabled")})})}),a("#wp-mail-smtp-debug .error-log-toggle").on("click",function(t){t.preventDefault(),a("#wp-mail-smtp-debug .error-log-toggle").find(".dashicons").toggleClass("dashicons-arrow-right-alt2 dashicons-arrow-down-alt2"),a("#wp-mail-smtp-debug .error-log").slideToggle(),a("#wp-mail-smtp-debug .error-log-note").toggle()}),a(".js-wp-mail-smtp-provider-remove",s.pageHolder).on("click",function(){return confirm(wp_mail_smtp.text_provider_remove)}),a(".wp-mail-smtp-setting-copy",s.pageHolder).click(function(t){t.preventDefault(),a("#"+a(this).data("source_id")).get(0).select(),i.execCommand("Copy");var e=a(this).find(".dashicons");e.removeClass("dashicons-admin-page").addClass("dashicons-yes-alt wp-mail-smtp-success wp-mail-smtp-animate"),setTimeout(function(){e.removeClass("dashicons-yes-alt wp-mail-smtp-success wp-mail-smtp-animate").addClass("dashicons-admin-page")},1e3)}),a("#wp-mail-smtp-notice-bar").on("click",".dismiss",function(){var t=a(this).closest("#wp-mail-smtp-notice-bar");t.addClass("out"),setTimeout(function(){t.remove()},300),a.post(ajaxurl,{action:"wp_mail_smtp_notice_bar_dismiss",nonce:wp_mail_smtp.nonce})}),s.triggerExitNotice(),s.beforeSaveChecks(),a(".js-wp-mail-smtp-setting-mailer-radio-input",s.pageHolder).on("change",this.processMailerSettingsOnChange)},education:{upgradeMailer:function(t){a.alert({backgroundDismiss:!0,escapeKey:!0,animationBounce:1,theme:"modern",type:"blue",animateFromElement:!1,draggable:!1,closeIcon:!0,useBootstrap:!1,title:wp_mail_smtp.education.upgrade_title.replace(/%name%/g,t.siblings("label").text().trim()),icon:'"></i>'+wp_mail_smtp.education.upgrade_icon_lock+'<i class="',content:a(".wp-mail-smtp-mailer-options .wp-mail-smtp-mailer-option-"+t.val()+" .wp-mail-smtp-setting-field").html(),boxWidth:"550px",onOpenBefore:function(){this.$btnc.after('<div class="discount-note">'+wp_mail_smtp.education.upgrade_bonus+wp_mail_smtp.education.upgrade_doc+"</div>")},buttons:{confirm:{text:wp_mail_smtp.education.upgrade_button,btnClass:"btn-confirm",keys:["enter"],action:function(){e.open(wp_mail_smtp.education.upgrade_url+"&utm_content="+encodeURI(t.val()),"_blank")}}}})}},mailers:{smtp:{bindActions:function(){a("#wp-mail-smtp-setting-smtp-auth").change(function(){a("#wp-mail-smtp-setting-row-smtp-user, #wp-mail-smtp-setting-row-smtp-pass").toggleClass("inactive")}),a("#wp-mail-smtp-setting-row-smtp-encryption input").change(function(){var t=a(this),e=a("#wp-mail-smtp-setting-smtp-port",s.pageHolder);"tls"===t.val()?(e.val("587"),a("#wp-mail-smtp-setting-row-smtp-autotls").addClass("inactive")):("ssl"===t.val()?e.val("465"):e.val("25"),a("#wp-mail-smtp-setting-row-smtp-autotls").removeClass("inactive"))})}}},triggerExitNotice:function(){var t=a(".wp-mail-smtp-page-general:not( .wp-mail-smtp-tab-test )");a(e).on("beforeunload",function(){if(s.pluginSettingsChanged)return wp_mail_smtp.text_settings_not_saved}),a(":input:not( #wp-mail-smtp-setting-license-key )",t).on("change",function(){s.pluginSettingsChanged=!0}),a("form",t).on("submit",function(){s.pluginSettingsChanged=!1})},beforeSaveChecks:function(){a("form",s.pageHolder).on("submit",function(){if("mail"===a(".wp-mail-smtp-mailer input:checked",s.pageHolder).val()){var t=a(this);return a.alert({backgroundDismiss:!1,escapeKey:!1,animationBounce:1,theme:"modern",type:"orange",animateFromElement:!1,draggable:!1,closeIcon:!1,useBootstrap:!1,icon:'"></i><img src="'+wp_mail_smtp.plugin_url+'/assets/images/font-awesome/exclamation-circle-solid-orange.svg" style="width: 40px; height: 40px;" alt="'+wp_mail_smtp.default_mailer_notice.icon_alt+'"><i class="',title:wp_mail_smtp.default_mailer_notice.title,content:wp_mail_smtp.default_mailer_notice.content,boxWidth:"550px",buttons:{confirm:{text:wp_mail_smtp.default_mailer_notice.save_button,btnClass:"btn-confirm",keys:["enter"],action:function(){t.off("submit").submit()}},cancel:{text:wp_mail_smtp.default_mailer_notice.cancel_button}}}),!1}})},processMailerSettingsOnChange:function(){var t=wp_mail_smtp.all_mailers_supports[a(this).val()];for(var e in t)t.hasOwnProperty(e)&&a(".js-wp-mail-smtp-setting-"+e,s.pageHolder).toggle(t[e]);var i=a(".js-wp-mail-smtp-setting-from_email");i.closest(".wp-mail-smtp-setting-row").toggle(t.from_email||t.from_email_force),i.siblings(".wp-mail-smtp-setting-mid-row-sep").toggle(t.from_email&&t.from_email_force),(i=a(".js-wp-mail-smtp-setting-from_name")).closest(".wp-mail-smtp-setting-row").toggle(t.from_name||t.from_name_force),i.siblings(".wp-mail-smtp-setting-mid-row-sep").toggle(t.from_name&&t.from_name_force)}};return s}(document,window,jQuery),WPMailSMTP.Admin.Settings.init();
|
1 |
+
"use strict";var WPMailSMTP=window.WPMailSMTP||{};WPMailSMTP.Admin=WPMailSMTP.Admin||{},WPMailSMTP.Admin.Settings=WPMailSMTP.Admin.Settings||function(i,e,a){var s={pluginSettingsChanged:!1,init:function(){a(i).ready(s.ready)},ready:function(){s.pageHolder=a(".wp-mail-smtp-tab-settings"),a("#screen-meta-links, #screen-meta").prependTo("#wp-mail-smtp-header-temp").show(),s.bindActions()},bindActions:function(){a(".wp-mail-smtp-mailer-image",s.pageHolder).click(function(){a(this).parents(".wp-mail-smtp-mailer").find("input").trigger("click")}),a(".wp-mail-smtp-mailer input",s.pageHolder).click(function(){var t=a(this);if(t.prop("disabled"))return t.hasClass("educate")&&s.education.upgradeMailer(t),!1;a(".wp-mail-smtp-mailer",s.pageHolder).removeClass("active"),a(this).parents(".wp-mail-smtp-mailer").addClass("active"),a(".wp-mail-smtp-mailer-option",s.pageHolder).addClass("hidden").removeClass("active"),a(".wp-mail-smtp-mailer-option-"+a(this).val(),s.pageHolder).addClass("active").removeClass("hidden")}),s.mailers.smtp.bindActions(),a("#wp-mail-smtp-pro-banner-dismiss",s.pageHolder).on("click",function(){a.ajax({url:ajaxurl,dataType:"json",type:"POST",data:{action:"wp_mail_smtp_ajax",task:"pro_banner_dismiss"}}).always(function(){a("#wp-mail-smtp-pro-banner",s.pageHolder).fadeOut("fast")})}),a(".js-wp-mail-smtp-mailer-notice-dismiss",s.pageHolder).on("click",function(t){t.preventDefault();var e=a(this),i=e.parents(".inline-notice");if(e.hasClass("disabled"))return!1;a.ajax({url:ajaxurl,dataType:"json",type:"POST",data:{action:"wp_mail_smtp_ajax",task:"notice_dismiss",notice:i.data("notice"),mailer:i.data("mailer")},beforeSend:function(){e.addClass("disabled")}}).always(function(){i.fadeOut("fast",function(){e.removeClass("disabled")})})}),a("#wp-mail-smtp-debug .error-log-toggle").on("click",function(t){t.preventDefault(),a("#wp-mail-smtp-debug .error-log-toggle").find(".dashicons").toggleClass("dashicons-arrow-right-alt2 dashicons-arrow-down-alt2"),a("#wp-mail-smtp-debug .error-log").slideToggle(),a("#wp-mail-smtp-debug .error-log-note").toggle()}),a(".js-wp-mail-smtp-provider-remove",s.pageHolder).on("click",function(){return confirm(wp_mail_smtp.text_provider_remove)}),a(".wp-mail-smtp-setting-copy",s.pageHolder).click(function(t){t.preventDefault(),a("#"+a(this).data("source_id")).get(0).select(),i.execCommand("Copy");var e=a(this).find(".dashicons");e.removeClass("dashicons-admin-page").addClass("dashicons-yes-alt wp-mail-smtp-success wp-mail-smtp-animate"),setTimeout(function(){e.removeClass("dashicons-yes-alt wp-mail-smtp-success wp-mail-smtp-animate").addClass("dashicons-admin-page")},1e3)}),a("#wp-mail-smtp-notice-bar").on("click",".dismiss",function(){var t=a(this).closest("#wp-mail-smtp-notice-bar");t.addClass("out"),setTimeout(function(){t.remove()},300),a.post(ajaxurl,{action:"wp_mail_smtp_notice_bar_dismiss",nonce:wp_mail_smtp.nonce})}),s.triggerExitNotice(),s.beforeSaveChecks(),a(".js-wp-mail-smtp-setting-mailer-radio-input",s.pageHolder).on("change",this.processMailerSettingsOnChange)},education:{upgradeMailer:function(t){a.alert({backgroundDismiss:!0,escapeKey:!0,animationBounce:1,theme:"modern",type:"blue",animateFromElement:!1,draggable:!1,closeIcon:!0,useBootstrap:!1,title:wp_mail_smtp.education.upgrade_title.replace(/%name%/g,t.siblings("label").text().trim()),icon:'"></i>'+wp_mail_smtp.education.upgrade_icon_lock+'<i class="',content:a(".wp-mail-smtp-mailer-options .wp-mail-smtp-mailer-option-"+t.val()+" .wp-mail-smtp-setting-field").html(),boxWidth:"550px",onOpenBefore:function(){this.$btnc.after('<div class="discount-note">'+wp_mail_smtp.education.upgrade_bonus+wp_mail_smtp.education.upgrade_doc+"</div>")},buttons:{confirm:{text:wp_mail_smtp.education.upgrade_button,btnClass:"btn-confirm",keys:["enter"],action:function(){e.open(wp_mail_smtp.education.upgrade_url+"&utm_content="+encodeURI(t.val()),"_blank")}}}})}},mailers:{smtp:{bindActions:function(){a("#wp-mail-smtp-setting-smtp-auth").change(function(){a("#wp-mail-smtp-setting-row-smtp-user, #wp-mail-smtp-setting-row-smtp-pass").toggleClass("inactive")}),a("#wp-mail-smtp-setting-row-smtp-encryption input").change(function(){var t=a(this),e=a("#wp-mail-smtp-setting-smtp-port",s.pageHolder);"tls"===t.val()?(e.val("587"),a("#wp-mail-smtp-setting-row-smtp-autotls").addClass("inactive")):("ssl"===t.val()?e.val("465"):e.val("25"),a("#wp-mail-smtp-setting-row-smtp-autotls").removeClass("inactive"))})}}},triggerExitNotice:function(){var t=a(".wp-mail-smtp-page-general:not( .wp-mail-smtp-tab-test )");a(e).on("beforeunload",function(){if(s.pluginSettingsChanged)return wp_mail_smtp.text_settings_not_saved}),a(":input:not( #wp-mail-smtp-setting-license-key, .wp-mail-smtp-not-form-input )",t).on("change",function(){s.pluginSettingsChanged=!0}),a("form",t).on("submit",function(){s.pluginSettingsChanged=!1})},beforeSaveChecks:function(){a("form",s.pageHolder).on("submit",function(){if("mail"===a(".wp-mail-smtp-mailer input:checked",s.pageHolder).val()){var t=a(this);return a.alert({backgroundDismiss:!1,escapeKey:!1,animationBounce:1,theme:"modern",type:"orange",animateFromElement:!1,draggable:!1,closeIcon:!1,useBootstrap:!1,icon:'"></i><img src="'+wp_mail_smtp.plugin_url+'/assets/images/font-awesome/exclamation-circle-solid-orange.svg" style="width: 40px; height: 40px;" alt="'+wp_mail_smtp.default_mailer_notice.icon_alt+'"><i class="',title:wp_mail_smtp.default_mailer_notice.title,content:wp_mail_smtp.default_mailer_notice.content,boxWidth:"550px",buttons:{confirm:{text:wp_mail_smtp.default_mailer_notice.save_button,btnClass:"btn-confirm",keys:["enter"],action:function(){t.off("submit").submit()}},cancel:{text:wp_mail_smtp.default_mailer_notice.cancel_button}}}),!1}})},processMailerSettingsOnChange:function(){var t=wp_mail_smtp.all_mailers_supports[a(this).val()];for(var e in t)t.hasOwnProperty(e)&&a(".js-wp-mail-smtp-setting-"+e,s.pageHolder).toggle(t[e]);var i=a(".js-wp-mail-smtp-setting-from_email");i.closest(".wp-mail-smtp-setting-row").toggle(t.from_email||t.from_email_force),i.siblings(".wp-mail-smtp-setting-mid-row-sep").toggle(t.from_email&&t.from_email_force),(i=a(".js-wp-mail-smtp-setting-from_name")).closest(".wp-mail-smtp-setting-row").toggle(t.from_name||t.from_name_force),i.siblings(".wp-mail-smtp-setting-mid-row-sep").toggle(t.from_name&&t.from_name_force)}};return s}(document,window,jQuery),WPMailSMTP.Admin.Settings.init();
|
assets/languages/wp-mail-smtp.pot
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
-
"Project-Id-Version: WP Mail SMTP 2.
|
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: 2020-
|
11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
12 |
"X-Generator: WP-CLI 2.4.0\n"
|
13 |
"X-Domain: wp-mail-smtp\n"
|
@@ -33,55 +33,39 @@ msgid "https://wpforms.com/"
|
|
33 |
msgstr ""
|
34 |
|
35 |
#. translators: %s - error code, returned by Google API.
|
36 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:126
|
37 |
#: src/Admin/Area.php:126
|
38 |
msgid "There was an error while processing the authentication request: %s. Please try again."
|
39 |
msgstr ""
|
40 |
|
41 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:133
|
42 |
#: src/Admin/Area.php:133
|
43 |
msgid "There was an error while processing the authentication request. Please try again."
|
44 |
msgstr ""
|
45 |
|
46 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:140
|
47 |
#: src/Admin/Area.php:140
|
48 |
msgid "There was an error while processing the authentication request. Please make sure that you have Client ID and Client Secret both valid and saved."
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:149
|
52 |
#: src/Admin/Area.php:149
|
53 |
msgid "You have successfully linked the current site with your Google API project. Now you can start sending emails through Gmail."
|
54 |
msgstr ""
|
55 |
|
56 |
#. translators: %s - Mailer anchor link.
|
57 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:180
|
58 |
#: src/Admin/Area.php:180
|
59 |
msgid "Thanks for using WP Mail SMTP! To complete the plugin setup and start sending emails, <strong>please select and configure your <a href=\"%s\">Mailer</a></strong>."
|
60 |
msgstr ""
|
61 |
|
62 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:203
|
63 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:204
|
64 |
-
#: build/wp-mail-smtp/src/SiteHealth.php:40
|
65 |
#: src/Admin/Area.php:203
|
66 |
#: src/Admin/Area.php:204
|
67 |
#: src/SiteHealth.php:40
|
68 |
msgid "WP Mail SMTP"
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:214
|
72 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:215
|
73 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:862
|
74 |
#: src/Admin/Area.php:214
|
75 |
#: src/Admin/Area.php:215
|
76 |
#: src/Admin/Area.php:862
|
77 |
msgid "Settings"
|
78 |
msgstr ""
|
79 |
|
80 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:222
|
81 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:223
|
82 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:653
|
83 |
-
#: build/wp-mail-smtp/src/Admin/Pages/Logs.php:48
|
84 |
-
#: build/wp-mail-smtp/src/Admin/Pages/LogsTab.php:30
|
85 |
#: src/Admin/Area.php:222
|
86 |
#: src/Admin/Area.php:223
|
87 |
#: src/Admin/Pages/About.php:653
|
@@ -90,1263 +74,1013 @@ msgstr ""
|
|
90 |
msgid "Email Log"
|
91 |
msgstr ""
|
92 |
|
93 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:232
|
94 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:233
|
95 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:106
|
96 |
#: src/Admin/Area.php:232
|
97 |
#: src/Admin/Area.php:233
|
98 |
#: src/Admin/Pages/About.php:106
|
99 |
msgid "About Us"
|
100 |
msgstr ""
|
101 |
|
102 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:296
|
103 |
#: src/Admin/Area.php:296
|
104 |
msgid "Are you sure you want to reset the current provider connection? You will need to immediately create a new one to be able to send emails."
|
105 |
msgstr ""
|
106 |
|
107 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:297
|
108 |
#: src/Admin/Area.php:297
|
109 |
msgid "Changes that you made to the settings are not saved!"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:299
|
113 |
#: src/Admin/Area.php:299
|
114 |
msgid "Heads up!"
|
115 |
msgstr ""
|
116 |
|
117 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:301
|
118 |
#: src/Admin/Area.php:301
|
119 |
msgid "<p>The Default (PHP) mailer is currently selected, but is not recommended because in most cases it does not resolve email delivery issues.</p><p>Please consider selecting and configuring one of the other mailers.</p>"
|
120 |
msgstr ""
|
121 |
|
122 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:304
|
123 |
-
#: build/wp-mail-smtp/src/Admin/PageAbstract.php:83
|
124 |
#: src/Admin/Area.php:304
|
125 |
#: src/Admin/PageAbstract.php:83
|
126 |
msgid "Save Settings"
|
127 |
msgstr ""
|
128 |
|
129 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:305
|
130 |
#: src/Admin/Area.php:305
|
131 |
msgid "Cancel"
|
132 |
msgstr ""
|
133 |
|
134 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:306
|
135 |
#: src/Admin/Area.php:306
|
136 |
msgid "Warning icon"
|
137 |
msgstr ""
|
138 |
|
139 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:311
|
140 |
#: src/Admin/Area.php:311
|
141 |
msgid "%name% is a PRO Feature"
|
142 |
msgstr ""
|
143 |
|
144 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:312
|
145 |
#: src/Admin/Area.php:312
|
146 |
msgid "Upgrade to Pro"
|
147 |
msgstr ""
|
148 |
|
149 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:316
|
150 |
#: src/Admin/Area.php:316
|
151 |
msgid "<strong>Bonus:</strong> WP Mail SMTP users get <span>$50 off</span> regular price,<br>applied at checkout."
|
152 |
msgstr ""
|
153 |
|
154 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:325
|
155 |
#: src/Admin/Area.php:325
|
156 |
msgid "Already purchased?"
|
157 |
msgstr ""
|
158 |
|
159 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:394
|
160 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:401
|
161 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:334
|
162 |
#: src/Admin/Area.php:394
|
163 |
#: src/Admin/Area.php:401
|
164 |
#: src/Admin/Pages/About.php:334
|
165 |
msgid "Activate"
|
166 |
msgstr ""
|
167 |
|
168 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:395
|
169 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:326
|
170 |
#: src/Admin/Area.php:395
|
171 |
#: src/Admin/Pages/About.php:326
|
172 |
msgid "Activated"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:396
|
176 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:323
|
177 |
#: src/Admin/Area.php:396
|
178 |
#: src/Admin/Pages/About.php:323
|
179 |
msgid "Active"
|
180 |
msgstr ""
|
181 |
|
182 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:397
|
183 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:331
|
184 |
#: src/Admin/Area.php:397
|
185 |
#: src/Admin/Pages/About.php:331
|
186 |
msgid "Inactive"
|
187 |
msgstr ""
|
188 |
|
189 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:398
|
190 |
#: src/Admin/Area.php:398
|
191 |
msgid "Processing..."
|
192 |
msgstr ""
|
193 |
|
194 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:399
|
195 |
#: src/Admin/Area.php:399
|
196 |
msgid "Could not install a plugin. Please download from WordPress.org and install manually."
|
197 |
msgstr ""
|
198 |
|
199 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:400
|
200 |
#: src/Admin/Area.php:400
|
201 |
msgid "Install and Activate"
|
202 |
msgstr ""
|
203 |
|
204 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:402
|
205 |
#: src/Admin/Area.php:402
|
206 |
msgid "Download"
|
207 |
msgstr ""
|
208 |
|
209 |
#. translators: %1$s - WP.org link; %2$s - same WP.org link.
|
210 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:464
|
211 |
#: src/Admin/Area.php:464
|
212 |
msgid "Please rate <strong>WP Mail SMTP</strong> <a href=\"%1$s\" target=\"_blank\" rel=\"noopener noreferrer\">★★★★★</a> on <a href=\"%2$s\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress.org</a> to help us spread the word. Thank you from the WP Mail SMTP team!"
|
213 |
msgstr ""
|
214 |
|
215 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:803
|
216 |
#: src/Admin/Area.php:803
|
217 |
msgid "WP Mail SMTP Pro related message was successfully dismissed."
|
218 |
msgstr ""
|
219 |
|
220 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:822
|
221 |
#: src/Admin/Area.php:822
|
222 |
msgid "Educational notice for this mailer was successfully dismissed."
|
223 |
msgstr ""
|
224 |
|
225 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:861
|
226 |
#: src/Admin/Area.php:861
|
227 |
msgid "Go to WP Mail SMTP Settings page"
|
228 |
msgstr ""
|
229 |
|
230 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:868
|
231 |
#: src/Admin/Area.php:868
|
232 |
msgid "Go to WP Mail SMTP Lite vs Pro comparison page"
|
233 |
msgstr ""
|
234 |
|
235 |
-
#: build/wp-mail-smtp/src/Admin/Area.php:869
|
236 |
#: src/Admin/Area.php:869
|
237 |
msgid "Premium Support"
|
238 |
msgstr ""
|
239 |
|
240 |
#. translators: %s - WPMailSMTP.com Upgrade page URL.
|
241 |
-
#: build/wp-mail-smtp/src/Admin/Education.php:69
|
242 |
#: src/Admin/Education.php:69
|
243 |
msgid "You’re using WP Mail SMTP Lite. To unlock more features consider <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">upgrading to Pro</a>."
|
244 |
msgstr ""
|
245 |
|
246 |
-
#: build/wp-mail-smtp/src/Admin/Education.php:80
|
247 |
#: src/Admin/Education.php:80
|
248 |
msgid "Dismiss this message."
|
249 |
msgstr ""
|
250 |
|
251 |
-
#:
|
252 |
-
#: src/Admin/Notifications.php:441
|
253 |
msgid "Dismiss this message"
|
254 |
msgstr ""
|
255 |
|
256 |
-
#:
|
257 |
-
#: src/Admin/Notifications.php:444
|
258 |
msgid "Previous message"
|
259 |
msgstr ""
|
260 |
|
261 |
-
#:
|
262 |
-
#: src/Admin/Notifications.php:445
|
263 |
msgid "Next message"
|
264 |
msgstr ""
|
265 |
|
266 |
#. translators: %s - plugin current license type.
|
267 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:99
|
268 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:552
|
269 |
#: src/Admin/Pages/About.php:99
|
270 |
#: src/Admin/Pages/About.php:552
|
271 |
msgid "%s vs Pro"
|
272 |
msgstr ""
|
273 |
|
274 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:173
|
275 |
#: src/Admin/Pages/About.php:173
|
276 |
msgid "Hello and welcome to WP Mail SMTP, the easiest and most popular WordPress SMTP plugin. We build software that helps your site reliably deliver emails every time."
|
277 |
msgstr ""
|
278 |
|
279 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:177
|
280 |
#: src/Admin/Pages/About.php:177
|
281 |
msgid "Email deliverability has been a well-documented problem for all WordPress websites. However as WPForms grew, we became more aware of this painful issue that affects our users and the larger WordPress community. So we decided to solve this problem and make a solution that's beginner friendly."
|
282 |
msgstr ""
|
283 |
|
284 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:180
|
285 |
#: src/Admin/Pages/About.php:180
|
286 |
msgid "Our goal is to make reliable email deliverability easy for WordPress."
|
287 |
msgstr ""
|
288 |
|
289 |
#. translators: %1$s - WPForms URL, %2$s - WPBeginner URL, %3$s - OptinMonster URL, %4$s - MonsterInsights URL, %5$s - RafflePress URL
|
290 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:187
|
291 |
#: src/Admin/Pages/About.php:187
|
292 |
msgid "WP Mail SMTP is brought to you by the same team that's behind the most user friendly WordPress forms, <a href=\"%1$s\" target=\"_blank\" rel=\"noopener noreferrer\">WPForms</a>, the largest WordPress resource site, <a href=\"%2$s\" target=\"_blank\" rel=\"noopener noreferrer\">WPBeginner</a>, the most popular lead-generation software, <a href=\"%3$s\" target=\"_blank\" rel=\"noopener noreferrer\">OptinMonster</a>, the best WordPress analytics plugin, <a href=\"%4$s\" target=\"_blank\" rel=\"noopener noreferrer\">MonsterInsights</a>, and the most powerful WordPress contest plugin, <a href=\"%5$s\" target=\"_blank\" rel=\"noopener noreferrer\">RafflePress</a>."
|
293 |
msgstr ""
|
294 |
|
295 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:205
|
296 |
#: src/Admin/Pages/About.php:205
|
297 |
msgid "Yup, we know a thing or two about building awesome products that customers love."
|
298 |
msgstr ""
|
299 |
|
300 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:211
|
301 |
#: src/Admin/Pages/About.php:211
|
302 |
msgid "The WPForms Team photo"
|
303 |
msgstr ""
|
304 |
|
305 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:213
|
306 |
#: src/Admin/Pages/About.php:213
|
307 |
msgid "The WPForms Team"
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:262
|
311 |
#: src/Admin/Pages/About.php:262
|
312 |
msgid "Plugin icon"
|
313 |
msgstr ""
|
314 |
|
315 |
#. translators: %s - status HTML text.
|
316 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:276
|
317 |
#: src/Admin/Pages/About.php:276
|
318 |
msgid "Status: %s"
|
319 |
msgstr ""
|
320 |
|
321 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:342
|
322 |
#: src/Admin/Pages/About.php:342
|
323 |
msgid "Not Installed"
|
324 |
msgstr ""
|
325 |
|
326 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:345
|
327 |
#: src/Admin/Pages/About.php:345
|
328 |
msgid "Install Plugin"
|
329 |
msgstr ""
|
330 |
|
331 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:366
|
332 |
#: src/Admin/Pages/About.php:366
|
333 |
msgid "MonsterInsights"
|
334 |
msgstr ""
|
335 |
|
336 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:367
|
337 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:373
|
338 |
#: src/Admin/Pages/About.php:367
|
339 |
#: src/Admin/Pages/About.php:373
|
340 |
msgid "MonsterInsights makes it “effortless” to properly connect your WordPress site with Google Analytics, so you can start making data-driven decisions to grow your business."
|
341 |
msgstr ""
|
342 |
|
343 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:372
|
344 |
#: src/Admin/Pages/About.php:372
|
345 |
msgid "MonsterInsights Pro"
|
346 |
msgstr ""
|
347 |
|
348 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:380
|
349 |
#: src/Admin/Pages/About.php:380
|
350 |
msgid "OptinMonster"
|
351 |
msgstr ""
|
352 |
|
353 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:381
|
354 |
#: src/Admin/Pages/About.php:381
|
355 |
msgid "Our high-converting optin forms like Exit-Intent® popups, Fullscreen Welcome Mats, and Scroll boxes help you dramatically boost conversions and get more email subscribers."
|
356 |
msgstr ""
|
357 |
|
358 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:387
|
359 |
#: src/Admin/Pages/About.php:387
|
360 |
msgid "Contact Forms by WPForms"
|
361 |
msgstr ""
|
362 |
|
363 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:388
|
364 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:394
|
365 |
#: src/Admin/Pages/About.php:388
|
366 |
#: src/Admin/Pages/About.php:394
|
367 |
msgid "The best WordPress contact form plugin. Drag & Drop online form builder that helps you create beautiful contact forms with just a few clicks."
|
368 |
msgstr ""
|
369 |
|
370 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:393
|
371 |
#: src/Admin/Pages/About.php:393
|
372 |
msgid "WPForms Pro"
|
373 |
msgstr ""
|
374 |
|
375 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:401
|
376 |
#: src/Admin/Pages/About.php:401
|
377 |
msgid "RafflePress"
|
378 |
msgstr ""
|
379 |
|
380 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:402
|
381 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:408
|
382 |
#: src/Admin/Pages/About.php:402
|
383 |
#: src/Admin/Pages/About.php:408
|
384 |
msgid "Turn your visitors into brand ambassadors! Easily grow your email list, website traffic, and social media followers with powerful viral giveaways & contests."
|
385 |
msgstr ""
|
386 |
|
387 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:407
|
388 |
#: src/Admin/Pages/About.php:407
|
389 |
msgid "RafflePress Pro"
|
390 |
msgstr ""
|
391 |
|
392 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:427
|
393 |
#: src/Admin/Pages/About.php:427
|
394 |
msgid "Could not activate the plugin. Please activate it from the Plugins page."
|
395 |
msgstr ""
|
396 |
|
397 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:439
|
398 |
#: src/Admin/Pages/About.php:439
|
399 |
msgid "Plugin activated."
|
400 |
msgstr ""
|
401 |
|
402 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:456
|
403 |
#: src/Admin/Pages/About.php:456
|
404 |
msgid "Could not install the plugin."
|
405 |
msgstr ""
|
406 |
|
407 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:517
|
408 |
#: src/Admin/Pages/About.php:517
|
409 |
msgid "Plugin installed & activated."
|
410 |
msgstr ""
|
411 |
|
412 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:525
|
413 |
#: src/Admin/Pages/About.php:525
|
414 |
msgid "Plugin installed."
|
415 |
msgstr ""
|
416 |
|
417 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:560
|
418 |
#: src/Admin/Pages/About.php:560
|
419 |
msgid "Get the most out of WP Mail SMTP by upgrading to Pro and unlocking all of the powerful features."
|
420 |
msgstr ""
|
421 |
|
422 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:569
|
423 |
#: src/Admin/Pages/About.php:569
|
424 |
msgid "Feature"
|
425 |
msgstr ""
|
426 |
|
427 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:579
|
428 |
#: src/Admin/Pages/About.php:579
|
429 |
msgid "Pro"
|
430 |
msgstr ""
|
431 |
|
432 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:620
|
433 |
#: src/Admin/Pages/About.php:620
|
434 |
msgid "Get WP Mail SMTP Pro Today and Unlock all of these Powerful Features"
|
435 |
msgstr ""
|
436 |
|
437 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:627
|
438 |
#: src/Admin/Pages/About.php:627
|
439 |
msgid "Bonus: WP Mail SMTP Lite users get <span class=\"price-off\">$50 off regular price</span>, automatically applied at checkout."
|
440 |
msgstr ""
|
441 |
|
442 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:654
|
443 |
-
#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:27
|
444 |
#: src/Admin/Pages/About.php:654
|
445 |
#: src/Admin/Pages/ControlTab.php:27
|
446 |
msgid "Email Controls"
|
447 |
msgstr ""
|
448 |
|
449 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:655
|
450 |
#: src/Admin/Pages/About.php:655
|
451 |
-
msgid "
|
452 |
msgstr ""
|
453 |
|
454 |
-
#: build/wp-mail-smtp/src/Admin/Pages/About.php:656
|
455 |
#: src/Admin/Pages/About.php:656
|
|
|
|
|
|
|
|
|
456 |
msgid "Customer Support"
|
457 |
msgstr ""
|
458 |
|
459 |
-
#:
|
460 |
-
#: src/Admin/Pages/About.php:677
|
461 |
msgid "Emails are not logged"
|
462 |
msgstr ""
|
463 |
|
464 |
-
#:
|
465 |
-
|
466 |
-
msgid "Complete Email Log management inside WordPress"
|
467 |
msgstr ""
|
468 |
|
469 |
-
#:
|
470 |
-
#: src/Admin/Pages/About.php:691
|
471 |
msgid "No controls over whether default WordPress emails are sent"
|
472 |
msgstr ""
|
473 |
|
474 |
-
#:
|
475 |
-
#: src/Admin/Pages/About.php:697
|
476 |
msgid "Complete Email Controls management for most default WordPress emails"
|
477 |
msgstr ""
|
478 |
|
479 |
-
#:
|
480 |
-
|
481 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
482 |
msgstr ""
|
483 |
|
484 |
-
#:
|
485 |
-
|
486 |
-
msgid "Additional mailers: Microsoft Outlook (with Office365 support) and Amazon SES"
|
487 |
msgstr ""
|
488 |
|
489 |
-
#:
|
490 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
491 |
msgid "Limited Support"
|
492 |
msgstr ""
|
493 |
|
494 |
-
#:
|
495 |
-
#: src/Admin/Pages/About.php:725
|
496 |
msgid "Priority Support"
|
497 |
msgstr ""
|
498 |
|
499 |
-
#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:48
|
500 |
#: src/Admin/Pages/ControlTab.php:48
|
501 |
msgid "Comment Notifications"
|
502 |
msgstr ""
|
503 |
|
504 |
-
#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:49
|
505 |
#: src/Admin/Pages/ControlTab.php:49
|
506 |
msgid "Manage emails sent when comments are published or awaiting moderation."
|
507 |
msgstr ""
|
508 |
|
509 |
-
#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:53
|
510 |
#: src/Admin/Pages/ControlTab.php:53
|
511 |
msgid "Site Admin Email Change Notifications"
|
512 |
msgstr ""
|
513 |
|
514 |
-
#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:54
|
515 |
#: src/Admin/Pages/ControlTab.php:54
|
516 |
msgid "Manage emails sent when site admin's account has been changed."
|
517 |
msgstr ""
|
518 |
|
519 |
-
#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:58
|
520 |
#: src/Admin/Pages/ControlTab.php:58
|
521 |
msgid "User Change Notifications"
|
522 |
msgstr ""
|
523 |
|
524 |
-
#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:59
|
525 |
#: src/Admin/Pages/ControlTab.php:59
|
526 |
msgid "Limit emails triggered by password changed/reset, email changed, and more."
|
527 |
msgstr ""
|
528 |
|
529 |
-
#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:63
|
530 |
#: src/Admin/Pages/ControlTab.php:63
|
531 |
msgid "Personal Data Requests Notifications"
|
532 |
msgstr ""
|
533 |
|
534 |
-
#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:64
|
535 |
#: src/Admin/Pages/ControlTab.php:64
|
536 |
msgid "Control emails for data requests and data removal actions."
|
537 |
msgstr ""
|
538 |
|
539 |
-
#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:68
|
540 |
#: src/Admin/Pages/ControlTab.php:68
|
541 |
msgid "Automatic Update Notifications"
|
542 |
msgstr ""
|
543 |
|
544 |
-
#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:69
|
545 |
#: src/Admin/Pages/ControlTab.php:69
|
546 |
msgid "Manage emails sent by the core automatic update process."
|
547 |
msgstr ""
|
548 |
|
549 |
-
#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:73
|
550 |
#: src/Admin/Pages/ControlTab.php:73
|
551 |
msgid "New User Notifications"
|
552 |
msgstr ""
|
553 |
|
554 |
-
#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:74
|
555 |
#: src/Admin/Pages/ControlTab.php:74
|
556 |
msgid "Toggle emails sent to both user and site administrator about new user accounts."
|
557 |
msgstr ""
|
558 |
|
559 |
-
#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:92
|
560 |
#: src/Admin/Pages/ControlTab.php:92
|
561 |
msgid "Unlock Email Controls"
|
562 |
msgstr ""
|
563 |
|
564 |
-
#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:95
|
565 |
#: src/Admin/Pages/ControlTab.php:95
|
566 |
msgid "Email Controls allows you to granularly manage emails sent by WordPress.
"
|
567 |
msgstr ""
|
568 |
|
569 |
-
#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:119
|
570 |
-
#: build/wp-mail-smtp/src/Admin/Pages/LogsTab.php:68
|
571 |
#: src/Admin/Pages/ControlTab.php:119
|
572 |
#: src/Admin/Pages/LogsTab.php:68
|
573 |
msgid "Upgrade to WP Mail SMTP Pro"
|
574 |
msgstr ""
|
575 |
|
576 |
-
#: build/wp-mail-smtp/src/Admin/Pages/LogsTab.php:53
|
577 |
#: src/Admin/Pages/LogsTab.php:53
|
578 |
msgid "Unlock Email Logging"
|
579 |
msgstr ""
|
580 |
|
581 |
-
#: build/wp-mail-smtp/src/Admin/Pages/LogsTab.php:56
|
582 |
#: src/Admin/Pages/LogsTab.php:56
|
583 |
msgid "Keep track of every email sent from your WordPress site with email logging.
"
|
584 |
msgstr ""
|
585 |
|
586 |
-
#: build/wp-mail-smtp/src/Admin/Pages/LogsTab.php:57
|
587 |
#: src/Admin/Pages/LogsTab.php:57
|
588 |
msgid "Troubleshoot sending issues, recover lost emails, and more!"
|
589 |
msgstr ""
|
590 |
|
591 |
-
#: build/wp-mail-smtp/src/Admin/Pages/LogsTab.php:61
|
592 |
#: src/Admin/Pages/LogsTab.php:61
|
593 |
msgid "Logs Archive Page Screenshot"
|
594 |
msgstr ""
|
595 |
|
596 |
-
#: build/wp-mail-smtp/src/Admin/Pages/LogsTab.php:62
|
597 |
#: src/Admin/Pages/LogsTab.php:62
|
598 |
msgid "Logs Single Page Screenshot"
|
599 |
msgstr ""
|
600 |
|
601 |
-
#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:25
|
602 |
#: src/Admin/Pages/MiscTab.php:25
|
603 |
msgid "Misc"
|
604 |
msgstr ""
|
605 |
|
606 |
-
#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:57
|
607 |
#: src/Admin/Pages/MiscTab.php:57
|
608 |
msgid "Do Not Send"
|
609 |
msgstr ""
|
610 |
|
611 |
-
#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:66
|
612 |
#: src/Admin/Pages/MiscTab.php:66
|
613 |
msgid "Check this if you would like to stop sending all emails."
|
614 |
msgstr ""
|
615 |
|
616 |
-
#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:72
|
617 |
#: src/Admin/Pages/MiscTab.php:72
|
618 |
msgid "Some plugins, like BuddyPress and Events Manager, are using their own email delivery solutions. By default, this option does not block their emails, as those plugins do not use default <code>wp_mail()</code> function to send emails."
|
619 |
msgstr ""
|
620 |
|
621 |
-
#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:80
|
622 |
#: src/Admin/Pages/MiscTab.php:80
|
623 |
msgid "You will need to consult with their documentation to switch them to use default WordPress email delivery."
|
624 |
msgstr ""
|
625 |
|
626 |
-
#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:82
|
627 |
#: src/Admin/Pages/MiscTab.php:82
|
628 |
msgid "Test emails are allowed to be sent, regardless of this option."
|
629 |
msgstr ""
|
630 |
|
631 |
#. translators: %1$s - constant that was used; %2$s - file where it was used.
|
632 |
-
#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:87
|
633 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:480
|
634 |
#: src/Admin/Pages/MiscTab.php:87
|
635 |
#: src/Providers/OptionsAbstract.php:480
|
636 |
msgid "The value of this field was set using a constant %1$s most likely inside %2$s of your WordPress installation."
|
637 |
msgstr ""
|
638 |
|
639 |
#. translators: %s - The URL to the constants support article.
|
640 |
-
#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:94
|
641 |
#: src/Admin/Pages/MiscTab.php:94
|
642 |
msgid "Please read this <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">support article</a> if you want to enable this option using constants."
|
643 |
msgstr ""
|
644 |
|
645 |
-
#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:115
|
646 |
#: src/Admin/Pages/MiscTab.php:115
|
647 |
msgid "Hide Announcements"
|
648 |
msgstr ""
|
649 |
|
650 |
-
#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:124
|
651 |
#: src/Admin/Pages/MiscTab.php:124
|
652 |
msgid "Check this if you would like to hide plugin announcements and update details."
|
653 |
msgstr ""
|
654 |
|
655 |
-
#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:134
|
656 |
#: src/Admin/Pages/MiscTab.php:134
|
657 |
msgid "Hide Email Delivery Errors"
|
658 |
msgstr ""
|
659 |
|
660 |
-
#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:150
|
661 |
#: src/Admin/Pages/MiscTab.php:150
|
662 |
msgid "Check this if you would like to hide warnings alerting of email delivery errors."
|
663 |
msgstr ""
|
664 |
|
665 |
#. translators: %s - filter that was used to disabled.
|
666 |
-
#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:157
|
667 |
#: src/Admin/Pages/MiscTab.php:157
|
668 |
msgid "Email Delivery Errors were disabled using a %s filter."
|
669 |
msgstr ""
|
670 |
|
671 |
-
#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:166
|
672 |
#: src/Admin/Pages/MiscTab.php:166
|
673 |
msgid "<strong>This is not recommended</strong> and should only be done for staging or development sites."
|
674 |
msgstr ""
|
675 |
|
676 |
-
#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:181
|
677 |
#: src/Admin/Pages/MiscTab.php:181
|
678 |
msgid "Uninstall WP Mail SMTP"
|
679 |
msgstr ""
|
680 |
|
681 |
-
#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:189
|
682 |
#: src/Admin/Pages/MiscTab.php:189
|
683 |
msgid "Check this if you would like to remove ALL WP Mail SMTP data upon plugin deletion. All settings will be unrecoverable."
|
684 |
msgstr ""
|
685 |
|
686 |
-
#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:199
|
687 |
#: src/Admin/Pages/MiscTab.php:199
|
688 |
msgid "Allow Usage Tracking"
|
689 |
msgstr ""
|
690 |
|
691 |
-
#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:207
|
692 |
#: src/Admin/Pages/MiscTab.php:207
|
693 |
msgid "By allowing us to track usage data we can better help you because we know with which WordPress configurations, themes and plugins we should test."
|
694 |
msgstr ""
|
695 |
|
696 |
-
#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:257
|
697 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:597
|
698 |
#: src/Admin/Pages/MiscTab.php:257
|
699 |
#: src/Admin/Pages/SettingsTab.php:597
|
700 |
msgid "Settings were successfully saved."
|
701 |
msgstr ""
|
702 |
|
703 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:37
|
704 |
#: src/Admin/Pages/SettingsTab.php:37
|
705 |
msgid "General"
|
706 |
msgstr ""
|
707 |
|
708 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:73
|
709 |
#: src/Admin/Pages/SettingsTab.php:73
|
710 |
msgid "License"
|
711 |
msgstr ""
|
712 |
|
713 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:76
|
714 |
#: src/Admin/Pages/SettingsTab.php:76
|
715 |
msgid "Your license key provides access to updates and support."
|
716 |
msgstr ""
|
717 |
|
718 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:84
|
719 |
#: src/Admin/Pages/SettingsTab.php:84
|
720 |
msgid "License Key"
|
721 |
msgstr ""
|
722 |
|
723 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:94
|
724 |
#: src/Admin/Pages/SettingsTab.php:94
|
725 |
msgid "Mail"
|
726 |
msgstr ""
|
727 |
|
728 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:101
|
729 |
#: src/Admin/Pages/SettingsTab.php:101
|
730 |
msgid "From Email"
|
731 |
msgstr ""
|
732 |
|
733 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:120
|
734 |
#: src/Admin/Pages/SettingsTab.php:120
|
735 |
msgid "Please first authorize the Gmail mailer below"
|
736 |
msgstr ""
|
737 |
|
738 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:134
|
739 |
#: src/Admin/Pages/SettingsTab.php:134
|
740 |
msgid "The email address which emails are sent from."
|
741 |
msgstr ""
|
742 |
|
743 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:135
|
744 |
#: src/Admin/Pages/SettingsTab.php:135
|
745 |
msgid "If you're using an email provider (Yahoo, Outlook.com, etc) this should be your email address for that account."
|
746 |
msgstr ""
|
747 |
|
748 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:138
|
749 |
#: src/Admin/Pages/SettingsTab.php:138
|
750 |
msgid "Please note that other plugins can change this, to prevent this use the setting below."
|
751 |
msgstr ""
|
752 |
|
753 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:158
|
754 |
#: src/Admin/Pages/SettingsTab.php:158
|
755 |
msgid "Force From Email"
|
756 |
msgstr ""
|
757 |
|
758 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:165
|
759 |
#: src/Admin/Pages/SettingsTab.php:165
|
760 |
msgid "Current provider will automatically force From Email to be the email address that you use to set up the connection below."
|
761 |
msgstr ""
|
762 |
|
763 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:167
|
764 |
#: src/Admin/Pages/SettingsTab.php:167
|
765 |
msgid "Gmail mailer will automatically force From Email to be the email address that you selected above."
|
766 |
msgstr ""
|
767 |
|
768 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:173
|
769 |
#: src/Admin/Pages/SettingsTab.php:173
|
770 |
msgid "If checked, the From Email setting above will be used for all emails, ignoring values set by other plugins."
|
771 |
msgstr ""
|
772 |
|
773 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:183
|
774 |
#: src/Admin/Pages/SettingsTab.php:183
|
775 |
msgid "From Name"
|
776 |
msgstr ""
|
777 |
|
778 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:195
|
779 |
#: src/Admin/Pages/SettingsTab.php:195
|
780 |
msgid "The name which emails are sent from."
|
781 |
msgstr ""
|
782 |
|
783 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:209
|
784 |
#: src/Admin/Pages/SettingsTab.php:209
|
785 |
msgid "Force From Name"
|
786 |
msgstr ""
|
787 |
|
788 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:214
|
789 |
#: src/Admin/Pages/SettingsTab.php:214
|
790 |
msgid "Current provider doesn't support setting and forcing From Name. Emails will be sent on behalf of the account name used to setup the connection below."
|
791 |
msgstr ""
|
792 |
|
793 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:218
|
794 |
#: src/Admin/Pages/SettingsTab.php:218
|
795 |
msgid "If checked, the From Name setting above will be used for all emails, ignoring values set by other plugins."
|
796 |
msgstr ""
|
797 |
|
798 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:228
|
799 |
#: src/Admin/Pages/SettingsTab.php:228
|
800 |
msgid "Return Path"
|
801 |
msgstr ""
|
802 |
|
803 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:237
|
804 |
#: src/Admin/Pages/SettingsTab.php:237
|
805 |
msgid "Set the return-path to match the From Email"
|
806 |
msgstr ""
|
807 |
|
808 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:241
|
809 |
#: src/Admin/Pages/SettingsTab.php:241
|
810 |
msgid "Return Path indicates where non-delivery receipts - or bounce messages - are to be sent."
|
811 |
msgstr ""
|
812 |
|
813 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:242
|
814 |
#: src/Admin/Pages/SettingsTab.php:242
|
815 |
msgid "If unchecked, bounce messages may be lost. Some providers may ignore this option."
|
816 |
msgstr ""
|
817 |
|
818 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:250
|
819 |
#: src/Admin/Pages/SettingsTab.php:250
|
820 |
msgid "Mailer"
|
821 |
msgstr ""
|
822 |
|
823 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:292
|
824 |
#: src/Admin/Pages/SettingsTab.php:292
|
825 |
msgid "Don't see what you're looking for?"
|
826 |
msgstr ""
|
827 |
|
828 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:294
|
829 |
#: src/Admin/Pages/SettingsTab.php:294
|
830 |
msgid "Suggest a Mailer"
|
831 |
msgstr ""
|
832 |
|
833 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:322
|
834 |
#: src/Admin/Pages/SettingsTab.php:322
|
835 |
msgid "Dismiss this notice"
|
836 |
msgstr ""
|
837 |
|
838 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:369
|
839 |
#: src/Admin/Pages/SettingsTab.php:369
|
840 |
msgid "You're using WP Mail SMTP Lite - no license needed. Enjoy!"
|
841 |
msgstr ""
|
842 |
|
843 |
#. translators: %s - WPMailSMTP.com upgrade URL.
|
844 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:375
|
845 |
#: src/Admin/Pages/SettingsTab.php:375
|
846 |
msgid "To unlock more features consider <strong><a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"wp-mail-smtp-upgrade-modal\">upgrading to PRO</a></strong>."
|
847 |
msgstr ""
|
848 |
|
849 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:394
|
850 |
#: src/Admin/Pages/SettingsTab.php:394
|
851 |
msgid "As a valued WP Mail SMTP Lite user you receive <strong>$50 off</strong>, automatically applied at checkout!"
|
852 |
msgstr ""
|
853 |
|
854 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:455
|
855 |
#: src/Admin/Pages/SettingsTab.php:455
|
856 |
msgid "Get WP Mail SMTP Pro and Unlock all the Powerful Features"
|
857 |
msgstr ""
|
858 |
|
859 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:459
|
860 |
#: src/Admin/Pages/SettingsTab.php:459
|
861 |
msgid "Thanks for being a loyal WP Mail SMTP user. Upgrade to WP Mail SMTP Pro to unlock more awesome features and experience why WP Mail SMTP is the most popular SMTP plugin."
|
862 |
msgstr ""
|
863 |
|
864 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:463
|
865 |
#: src/Admin/Pages/SettingsTab.php:463
|
866 |
msgid "We know that you will truly love WP Mail SMTP. It's used by over 1,000,000 websites."
|
867 |
msgstr ""
|
868 |
|
869 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:466
|
870 |
#: src/Admin/Pages/SettingsTab.php:466
|
871 |
msgid "Pro Features:"
|
872 |
msgstr ""
|
873 |
|
874 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:470
|
875 |
#: src/Admin/Pages/SettingsTab.php:470
|
876 |
msgid "Manage Notifications - control which emails your site sends"
|
877 |
msgstr ""
|
878 |
|
879 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:471
|
880 |
#: src/Admin/Pages/SettingsTab.php:471
|
881 |
msgid "Email Logging - keep track of every email sent from your site"
|
882 |
msgstr ""
|
883 |
|
884 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:472
|
885 |
#: src/Admin/Pages/SettingsTab.php:472
|
886 |
msgid "Office 365 - send emails using your Office 365 account"
|
887 |
msgstr ""
|
888 |
|
889 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:473
|
890 |
#: src/Admin/Pages/SettingsTab.php:473
|
891 |
msgid "Amazon SES - harness the power of AWS"
|
892 |
msgstr ""
|
893 |
|
894 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:474
|
895 |
#: src/Admin/Pages/SettingsTab.php:474
|
896 |
msgid "Outlook.com - send emails using your Outlook.com account"
|
897 |
msgstr ""
|
898 |
|
899 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:475
|
900 |
#: src/Admin/Pages/SettingsTab.php:475
|
901 |
msgid "Access to our world class support team"
|
902 |
msgstr ""
|
903 |
|
904 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:478
|
905 |
#: src/Admin/Pages/SettingsTab.php:478
|
906 |
msgid "White Glove Setup - sit back and relax while we handle everything for you"
|
907 |
msgstr ""
|
908 |
|
909 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:479
|
910 |
#: src/Admin/Pages/SettingsTab.php:479
|
911 |
msgid "Install WP Mail SMTP Pro plugin"
|
912 |
msgstr ""
|
913 |
|
914 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:480
|
915 |
#: src/Admin/Pages/SettingsTab.php:480
|
916 |
msgid "Set up domain name verification (DNS)"
|
917 |
msgstr ""
|
918 |
|
919 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:481
|
920 |
#: src/Admin/Pages/SettingsTab.php:481
|
921 |
msgid "Configure Mailgun service"
|
922 |
msgstr ""
|
923 |
|
924 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:482
|
925 |
#: src/Admin/Pages/SettingsTab.php:482
|
926 |
msgid "Set up WP Mail SMTP Pro plugin"
|
927 |
msgstr ""
|
928 |
|
929 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:483
|
930 |
#: src/Admin/Pages/SettingsTab.php:483
|
931 |
msgid "Test and verify email delivery"
|
932 |
msgstr ""
|
933 |
|
934 |
#. translators: %s - WPMailSMTP.com URL.
|
935 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:491
|
936 |
#: src/Admin/Pages/SettingsTab.php:491
|
937 |
msgid "<a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">Get WP Mail SMTP Pro Today and Unlock all the Powerful Features »</a>"
|
938 |
msgstr ""
|
939 |
|
940 |
-
#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:509
|
941 |
#: src/Admin/Pages/SettingsTab.php:509
|
942 |
msgid "<strong>Bonus:</strong> WP Mail SMTP users get <span class=\"price-off\">$50 off regular price</span>, automatically applied at checkout."
|
943 |
msgstr ""
|
944 |
|
945 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:37
|
946 |
#: src/Admin/Pages/TestTab.php:37
|
947 |
msgid "Email Test"
|
948 |
msgstr ""
|
949 |
|
950 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:59
|
951 |
#: src/Admin/Pages/TestTab.php:59
|
952 |
msgid "Send a Test Email"
|
953 |
msgstr ""
|
954 |
|
955 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:66
|
956 |
#: src/Admin/Pages/TestTab.php:66
|
957 |
msgid "Send To"
|
958 |
msgstr ""
|
959 |
|
960 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:72
|
961 |
#: src/Admin/Pages/TestTab.php:72
|
962 |
msgid "Enter email address where test email will be sent."
|
963 |
msgstr ""
|
964 |
|
965 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:80
|
966 |
#: src/Admin/Pages/TestTab.php:80
|
967 |
msgid "HTML"
|
968 |
msgstr ""
|
969 |
|
970 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:86
|
971 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:276
|
972 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:298
|
973 |
#: src/Admin/Pages/TestTab.php:86
|
974 |
#: src/Providers/OptionsAbstract.php:276
|
975 |
#: src/Providers/OptionsAbstract.php:298
|
976 |
msgid "On"
|
977 |
msgstr ""
|
978 |
|
979 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:87
|
980 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:277
|
981 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:299
|
982 |
#: src/Admin/Pages/TestTab.php:87
|
983 |
#: src/Providers/OptionsAbstract.php:277
|
984 |
#: src/Providers/OptionsAbstract.php:299
|
985 |
msgid "Off"
|
986 |
msgstr ""
|
987 |
|
988 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:90
|
989 |
#: src/Admin/Pages/TestTab.php:90
|
990 |
msgid "Send this email in HTML or in plain text format."
|
991 |
msgstr ""
|
992 |
|
993 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:110
|
994 |
#: src/Admin/Pages/TestTab.php:110
|
995 |
msgid "You cannot send an email. Mailer is not properly configured. Please check your settings."
|
996 |
msgstr ""
|
997 |
|
998 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:114
|
999 |
#: src/Admin/Pages/TestTab.php:114
|
1000 |
msgid "Send Email"
|
1001 |
msgstr ""
|
1002 |
|
1003 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:142
|
1004 |
#: src/Admin/Pages/TestTab.php:142
|
1005 |
msgid "Test failed. Please use a valid email address and try to resend the test email."
|
1006 |
msgstr ""
|
1007 |
|
1008 |
#. translators: %s - email address a test email will be sent to.
|
1009 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:154
|
1010 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:160
|
1011 |
#: src/Admin/Pages/TestTab.php:154
|
1012 |
#: src/Admin/Pages/TestTab.php:160
|
1013 |
msgid "Test email to %s"
|
1014 |
msgstr ""
|
1015 |
|
1016 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:186
|
1017 |
#: src/Admin/Pages/TestTab.php:186
|
1018 |
msgid "Test plain text email was sent successfully!"
|
1019 |
msgstr ""
|
1020 |
|
1021 |
#. translators: %s - "HTML" in bold.
|
1022 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:190
|
1023 |
#: src/Admin/Pages/TestTab.php:190
|
1024 |
msgid "Test %s email was sent successfully! Please check your inbox to make sure it is delivered."
|
1025 |
msgstr ""
|
1026 |
|
1027 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:510
|
1028 |
#: src/Admin/Pages/TestTab.php:510
|
1029 |
msgid "SSL certificate issue."
|
1030 |
msgstr ""
|
1031 |
|
1032 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:511
|
1033 |
#: src/Admin/Pages/TestTab.php:511
|
1034 |
msgid "This means your web server cannot reliably make secure connections (make requests to HTTPS sites)."
|
1035 |
msgstr ""
|
1036 |
|
1037 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:512
|
1038 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:560
|
1039 |
#: src/Admin/Pages/TestTab.php:512
|
1040 |
#: src/Admin/Pages/TestTab.php:560
|
1041 |
msgid "Typically this error is returned when web server is not configured properly."
|
1042 |
msgstr ""
|
1043 |
|
1044 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:515
|
1045 |
#: src/Admin/Pages/TestTab.php:515
|
1046 |
msgid "Contact your web hosting provider and inform them your site has an issue with SSL certificates."
|
1047 |
msgstr ""
|
1048 |
|
1049 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:516
|
1050 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:564
|
1051 |
#: src/Admin/Pages/TestTab.php:516
|
1052 |
#: src/Admin/Pages/TestTab.php:564
|
1053 |
msgid "The exact error you can provide them is in the Error log, available at the bottom of this page."
|
1054 |
msgstr ""
|
1055 |
|
1056 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:517
|
1057 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:565
|
1058 |
#: src/Admin/Pages/TestTab.php:517
|
1059 |
#: src/Admin/Pages/TestTab.php:565
|
1060 |
msgid "Ask them to resolve the issue then try again."
|
1061 |
msgstr ""
|
1062 |
|
1063 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:528
|
1064 |
#: src/Admin/Pages/TestTab.php:528
|
1065 |
msgid "Could not connect to host."
|
1066 |
msgstr ""
|
1067 |
|
1068 |
#. translators: %s - SMTP host address.
|
1069 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:531
|
1070 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:556
|
1071 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:658
|
1072 |
#: src/Admin/Pages/TestTab.php:531
|
1073 |
#: src/Admin/Pages/TestTab.php:556
|
1074 |
#: src/Admin/Pages/TestTab.php:658
|
1075 |
msgid "This means your web server was unable to connect to %s."
|
1076 |
msgstr ""
|
1077 |
|
1078 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:534
|
1079 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:559
|
1080 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:661
|
1081 |
#: src/Admin/Pages/TestTab.php:534
|
1082 |
#: src/Admin/Pages/TestTab.php:559
|
1083 |
#: src/Admin/Pages/TestTab.php:661
|
1084 |
msgid "This means your web server was unable to connect to the host server."
|
1085 |
msgstr ""
|
1086 |
|
1087 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:535
|
1088 |
#: src/Admin/Pages/TestTab.php:535
|
1089 |
msgid "Typically this error is returned your web server is blocking the connections or the SMTP host denying the request."
|
1090 |
msgstr ""
|
1091 |
|
1092 |
#. translators: %s - SMTP host address.
|
1093 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:539
|
1094 |
#: src/Admin/Pages/TestTab.php:539
|
1095 |
msgid "Contact your web hosting provider and ask them to verify your server can connect to %s. Additionally, ask them if a firewall or security policy may be preventing the connection."
|
1096 |
msgstr ""
|
1097 |
|
1098 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:542
|
1099 |
#: src/Admin/Pages/TestTab.php:542
|
1100 |
msgid "If using \"Other SMTP\" Mailer, triple check your SMTP settings including host address, email, and password."
|
1101 |
msgstr ""
|
1102 |
|
1103 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:543
|
1104 |
#: src/Admin/Pages/TestTab.php:543
|
1105 |
msgid "If using \"Other SMTP\" Mailer, contact your SMTP host to confirm they are accepting outside connections with the settings you have configured (address, username, port, security, etc)."
|
1106 |
msgstr ""
|
1107 |
|
1108 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:553
|
1109 |
#: src/Admin/Pages/TestTab.php:553
|
1110 |
msgid "Could not connect to your host."
|
1111 |
msgstr ""
|
1112 |
|
1113 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:563
|
1114 |
#: src/Admin/Pages/TestTab.php:563
|
1115 |
msgid "Contact your web hosting provider and inform them you are having issues making outbound connections."
|
1116 |
msgstr ""
|
1117 |
|
1118 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:575
|
1119 |
#: src/Admin/Pages/TestTab.php:575
|
1120 |
msgid "Could not authenticate your SMTP account."
|
1121 |
msgstr ""
|
1122 |
|
1123 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:576
|
1124 |
#: src/Admin/Pages/TestTab.php:576
|
1125 |
msgid "This means we were able to connect to your SMTP host, but were not able to proceed using the email/password in the settings."
|
1126 |
msgstr ""
|
1127 |
|
1128 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:577
|
1129 |
#: src/Admin/Pages/TestTab.php:577
|
1130 |
msgid "Typically this error is returned when the email or password is not correct or is not what the SMTP host is expecting."
|
1131 |
msgstr ""
|
1132 |
|
1133 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:580
|
1134 |
#: src/Admin/Pages/TestTab.php:580
|
1135 |
msgid "Triple check your SMTP settings including host address, email, and password. If you have recently reset your password you will need to update the settings."
|
1136 |
msgstr ""
|
1137 |
|
1138 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:581
|
1139 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:686
|
1140 |
#: src/Admin/Pages/TestTab.php:581
|
1141 |
#: src/Admin/Pages/TestTab.php:686
|
1142 |
msgid "Contact your SMTP host to confirm you are using the correct username and password."
|
1143 |
msgstr ""
|
1144 |
|
1145 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:582
|
1146 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:687
|
1147 |
#: src/Admin/Pages/TestTab.php:582
|
1148 |
#: src/Admin/Pages/TestTab.php:687
|
1149 |
msgid "Verify with your SMTP host that your account has permissions to send emails using outside connections."
|
1150 |
msgstr ""
|
1151 |
|
1152 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:592
|
1153 |
#: src/Admin/Pages/TestTab.php:592
|
1154 |
msgid "Error due to unsolicited and/or bulk e-mail."
|
1155 |
msgstr ""
|
1156 |
|
1157 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:593
|
1158 |
#: src/Admin/Pages/TestTab.php:593
|
1159 |
msgid "This means the connection to your SMTP host was made successfully, but the host rejected the email."
|
1160 |
msgstr ""
|
1161 |
|
1162 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:594
|
1163 |
#: src/Admin/Pages/TestTab.php:594
|
1164 |
msgid "Typically this error is returned when you are sending too many e-mails or e-mails that have been identified as spam."
|
1165 |
msgstr ""
|
1166 |
|
1167 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:597
|
1168 |
#: src/Admin/Pages/TestTab.php:597
|
1169 |
msgid "Check the emails that are sending are sending individually. Example: email is not sending to 30 recipients. You can install any WordPress e-mail logging plugin to do that."
|
1170 |
msgstr ""
|
1171 |
|
1172 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:598
|
1173 |
#: src/Admin/Pages/TestTab.php:598
|
1174 |
msgid "Contact your SMTP host to ask about sending/rate limits."
|
1175 |
msgstr ""
|
1176 |
|
1177 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:599
|
1178 |
#: src/Admin/Pages/TestTab.php:599
|
1179 |
msgid "Verify with them your SMTP account is in good standing and your account has not been flagged."
|
1180 |
msgstr ""
|
1181 |
|
1182 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:609
|
1183 |
#: src/Admin/Pages/TestTab.php:609
|
1184 |
msgid "Unauthenticated senders are not allowed."
|
1185 |
msgstr ""
|
1186 |
|
1187 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:610
|
1188 |
#: src/Admin/Pages/TestTab.php:610
|
1189 |
msgid "This means the connection to your SMTP host was made successfully, but you should enable Authentication and provide correct Username and Password."
|
1190 |
msgstr ""
|
1191 |
|
1192 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:613
|
1193 |
#: src/Admin/Pages/TestTab.php:613
|
1194 |
msgid "Go to WP Mail SMTP plugin Settings page."
|
1195 |
msgstr ""
|
1196 |
|
1197 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:614
|
1198 |
#: src/Admin/Pages/TestTab.php:614
|
1199 |
msgid "Enable Authentication"
|
1200 |
msgstr ""
|
1201 |
|
1202 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:615
|
1203 |
#: src/Admin/Pages/TestTab.php:615
|
1204 |
msgid "Enter correct SMTP Username (usually this is an email address) and Password in the appropriate fields."
|
1205 |
msgstr ""
|
1206 |
|
1207 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:627
|
1208 |
#: src/Admin/Pages/TestTab.php:627
|
1209 |
msgid "Misconfigured server certificate."
|
1210 |
msgstr ""
|
1211 |
|
1212 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:628
|
1213 |
#: src/Admin/Pages/TestTab.php:628
|
1214 |
msgid "This means OpenSSL on your server isn't able to verify the host certificate."
|
1215 |
msgstr ""
|
1216 |
|
1217 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:629
|
1218 |
#: src/Admin/Pages/TestTab.php:629
|
1219 |
msgid "There are a few reasons why this is happening. It could be that the host certificate is misconfigured, or this server's OpenSSL is using an outdated CA bundle."
|
1220 |
msgstr ""
|
1221 |
|
1222 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:632
|
1223 |
#: src/Admin/Pages/TestTab.php:632
|
1224 |
msgid "Verify that the host's SSL certificate is valid."
|
1225 |
msgstr ""
|
1226 |
|
1227 |
#. translators: %s - URL to the PHP openssl manual
|
1228 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:635
|
1229 |
#: src/Admin/Pages/TestTab.php:635
|
1230 |
msgid "Contact your hosting support, show them the \"full Error Log for debugging\" below and share this <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">link</a> with them."
|
1231 |
msgstr ""
|
1232 |
|
1233 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:655
|
1234 |
#: src/Admin/Pages/TestTab.php:655
|
1235 |
msgid "Could not connect to the SMTP host."
|
1236 |
msgstr ""
|
1237 |
|
1238 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:662
|
1239 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1048
|
1240 |
#: src/Admin/Pages/TestTab.php:662
|
1241 |
#: src/Admin/Pages/TestTab.php:1048
|
1242 |
msgid "Typically this error is returned for one of the following reasons:"
|
1243 |
msgstr ""
|
1244 |
|
1245 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:663
|
1246 |
#: src/Admin/Pages/TestTab.php:663
|
1247 |
msgid "SMTP settings are incorrect (wrong port, security setting, incorrect host)."
|
1248 |
msgstr ""
|
1249 |
|
1250 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:664
|
1251 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1050
|
1252 |
#: src/Admin/Pages/TestTab.php:664
|
1253 |
#: src/Admin/Pages/TestTab.php:1050
|
1254 |
msgid "Your web server is blocking the connection."
|
1255 |
msgstr ""
|
1256 |
|
1257 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:665
|
1258 |
#: src/Admin/Pages/TestTab.php:665
|
1259 |
msgid "Your SMTP host is rejecting the connection."
|
1260 |
msgstr ""
|
1261 |
|
1262 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:668
|
1263 |
#: src/Admin/Pages/TestTab.php:668
|
1264 |
msgid "Triple check your SMTP settings including host address, email, and password, port, and security."
|
1265 |
msgstr ""
|
1266 |
|
1267 |
#. translators: %1$s - SMTP host address, %2$s - SMTP port, %3$s - SMTP encryption.
|
1268 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:671
|
1269 |
#: src/Admin/Pages/TestTab.php:671
|
1270 |
msgid "Contact your web hosting provider and ask them to verify your server can connect to %1$s on port %2$s using %3$s encryption. Additionally, ask them if a firewall or security policy may be preventing the connection - many shared hosts block certain ports.<br><strong>Note: this is the most common cause of this issue.</strong>"
|
1271 |
msgstr ""
|
1272 |
|
1273 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:684
|
1274 |
#: src/Admin/Pages/TestTab.php:684
|
1275 |
msgid "no"
|
1276 |
msgstr ""
|
1277 |
|
1278 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:697
|
1279 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:712
|
1280 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:728
|
1281 |
#: src/Admin/Pages/TestTab.php:697
|
1282 |
#: src/Admin/Pages/TestTab.php:712
|
1283 |
#: src/Admin/Pages/TestTab.php:728
|
1284 |
msgid "Mailgun failed."
|
1285 |
msgstr ""
|
1286 |
|
1287 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:698
|
1288 |
#: src/Admin/Pages/TestTab.php:698
|
1289 |
msgid "It seems that you forgot to activate your Mailgun account."
|
1290 |
msgstr ""
|
1291 |
|
1292 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:701
|
1293 |
#: src/Admin/Pages/TestTab.php:701
|
1294 |
msgid "Check your inbox you used to create a Mailgun account. Click the activation link in an email from Mailgun."
|
1295 |
msgstr ""
|
1296 |
|
1297 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:702
|
1298 |
#: src/Admin/Pages/TestTab.php:702
|
1299 |
msgid "If you do not see activation email, go to your Mailgun control panel and resend the activation email."
|
1300 |
msgstr ""
|
1301 |
|
1302 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:713
|
1303 |
#: src/Admin/Pages/TestTab.php:713
|
1304 |
msgid "Typically this error is because there is an issue with your Mailgun settings, in many cases the API key."
|
1305 |
msgstr ""
|
1306 |
|
1307 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:716
|
1308 |
#: src/Admin/Pages/TestTab.php:716
|
1309 |
msgid "Verify your API key is correct."
|
1310 |
msgstr ""
|
1311 |
|
1312 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:717
|
1313 |
#: src/Admin/Pages/TestTab.php:717
|
1314 |
msgid "Go to your Mailgun account and view your API key."
|
1315 |
msgstr ""
|
1316 |
|
1317 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:718
|
1318 |
#: src/Admin/Pages/TestTab.php:718
|
1319 |
msgid "Note that the API key includes the \"key\" prefix, so make sure that it is in the WP Mail SMTP Mailgun API setting."
|
1320 |
msgstr ""
|
1321 |
|
1322 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:729
|
1323 |
#: src/Admin/Pages/TestTab.php:729
|
1324 |
msgid "Your Mailgun account does not have access to send emails."
|
1325 |
msgstr ""
|
1326 |
|
1327 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:730
|
1328 |
#: src/Admin/Pages/TestTab.php:730
|
1329 |
msgid "Typically this error is because you have not set up and/or complete domain name verification for your Mailgun account."
|
1330 |
msgstr ""
|
1331 |
|
1332 |
#. translators: %s - Mailgun documentation URL.
|
1333 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:735
|
1334 |
#: src/Admin/Pages/TestTab.php:735
|
1335 |
msgid "Go to our how-to guide for setting up <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">Mailgun with WP Mail SMTP</a>."
|
1336 |
msgstr ""
|
1337 |
|
1338 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:746
|
1339 |
#: src/Admin/Pages/TestTab.php:746
|
1340 |
msgid "Complete the steps in section \"2. Verify Your Domain\"."
|
1341 |
msgstr ""
|
1342 |
|
1343 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:756
|
1344 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:805
|
1345 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:825
|
1346 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:851
|
1347 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:867
|
1348 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:919
|
1349 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:945
|
1350 |
#: src/Admin/Pages/TestTab.php:756
|
1351 |
#: src/Admin/Pages/TestTab.php:805
|
1352 |
#: src/Admin/Pages/TestTab.php:825
|
@@ -1357,1083 +1091,879 @@ msgstr ""
|
|
1357 |
msgid "Google API Error."
|
1358 |
msgstr ""
|
1359 |
|
1360 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:757
|
1361 |
#: src/Admin/Pages/TestTab.php:757
|
1362 |
msgid "You have not properly configured Gmail mailer."
|
1363 |
msgstr ""
|
1364 |
|
1365 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:758
|
1366 |
#: src/Admin/Pages/TestTab.php:758
|
1367 |
msgid "Make sure that you have clicked the \"Allow plugin to send emails using your Google account\" button under Gmail settings."
|
1368 |
msgstr ""
|
1369 |
|
1370 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:761
|
1371 |
#: src/Admin/Pages/TestTab.php:761
|
1372 |
msgid "Go to plugin Settings page and click the \"Allow plugin to send emails using your Google account\" button."
|
1373 |
msgstr ""
|
1374 |
|
1375 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:762
|
1376 |
#: src/Admin/Pages/TestTab.php:762
|
1377 |
msgid "After the click you should be redirected to a Gmail authorization screen, where you will be asked a permission to send emails on your behalf."
|
1378 |
msgstr ""
|
1379 |
|
1380 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:763
|
1381 |
#: src/Admin/Pages/TestTab.php:763
|
1382 |
msgid "Please click \"Agree\", if you see that button. If not - you will need to enable less secure apps first:"
|
1383 |
msgstr ""
|
1384 |
|
1385 |
#. translators: %s - Google support article URL.
|
1386 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:768
|
1387 |
#: src/Admin/Pages/TestTab.php:768
|
1388 |
msgid "if you are using regular Gmail account, please <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">read this article</a> to proceed."
|
1389 |
msgstr ""
|
1390 |
|
1391 |
#. translators: %s - Google support article URL.
|
1392 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:783
|
1393 |
#: src/Admin/Pages/TestTab.php:783
|
1394 |
msgid "if you are using G Suite, please <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">read this article</a> to proceed."
|
1395 |
msgstr ""
|
1396 |
|
1397 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:806
|
1398 |
#: src/Admin/Pages/TestTab.php:806
|
1399 |
msgid "Typically this error is because address the email was sent to is invalid or was empty."
|
1400 |
msgstr ""
|
1401 |
|
1402 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:809
|
1403 |
#: src/Admin/Pages/TestTab.php:809
|
1404 |
msgid "Check the \"Send To\" email address used and confirm it is a valid email and was not empty."
|
1405 |
msgstr ""
|
1406 |
|
1407 |
#. translators: 1 - correct email address example. 2 - incorrect email address example.
|
1408 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:811
|
1409 |
#: src/Admin/Pages/TestTab.php:811
|
1410 |
msgid "It should be something like this: %1$s. These are incorrect values: %2$s."
|
1411 |
msgstr ""
|
1412 |
|
1413 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:815
|
1414 |
#: src/Admin/Pages/TestTab.php:815
|
1415 |
msgid "Make sure that the generated email has a TO header, useful when you are responsible for email creation."
|
1416 |
msgstr ""
|
1417 |
|
1418 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:826
|
1419 |
#: src/Admin/Pages/TestTab.php:826
|
1420 |
msgid "Unfortunately, this error can be due to many different reasons."
|
1421 |
msgstr ""
|
1422 |
|
1423 |
#. translators: %s - Blog article URL.
|
1424 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:831
|
1425 |
#: src/Admin/Pages/TestTab.php:831
|
1426 |
msgid "Please <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">read this article</a> to learn more about what can cause this error and how it can be resolved."
|
1427 |
msgstr ""
|
1428 |
|
1429 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:852
|
1430 |
#: src/Admin/Pages/TestTab.php:852
|
1431 |
msgid "Authentication code that Google returned to you has already been used on your previous auth attempt."
|
1432 |
msgstr ""
|
1433 |
|
1434 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:855
|
1435 |
#: src/Admin/Pages/TestTab.php:855
|
1436 |
msgid "Make sure that you are not trying to manually clean up the plugin options to retry the \"Allow...\" step."
|
1437 |
msgstr ""
|
1438 |
|
1439 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:856
|
1440 |
#: src/Admin/Pages/TestTab.php:856
|
1441 |
msgid "Reinstall the plugin with clean plugin data turned on on Misc page. This will remove all the plugin options and you will be safe to retry."
|
1442 |
msgstr ""
|
1443 |
|
1444 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:857
|
1445 |
#: src/Admin/Pages/TestTab.php:857
|
1446 |
msgid "Make sure there is no aggressive caching on site admin area pages or try to clean cache between attempts."
|
1447 |
msgstr ""
|
1448 |
|
1449 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:868
|
1450 |
#: src/Admin/Pages/TestTab.php:868
|
1451 |
msgid "There are various reasons for that, please review the steps below."
|
1452 |
msgstr ""
|
1453 |
|
1454 |
#. translators: %s - Google G Suite Admin area URL.
|
1455 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:873
|
1456 |
#: src/Admin/Pages/TestTab.php:873
|
1457 |
msgid "Make sure that your G Suite trial period has not expired. You can check the status <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>."
|
1458 |
msgstr ""
|
1459 |
|
1460 |
#. translators: %s - Google G Suite Admin area URL.
|
1461 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:886
|
1462 |
#: src/Admin/Pages/TestTab.php:886
|
1463 |
msgid "Make sure that Gmail app in your G Suite is actually enabled. You can check that in Apps list in <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">G Suite Admin</a> area."
|
1464 |
msgstr ""
|
1465 |
|
1466 |
#. translators: %s - Google Developers Console URL.
|
1467 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:899
|
1468 |
#: src/Admin/Pages/TestTab.php:899
|
1469 |
msgid "Make sure that you have Gmail API enabled, and you can do that <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>."
|
1470 |
msgstr ""
|
1471 |
|
1472 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:922
|
1473 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:949
|
1474 |
#: src/Admin/Pages/TestTab.php:922
|
1475 |
#: src/Admin/Pages/TestTab.php:949
|
1476 |
msgid "Make sure that the used Client ID/Secret correspond to a proper project that has Gmail API enabled."
|
1477 |
msgstr ""
|
1478 |
|
1479 |
#. translators: %s - Gmail documentation URL.
|
1480 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:925
|
1481 |
#: src/Admin/Pages/TestTab.php:925
|
1482 |
msgid "Please follow our <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">Gmail tutorial</a> to be sure that all the correct project and data is applied."
|
1483 |
msgstr ""
|
1484 |
|
1485 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:946
|
1486 |
#: src/Admin/Pages/TestTab.php:946
|
1487 |
msgid "You may have added a new API to a project"
|
1488 |
msgstr ""
|
1489 |
|
1490 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:950
|
1491 |
#: src/Admin/Pages/TestTab.php:950
|
1492 |
msgid "Try to use a separate project for your emails, so the project has only 1 Gmail API in it enabled. You will need to remove the old project and create a new one from scratch."
|
1493 |
msgstr ""
|
1494 |
|
1495 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:960
|
1496 |
#: src/Admin/Pages/TestTab.php:960
|
1497 |
msgid "SMTP.com API Error."
|
1498 |
msgstr ""
|
1499 |
|
1500 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:961
|
1501 |
#: src/Admin/Pages/TestTab.php:961
|
1502 |
msgid "Your Sender Name option is incorrect."
|
1503 |
msgstr ""
|
1504 |
|
1505 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:964
|
1506 |
#: src/Admin/Pages/TestTab.php:964
|
1507 |
msgid "Please make sure you entered an accurate Sender Name in WP Mail SMTP plugin settings."
|
1508 |
msgstr ""
|
1509 |
|
1510 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:974
|
1511 |
#: src/Admin/Pages/TestTab.php:974
|
1512 |
msgid "GuzzleHttp requirements."
|
1513 |
msgstr ""
|
1514 |
|
1515 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:975
|
1516 |
#: src/Admin/Pages/TestTab.php:975
|
1517 |
msgid "GuzzleHttp requires cURL, the allow_url_fopen ini setting, or a custom HTTP handler."
|
1518 |
msgstr ""
|
1519 |
|
1520 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:978
|
1521 |
#: src/Admin/Pages/TestTab.php:978
|
1522 |
msgid "Edit your php.ini file on your hosting server."
|
1523 |
msgstr ""
|
1524 |
|
1525 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:979
|
1526 |
#: src/Admin/Pages/TestTab.php:979
|
1527 |
msgid "(Recommended) Enable PHP extension: cURL, by adding \"extension=curl\" to the php.ini file (without the quotation marks) OR"
|
1528 |
msgstr ""
|
1529 |
|
1530 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:980
|
1531 |
#: src/Admin/Pages/TestTab.php:980
|
1532 |
msgid "(If cURL can't be enabled on your hosting server) Enable PHP setting: allow_url_fopen, by adding \"allow_url_fopen = On\" to the php.ini file (without the quotation marks)"
|
1533 |
msgstr ""
|
1534 |
|
1535 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:981
|
1536 |
#: src/Admin/Pages/TestTab.php:981
|
1537 |
msgid "If you don't know how to do the above we strongly suggest contacting your hosting support and provide them the \"full Error Log for debugging\" below and these steps. They should be able to fix this issue for you."
|
1538 |
msgstr ""
|
1539 |
|
1540 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1003
|
1541 |
#: src/Admin/Pages/TestTab.php:1003
|
1542 |
msgid "PCRE library issue"
|
1543 |
msgstr ""
|
1544 |
|
1545 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1004
|
1546 |
#: src/Admin/Pages/TestTab.php:1004
|
1547 |
msgid "It looks like your server is running PHP version 7.4.x with an outdated PCRE library (libpcre2) that has a known issue with email address validation."
|
1548 |
msgstr ""
|
1549 |
|
1550 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1005
|
1551 |
#: src/Admin/Pages/TestTab.php:1005
|
1552 |
msgid "There is a known issue with PHP version 7.4.x, when using libpcre2 library version lower than 10.33."
|
1553 |
msgstr ""
|
1554 |
|
1555 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1008
|
1556 |
#: src/Admin/Pages/TestTab.php:1008
|
1557 |
msgid "Contact your web hosting provider and inform them you are having issues with libpcre2 library on PHP 7.4."
|
1558 |
msgstr ""
|
1559 |
|
1560 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1009
|
1561 |
#: src/Admin/Pages/TestTab.php:1009
|
1562 |
msgid "They should be able to resolve this issue for you."
|
1563 |
msgstr ""
|
1564 |
|
1565 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1010
|
1566 |
#: src/Admin/Pages/TestTab.php:1010
|
1567 |
msgid "For a quick fix, until your web hosting resolves this, you can downgrade to PHP version 7.3 on your server."
|
1568 |
msgstr ""
|
1569 |
|
1570 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1046
|
1571 |
#: src/Admin/Pages/TestTab.php:1046
|
1572 |
msgid "An issue was detected."
|
1573 |
msgstr ""
|
1574 |
|
1575 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1047
|
1576 |
#: src/Admin/Pages/TestTab.php:1047
|
1577 |
msgid "This means your test email was unable to be sent."
|
1578 |
msgstr ""
|
1579 |
|
1580 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1049
|
1581 |
#: src/Admin/Pages/TestTab.php:1049
|
1582 |
msgid "Plugin settings are incorrect (wrong SMTP settings, invalid Mailer configuration, etc)."
|
1583 |
msgstr ""
|
1584 |
|
1585 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1051
|
1586 |
#: src/Admin/Pages/TestTab.php:1051
|
1587 |
msgid "Your host is rejecting the connection."
|
1588 |
msgstr ""
|
1589 |
|
1590 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1054
|
1591 |
#: src/Admin/Pages/TestTab.php:1054
|
1592 |
msgid "Triple check the plugin settings, consider reconfiguring to make sure everything is correct (eg bad copy and paste)."
|
1593 |
msgstr ""
|
1594 |
|
1595 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1056
|
1596 |
#: src/Admin/Pages/TestTab.php:1056
|
1597 |
msgid "Contact your web hosting provider and ask them to verify your server can make outside connections. Additionally, ask them if a firewall or security policy may be preventing the connection - many shared hosts block certain ports.<br><strong>Note: this is the most common cause of this issue.</strong>"
|
1598 |
msgstr ""
|
1599 |
|
1600 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1062
|
1601 |
#: src/Admin/Pages/TestTab.php:1062
|
1602 |
msgid "Try using a different mailer."
|
1603 |
msgstr ""
|
1604 |
|
1605 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1081
|
1606 |
#: src/Admin/Pages/TestTab.php:1081
|
1607 |
msgid "There was a problem while sending the test email."
|
1608 |
msgstr ""
|
1609 |
|
1610 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1091
|
1611 |
#: src/Admin/Pages/TestTab.php:1091
|
1612 |
msgid "Recommended next steps:"
|
1613 |
msgstr ""
|
1614 |
|
1615 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1101
|
1616 |
#: src/Admin/Pages/TestTab.php:1101
|
1617 |
msgid "Need support?"
|
1618 |
msgstr ""
|
1619 |
|
1620 |
#. translators: %s - WPMailSMTP.com account area link.
|
1621 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1109
|
1622 |
#: src/Admin/Pages/TestTab.php:1109
|
1623 |
msgid "As a WP Mail SMTP Pro user you have access to WP Mail SMTP priority support. Please log in to your WPMailSMTP.com account and <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">submit a support ticket</a>."
|
1624 |
msgstr ""
|
1625 |
|
1626 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1126
|
1627 |
#: src/Admin/Pages/TestTab.php:1126
|
1628 |
msgid "WP Mail SMTP is a free plugin, and the team behind WPForms maintains it to give back to the WordPress community."
|
1629 |
msgstr ""
|
1630 |
|
1631 |
#. translators: %s - WPMailSMTP.com URL.
|
1632 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1133
|
1633 |
#: src/Admin/Pages/TestTab.php:1133
|
1634 |
msgid "To access our world class support, please <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">upgrade to WP Mail SMTP Pro</a>. Along with getting expert support, you will also get Notification controls, Email Logging, and integrations for Amazon SES, Office 365, and Outlook.com."
|
1635 |
msgstr ""
|
1636 |
|
1637 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1148
|
1638 |
#: src/Admin/Pages/TestTab.php:1148
|
1639 |
msgid "Additionally, you can take advantage of our White Glove Setup. Sit back and relax while we handle everything for you! If you simply don't have time or maybe you feel a bit in over your head - we got you covered."
|
1640 |
msgstr ""
|
1641 |
|
1642 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1154
|
1643 |
#: src/Admin/Pages/TestTab.php:1154
|
1644 |
msgid "As a valued WP Mail SMTP user, you will get <span class=\"price-off\">$50 off regular pricing</span>, automatically applied at checkout!"
|
1645 |
msgstr ""
|
1646 |
|
1647 |
#. translators: %1$s - WP Mail SMTP support policy URL, %2$s - WP Mail SMTP support forum URL, %3$s - WPMailSMTP.com URL.
|
1648 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1168
|
1649 |
#: src/Admin/Pages/TestTab.php:1168
|
1650 |
msgid "Alternatively, we also offer <a href=\"%1$s\" target=\"_blank\" rel=\"noopener noreferrer\">limited support</a> on the WordPress.org support forums. You can <a href=\"%2$s\" target=\"_blank\" rel=\"noopener noreferrer\">create a support thread</a> there, but please understand that free support is not guaranteed and is limited to simple issues. If you have an urgent or complex issue, then please consider <a href=\"%3$s\" target=\"_blank\" rel=\"noopener noreferrer\">upgrading to WP Mail SMTP Pro</a> to access our priority support ticket system."
|
1651 |
msgstr ""
|
1652 |
|
1653 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1189
|
1654 |
#: src/Admin/Pages/TestTab.php:1189
|
1655 |
msgid "Click here to view the full Error Log for debugging"
|
1656 |
msgstr ""
|
1657 |
|
1658 |
-
#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1198
|
1659 |
#: src/Admin/Pages/TestTab.php:1198
|
1660 |
msgid "Please copy only the content of the error debug message above, identified with an orange left border, into the support forum topic if you experience any issues."
|
1661 |
msgstr ""
|
1662 |
|
1663 |
-
#: build/wp-mail-smtp/src/Admin/Review.php:119
|
1664 |
#: src/Admin/Review.php:119
|
1665 |
msgid "Are you enjoying WP Mail SMTP?"
|
1666 |
msgstr ""
|
1667 |
|
1668 |
-
#: build/wp-mail-smtp/src/Admin/Review.php:121
|
1669 |
#: src/Admin/Review.php:121
|
1670 |
msgid "Yes"
|
1671 |
msgstr ""
|
1672 |
|
1673 |
-
#: build/wp-mail-smtp/src/Admin/Review.php:122
|
1674 |
#: src/Admin/Review.php:122
|
1675 |
msgid "Not Really"
|
1676 |
msgstr ""
|
1677 |
|
1678 |
-
#: build/wp-mail-smtp/src/Admin/Review.php:126
|
1679 |
#: src/Admin/Review.php:126
|
1680 |
msgid "We're sorry to hear you aren't enjoying WP Mail SMTP. We would love a chance to improve. Could you take a minute and let us know what we can do better?"
|
1681 |
msgstr ""
|
1682 |
|
1683 |
-
#: build/wp-mail-smtp/src/Admin/Review.php:129
|
1684 |
#: src/Admin/Review.php:129
|
1685 |
msgid "Give Feedback"
|
1686 |
msgstr ""
|
1687 |
|
1688 |
-
#: build/wp-mail-smtp/src/Admin/Review.php:132
|
1689 |
#: src/Admin/Review.php:132
|
1690 |
msgid "No thanks"
|
1691 |
msgstr ""
|
1692 |
|
1693 |
-
#: build/wp-mail-smtp/src/Admin/Review.php:137
|
1694 |
#: src/Admin/Review.php:137
|
1695 |
msgid "That’s awesome! Could you please do me a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?"
|
1696 |
msgstr ""
|
1697 |
|
1698 |
-
#: build/wp-mail-smtp/src/Admin/Review.php:138
|
1699 |
#: src/Admin/Review.php:138
|
1700 |
msgid "~ Jared Atchison<br>Lead Developer, WP Mail SMTP"
|
1701 |
msgstr ""
|
1702 |
|
1703 |
-
#: build/wp-mail-smtp/src/Admin/Review.php:141
|
1704 |
#: src/Admin/Review.php:141
|
1705 |
msgid "Ok, you deserve it"
|
1706 |
msgstr ""
|
1707 |
|
1708 |
-
#: build/wp-mail-smtp/src/Admin/Review.php:143
|
1709 |
#: src/Admin/Review.php:143
|
1710 |
msgid "Nope, maybe later"
|
1711 |
msgstr ""
|
1712 |
|
1713 |
-
#: build/wp-mail-smtp/src/Admin/Review.php:144
|
1714 |
#: src/Admin/Review.php:144
|
1715 |
msgid "I already did"
|
1716 |
msgstr ""
|
1717 |
|
1718 |
#. translators: %1$s - Plugin name causing conflict; %2$s - Plugin name causing conflict.
|
1719 |
-
#: build/wp-mail-smtp/src/Conflicts.php:159
|
1720 |
#: src/Conflicts.php:159
|
1721 |
msgid "Heads up! WP Mail SMTP has detected %1$s is activated. Please deactivate %2$s to prevent conflicts."
|
1722 |
msgstr ""
|
1723 |
|
1724 |
#. translators: %1$s - WP Mail SMTP plugin name; %2$s - WPMailSMTP.com URL to a related doc.
|
1725 |
-
#: build/wp-mail-smtp/src/Core.php:392
|
1726 |
#: src/Core.php:392
|
1727 |
msgid "Your site is running an outdated version of PHP that is no longer supported and may cause issues with %1$s. <a href=\"%2$s\" target=\"_blank\" rel=\"noopener noreferrer\">Read more</a> for additional information."
|
1728 |
msgstr ""
|
1729 |
|
1730 |
-
#: build/wp-mail-smtp/src/Core.php:406
|
1731 |
#: src/Core.php:406
|
1732 |
msgid "<strong>Please Note:</strong> Support for PHP 5.5 will be discontinued in 2020. After this, if no further action is taken, WP Mail SMTP functionality will be disabled."
|
1733 |
msgstr ""
|
1734 |
|
1735 |
#. translators: %s - plugin name and its version.
|
1736 |
-
#: build/wp-mail-smtp/src/Core.php:440
|
1737 |
#: src/Core.php:440
|
1738 |
msgid "<strong>EMAILING DISABLED:</strong> The %s is currently blocking all emails from being sent."
|
1739 |
msgstr ""
|
1740 |
|
1741 |
#. translators: %1$s - constant name; %2$s - constant value.
|
1742 |
-
#: build/wp-mail-smtp/src/Core.php:451
|
1743 |
#: src/Core.php:451
|
1744 |
msgid "To send emails, change the value of the %1$s constant to %2$s."
|
1745 |
msgstr ""
|
1746 |
|
1747 |
#. translators: %s - plugin Misc settings page URL.
|
1748 |
-
#: build/wp-mail-smtp/src/Core.php:462
|
1749 |
#: src/Core.php:462
|
1750 |
msgid "To send emails, go to plugin <a href=\"%s\">Misc settings</a> and disable the \"Do Not Send\" option."
|
1751 |
msgstr ""
|
1752 |
|
1753 |
#. translators: %s - plugin name and its version.
|
1754 |
-
#: build/wp-mail-smtp/src/Core.php:506
|
1755 |
#: src/Core.php:506
|
1756 |
msgid "<strong>EMAIL DELIVERY ERROR:</strong> the plugin %s logged this error during the last time it tried to send an email:"
|
1757 |
msgstr ""
|
1758 |
|
1759 |
-
#: build/wp-mail-smtp/src/Core.php:536
|
1760 |
#: src/Core.php:536
|
1761 |
msgid "Consider running an email test after fixing it."
|
1762 |
msgstr ""
|
1763 |
|
|
|
|
|
|
|
|
|
1764 |
#. translators: %1$s - WP Mail SMTP, %2$s - error message.
|
1765 |
-
#: build/wp-mail-smtp/src/Migration.php:137
|
1766 |
#: src/Migration.php:137
|
1767 |
msgid "There was an error while upgrading the database. Please contact %1$s support with this information: %2$s."
|
1768 |
msgstr ""
|
1769 |
|
1770 |
-
#:
|
|
|
|
|
|
|
1771 |
#: src/Providers/AmazonSES/Options.php:25
|
1772 |
msgid "Amazon SES"
|
1773 |
msgstr ""
|
1774 |
|
1775 |
-
#: build/wp-mail-smtp/src/Providers/AmazonSES/Options.php:39
|
1776 |
#: src/Providers/AmazonSES/Options.php:39
|
1777 |
msgid "We're sorry, the Amazon SES mailer is not available on your plan. Please upgrade to the PRO plan to unlock all these awesome features."
|
1778 |
msgstr ""
|
1779 |
|
1780 |
-
#:
|
1781 |
-
#: src/Providers/Gmail/Auth.php:182
|
1782 |
msgid "There was an error while processing the Google authentication request. Please make sure that you have Client ID and Client Secret both valid and saved."
|
1783 |
msgstr ""
|
1784 |
|
1785 |
-
#:
|
1786 |
-
#: src/Providers/Gmail/Mailer.php:255
|
1787 |
msgid "Please re-grant Google app permissions!"
|
1788 |
msgstr ""
|
1789 |
|
1790 |
-
#:
|
1791 |
-
#: src/Providers/Gmail/Mailer.php:256
|
1792 |
msgid "Go to WP Mail SMTP plugin settings page. Click the “Remove Connection” button."
|
1793 |
msgstr ""
|
1794 |
|
1795 |
-
#:
|
1796 |
-
#: src/Providers/Gmail/Mailer.php:257
|
1797 |
msgid "Then click the “Allow plugin to send emails using your Google account” button and re-enable access."
|
1798 |
msgstr ""
|
1799 |
|
1800 |
-
#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:33
|
1801 |
#: src/Providers/Gmail/Options.php:33
|
1802 |
msgid "Gmail"
|
1803 |
msgstr ""
|
1804 |
|
1805 |
#. translators: %s - URL to our Gmail doc.
|
1806 |
-
#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:36
|
1807 |
#: src/Providers/Gmail/Options.php:36
|
1808 |
msgid "Send emails using your Gmail or G Suite (formerly Google Apps) account, all while keeping your login credentials safe. Other Google SMTP methods require enabling less secure apps in your account and entering your password. However, this integration uses the Google API to improve email delivery issues while keeping your site secure.<br><br>Read our <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">Gmail documentation</a> to learn how to configure Gmail or G Suite."
|
1809 |
msgstr ""
|
1810 |
|
1811 |
-
#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:49
|
1812 |
#: src/Providers/Gmail/Options.php:49
|
1813 |
msgid "The Gmail mailer works well for sites that send low numbers of emails. However, Gmail's API has rate limitations and a number of additional restrictions that can lead to challenges during setup. If you expect to send a high volume of emails, or if you find that your web host is not compatible with the Gmail API restrictions, then we recommend considering a different mailer option."
|
1814 |
msgstr ""
|
1815 |
|
1816 |
-
#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:80
|
1817 |
#: src/Providers/Gmail/Options.php:80
|
1818 |
msgid "Client ID"
|
1819 |
msgstr ""
|
1820 |
|
1821 |
-
#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:95
|
1822 |
#: src/Providers/Gmail/Options.php:95
|
1823 |
msgid "Client Secret"
|
1824 |
msgstr ""
|
1825 |
|
1826 |
-
#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:117
|
1827 |
#: src/Providers/Gmail/Options.php:117
|
1828 |
msgid "Authorized redirect URI"
|
1829 |
msgstr ""
|
1830 |
|
1831 |
-
#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:125
|
1832 |
#: src/Providers/Gmail/Options.php:125
|
1833 |
msgid "Copy URL to clipboard"
|
1834 |
msgstr ""
|
1835 |
|
1836 |
-
#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:130
|
1837 |
#: src/Providers/Gmail/Options.php:130
|
1838 |
msgid "Please copy this URL into the \"Authorized redirect URIs\" field of your Google web application."
|
1839 |
msgstr ""
|
1840 |
|
1841 |
-
#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:139
|
1842 |
#: src/Providers/Gmail/Options.php:139
|
1843 |
msgid "Authorization"
|
1844 |
msgstr ""
|
1845 |
|
1846 |
-
#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:167
|
1847 |
#: src/Providers/Gmail/Options.php:167
|
1848 |
msgid "Allow plugin to send emails using your Google account"
|
1849 |
msgstr ""
|
1850 |
|
1851 |
-
#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:170
|
1852 |
#: src/Providers/Gmail/Options.php:170
|
1853 |
msgid "Click the button above to confirm authorization."
|
1854 |
msgstr ""
|
1855 |
|
1856 |
-
#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:176
|
1857 |
#: src/Providers/Gmail/Options.php:176
|
1858 |
msgid "Remove Connection"
|
1859 |
msgstr ""
|
1860 |
|
1861 |
#. translators: %s - email address, as received from Google API.
|
1862 |
-
#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:185
|
1863 |
#: src/Providers/Gmail/Options.php:185
|
1864 |
msgid "Connected as %s"
|
1865 |
msgstr ""
|
1866 |
|
1867 |
#. translators: %s - URL to Google Gmail alias documentation page.
|
1868 |
-
#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:195
|
1869 |
#: src/Providers/Gmail/Options.php:195
|
1870 |
msgid "If you want to use a different From Email address you can set-up a Google email alias. <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">Follow these instructions</a> and then select the From Email at the top of this page."
|
1871 |
msgstr ""
|
1872 |
|
1873 |
-
#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:209
|
1874 |
#: src/Providers/Gmail/Options.php:209
|
1875 |
msgid "Removing the connection will give you an ability to redo the connection or link to another Google account."
|
1876 |
msgstr ""
|
1877 |
|
1878 |
-
#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:217
|
1879 |
#: src/Providers/Gmail/Options.php:217
|
1880 |
msgid "You need to save settings with Client ID and Client Secret before you can proceed."
|
1881 |
msgstr ""
|
1882 |
|
1883 |
-
#: build/wp-mail-smtp/src/Providers/Mail/Options.php:25
|
1884 |
#: src/Providers/Mail/Options.php:25
|
1885 |
msgid "Default (none)"
|
1886 |
msgstr ""
|
1887 |
|
1888 |
-
#: build/wp-mail-smtp/src/Providers/Mail/Options.php:37
|
1889 |
#: src/Providers/Mail/Options.php:37
|
1890 |
msgid "You currently have the native WordPress option selected. Please select any other Mailer option above to continue the setup."
|
1891 |
msgstr ""
|
1892 |
|
1893 |
-
#:
|
1894 |
-
#: src/Providers/Mailgun/Mailer.php:392
|
1895 |
msgid "Mailgun API request was successful, but it could not queue the email for delivery."
|
1896 |
msgstr ""
|
1897 |
|
1898 |
-
#:
|
1899 |
-
#: src/Providers/Mailgun/Mailer.php:393
|
1900 |
msgid "This could point to an incorrect Domain Name in the plugin settings."
|
1901 |
msgstr ""
|
1902 |
|
1903 |
-
#:
|
1904 |
-
#: src/Providers/Mailgun/Mailer.php:394
|
1905 |
msgid "Please check the WP Mail SMTP plugin settings and make sure the Mailgun Domain Name setting is correct."
|
1906 |
msgstr ""
|
1907 |
|
1908 |
-
#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:25
|
1909 |
#: src/Providers/Mailgun/Options.php:25
|
1910 |
msgid "Mailgun"
|
1911 |
msgstr ""
|
1912 |
|
1913 |
#. translators: %1$s - opening link tag; %2$s - closing link tag; %3$s - opening link tag; %4$s - closing link tag.
|
1914 |
-
#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:29
|
1915 |
#: src/Providers/Mailgun/Options.php:29
|
1916 |
msgid "%1$sMailgun%2$s is one of the leading transactional email services trusted by over 150,000+ businesses. They provide 5,000 free emails per month for 3 months.<br><br>Read our %3$sMailgun documentation%4$s to learn how to configure Mailgun and improve your email deliverability."
|
1917 |
msgstr ""
|
1918 |
|
1919 |
-
#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:57
|
1920 |
#: src/Providers/Mailgun/Options.php:57
|
1921 |
msgid "Private API Key"
|
1922 |
msgstr ""
|
1923 |
|
1924 |
#. translators: %s - API key link.
|
1925 |
-
#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:76
|
1926 |
#: src/Providers/Mailgun/Options.php:76
|
1927 |
msgid "Follow this link to get an API Key from Mailgun: %s."
|
1928 |
msgstr ""
|
1929 |
|
1930 |
-
#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:78
|
1931 |
#: src/Providers/Mailgun/Options.php:78
|
1932 |
msgid "Get a Private API Key"
|
1933 |
msgstr ""
|
1934 |
|
1935 |
-
#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:89
|
1936 |
#: src/Providers/Mailgun/Options.php:89
|
1937 |
msgid "Domain Name"
|
1938 |
msgstr ""
|
1939 |
|
1940 |
#. translators: %s - Domain Name link.
|
1941 |
-
#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:101
|
1942 |
#: src/Providers/Mailgun/Options.php:101
|
1943 |
msgid "Follow this link to get a Domain Name from Mailgun: %s."
|
1944 |
msgstr ""
|
1945 |
|
1946 |
-
#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:103
|
1947 |
#: src/Providers/Mailgun/Options.php:103
|
1948 |
msgid "Get a Domain Name"
|
1949 |
msgstr ""
|
1950 |
|
1951 |
-
#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:114
|
1952 |
#: src/Providers/Mailgun/Options.php:114
|
1953 |
msgid "Region"
|
1954 |
msgstr ""
|
1955 |
|
1956 |
-
#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:124
|
1957 |
#: src/Providers/Mailgun/Options.php:124
|
1958 |
msgid "US"
|
1959 |
msgstr ""
|
1960 |
|
1961 |
-
#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:133
|
1962 |
#: src/Providers/Mailgun/Options.php:133
|
1963 |
msgid "EU"
|
1964 |
msgstr ""
|
1965 |
|
1966 |
-
#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:137
|
1967 |
#: src/Providers/Mailgun/Options.php:137
|
1968 |
msgid "Define which endpoint you want to use for sending messages."
|
1969 |
msgstr ""
|
1970 |
|
1971 |
-
#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:138
|
1972 |
#: src/Providers/Mailgun/Options.php:138
|
1973 |
msgid "If you are operating under EU laws, you may be required to use EU region."
|
1974 |
msgstr ""
|
1975 |
|
1976 |
#. translators: %s - URL to Mailgun.com page.
|
1977 |
-
#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:143
|
1978 |
#: src/Providers/Mailgun/Options.php:143
|
1979 |
msgid "<a href=\"%s\" rel=\"\" target=\"_blank\">More information</a> on Mailgun.com."
|
1980 |
msgstr ""
|
1981 |
|
1982 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:198
|
1983 |
#: src/Providers/OptionsAbstract.php:198
|
1984 |
msgid "SMTP Host"
|
1985 |
msgstr ""
|
1986 |
|
1987 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:212
|
1988 |
#: src/Providers/OptionsAbstract.php:212
|
1989 |
msgid "Encryption"
|
1990 |
msgstr ""
|
1991 |
|
1992 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:222
|
1993 |
#: src/Providers/OptionsAbstract.php:222
|
1994 |
msgid "None"
|
1995 |
msgstr ""
|
1996 |
|
1997 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:231
|
1998 |
#: src/Providers/OptionsAbstract.php:231
|
1999 |
msgid "SSL"
|
2000 |
msgstr ""
|
2001 |
|
2002 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:240
|
2003 |
#: src/Providers/OptionsAbstract.php:240
|
2004 |
msgid "TLS"
|
2005 |
msgstr ""
|
2006 |
|
2007 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:244
|
2008 |
#: src/Providers/OptionsAbstract.php:244
|
2009 |
msgid "For most servers TLS is the recommended option. If your SMTP provider offers both SSL and TLS options, we recommend using TLS."
|
2010 |
msgstr ""
|
2011 |
|
2012 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:252
|
2013 |
#: src/Providers/OptionsAbstract.php:252
|
2014 |
msgid "SMTP Port"
|
2015 |
msgstr ""
|
2016 |
|
2017 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:266
|
2018 |
#: src/Providers/OptionsAbstract.php:266
|
2019 |
msgid "Auto TLS"
|
2020 |
msgstr ""
|
2021 |
|
2022 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:280
|
2023 |
#: src/Providers/OptionsAbstract.php:280
|
2024 |
msgid "By default TLS encryption is automatically used if the server supports it, which is recommended. In some cases, due to server misconfigurations, this can cause issues and may need to be disabled."
|
2025 |
msgstr ""
|
2026 |
|
2027 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:288
|
2028 |
#: src/Providers/OptionsAbstract.php:288
|
2029 |
msgid "Authentication"
|
2030 |
msgstr ""
|
2031 |
|
2032 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:307
|
2033 |
#: src/Providers/OptionsAbstract.php:307
|
2034 |
msgid "SMTP Username"
|
2035 |
msgstr ""
|
2036 |
|
2037 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:321
|
2038 |
#: src/Providers/OptionsAbstract.php:321
|
2039 |
msgid "SMTP Password"
|
2040 |
msgstr ""
|
2041 |
|
2042 |
#. translators: %s - constant name: WPMS_SMTP_PASS.
|
2043 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:333
|
2044 |
#: src/Providers/OptionsAbstract.php:333
|
2045 |
msgid "To change the password you need to change the value of the constant there: %s"
|
2046 |
msgstr ""
|
2047 |
|
2048 |
#. translators: %1$s - wp-config.php file, %2$s - WPMS_ON constant name.
|
2049 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:341
|
2050 |
#: src/Providers/OptionsAbstract.php:341
|
2051 |
msgid "If you want to disable the use of constants, find in %1$s file the constant %2$s and turn if off:"
|
2052 |
msgstr ""
|
2053 |
|
2054 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:351
|
2055 |
#: src/Providers/OptionsAbstract.php:351
|
2056 |
msgid "All the defined constants will stop working and you will be able to change all the values on this page."
|
2057 |
msgstr ""
|
2058 |
|
2059 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:359
|
2060 |
#: src/Providers/OptionsAbstract.php:359
|
2061 |
msgid "The password will be stored in plain text. For improved security, we highly recommend using your site's WordPress configuration file to set your password."
|
2062 |
msgstr ""
|
2063 |
|
2064 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:362
|
2065 |
#: src/Providers/OptionsAbstract.php:362
|
2066 |
msgid "Learn More"
|
2067 |
msgstr ""
|
2068 |
|
2069 |
#. translators: %1$s - Provider name; %2$s - PHP version required by Provider; %3$s - current PHP version.
|
2070 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:422
|
2071 |
#: src/Providers/OptionsAbstract.php:422
|
2072 |
msgid "%1$s requires PHP %2$s to work and does not support your current PHP version %3$s. Please contact your host and request a PHP upgrade to the latest one."
|
2073 |
msgstr ""
|
2074 |
|
2075 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:429
|
2076 |
#: src/Providers/OptionsAbstract.php:429
|
2077 |
msgid "Meanwhile you can switch to some other mailers."
|
2078 |
msgstr ""
|
2079 |
|
2080 |
#. translators: %s - Provider name
|
2081 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:448
|
2082 |
#: src/Providers/OptionsAbstract.php:448
|
2083 |
msgid "%s requires an SSL certificate, and so is not currently compatible with your site. Please contact your host to request a SSL certificate, or check out <a href=\"https://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/\" target=\"_blank\">WPBeginner's tutorial on how to set up SSL</a>."
|
2084 |
msgstr ""
|
2085 |
|
2086 |
-
#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:461
|
2087 |
#: src/Providers/OptionsAbstract.php:461
|
2088 |
msgid "If you'd prefer not to set up SSL, or need an SMTP solution in the meantime, please select a different mailer option."
|
2089 |
msgstr ""
|
2090 |
|
2091 |
-
#: build/wp-mail-smtp/src/Providers/Outlook/Options.php:25
|
2092 |
#: src/Providers/Outlook/Options.php:25
|
2093 |
msgid "Outlook"
|
2094 |
msgstr ""
|
2095 |
|
2096 |
-
#: build/wp-mail-smtp/src/Providers/Outlook/Options.php:39
|
2097 |
#: src/Providers/Outlook/Options.php:39
|
2098 |
msgid "We're sorry, the Microsoft Outlook mailer is not available on your plan. Please upgrade to the PRO plan to unlock all these awesome features."
|
2099 |
msgstr ""
|
2100 |
|
2101 |
-
#: build/wp-mail-smtp/src/Providers/Pepipost/Options.php:25
|
2102 |
#: src/Providers/Pepipost/Options.php:25
|
2103 |
msgid "Pepipost SMTP"
|
2104 |
msgstr ""
|
2105 |
|
2106 |
-
#: build/wp-mail-smtp/src/Providers/PepipostAPI/Mailer.php:339
|
2107 |
#: src/Providers/PepipostAPI/Mailer.php:339
|
2108 |
msgid "General error"
|
2109 |
msgstr ""
|
2110 |
|
2111 |
-
#: build/wp-mail-smtp/src/Providers/PepipostAPI/Mailer.php:340
|
2112 |
#: src/Providers/PepipostAPI/Mailer.php:340
|
2113 |
msgid "Error"
|
2114 |
msgstr ""
|
2115 |
|
2116 |
#. translators: %1$s - URL to pepipost.com site.
|
2117 |
-
#: build/wp-mail-smtp/src/Providers/PepipostAPI/Options.php:32
|
2118 |
#: src/Providers/PepipostAPI/Options.php:32
|
2119 |
msgid "<a href=\"%1$s\" target=\"_blank\" rel=\"noopener noreferrer\">Pepipost</a> is a transactional email service. Every month Pepipost delivers over 8 billion emails from 20,000+ customers. Their mission is to reliably send emails in the most efficient way and at the most disruptive pricing ever. Pepipost provides users 30,000 free emails the first 30 days."
|
2120 |
msgstr ""
|
2121 |
|
2122 |
#. translators: %1$s - URL to wpmailsmtp.com doc.
|
2123 |
-
#: build/wp-mail-smtp/src/Providers/PepipostAPI/Options.php:35
|
2124 |
#: src/Providers/PepipostAPI/Options.php:35
|
2125 |
msgid "Read our <a href=\"%2$s\" target=\"_blank\" rel=\"noopener noreferrer\">Pepipost documentation</a> to learn how to configure Pepipost and improve your email deliverability."
|
2126 |
msgstr ""
|
2127 |
|
2128 |
-
#: build/wp-mail-smtp/src/Providers/PepipostAPI/Options.php:53
|
2129 |
#: src/Providers/PepipostAPI/Options.php:53
|
2130 |
msgid "Get Started with Pepipost"
|
2131 |
msgstr ""
|
2132 |
|
2133 |
-
#: build/wp-mail-smtp/src/Providers/PepipostAPI/Options.php:61
|
2134 |
#: src/Providers/PepipostAPI/Options.php:61
|
2135 |
msgid "Pepipost"
|
2136 |
msgstr ""
|
2137 |
|
2138 |
-
#: build/wp-mail-smtp/src/Providers/PepipostAPI/Options.php:94
|
2139 |
-
#: build/wp-mail-smtp/src/Providers/Sendgrid/Options.php:65
|
2140 |
-
#: build/wp-mail-smtp/src/Providers/Sendinblue/Options.php:84
|
2141 |
-
#: build/wp-mail-smtp/src/Providers/SMTPcom/Options.php:91
|
2142 |
#: src/Providers/PepipostAPI/Options.php:94
|
2143 |
#: src/Providers/Sendgrid/Options.php:65
|
2144 |
-
#: src/Providers/Sendinblue/Options.php:
|
2145 |
#: src/Providers/SMTPcom/Options.php:91
|
2146 |
msgid "API Key"
|
2147 |
msgstr ""
|
2148 |
|
2149 |
#. translators: %s - link to get an API Key.
|
2150 |
-
#: build/wp-mail-smtp/src/Providers/PepipostAPI/Options.php:113
|
2151 |
-
#: build/wp-mail-smtp/src/Providers/Sendinblue/Options.php:103
|
2152 |
#: src/Providers/PepipostAPI/Options.php:113
|
2153 |
-
#: src/Providers/Sendinblue/Options.php:
|
2154 |
msgid "Follow this link to get an API Key: %s."
|
2155 |
msgstr ""
|
2156 |
|
2157 |
-
#: build/wp-mail-smtp/src/Providers/PepipostAPI/Options.php:115
|
2158 |
#: src/Providers/PepipostAPI/Options.php:115
|
2159 |
msgid "Get the API Key"
|
2160 |
msgstr ""
|
2161 |
|
2162 |
-
#: build/wp-mail-smtp/src/Providers/Sendgrid/Options.php:26
|
2163 |
#: src/Providers/Sendgrid/Options.php:26
|
2164 |
msgid "SendGrid"
|
2165 |
msgstr ""
|
2166 |
|
2167 |
#. translators: %1$s - opening link tag; %2$s - closing link tag; %3$s - opening link tag; %4$s - closing link tag.
|
2168 |
-
#: build/wp-mail-smtp/src/Providers/Sendgrid/Options.php:30
|
2169 |
#: src/Providers/Sendgrid/Options.php:30
|
2170 |
msgid "%1$sSendGrid%2$s is one of the leading transactional email services, sending over 35 billion emails every month. They provide users 100 free emails per day.<br><br>Read our %3$sSendGrid documentation%4$s to learn how to set up SendGrid and improve your email deliverability."
|
2171 |
msgstr ""
|
2172 |
|
2173 |
#. translators: %s - API key link.
|
2174 |
-
#: build/wp-mail-smtp/src/Providers/Sendgrid/Options.php:84
|
2175 |
#: src/Providers/Sendgrid/Options.php:84
|
2176 |
msgid "Follow this link to get an API Key from SendGrid: %s."
|
2177 |
msgstr ""
|
2178 |
|
2179 |
-
#: build/wp-mail-smtp/src/Providers/Sendgrid/Options.php:86
|
2180 |
#: src/Providers/Sendgrid/Options.php:86
|
2181 |
msgid "Create API Key"
|
2182 |
msgstr ""
|
2183 |
|
2184 |
#. translators: %s - SendGrid access level.
|
2185 |
-
#: build/wp-mail-smtp/src/Providers/Sendgrid/Options.php:94
|
2186 |
#: src/Providers/Sendgrid/Options.php:94
|
2187 |
msgid "To send emails you will need only a %s access level for this API key."
|
2188 |
msgstr ""
|
2189 |
|
2190 |
-
#: build/wp-mail-smtp/src/Providers/Sendinblue/Options.php:34
|
2191 |
-
#: src/Providers/Sendinblue/Options.php:34
|
2192 |
-
msgid "Sendinblue"
|
2193 |
-
msgstr ""
|
2194 |
-
|
2195 |
#. translators: %1$s - URL to sendinblue.com site.
|
2196 |
-
#:
|
2197 |
-
|
2198 |
-
msgid "<a href=\"%1$s\" target=\"_blank\" rel=\"noopener noreferrer\">Sendinblue</a> serves 80,000+ growing companies around the world and sends over 30 million emails each day. They provide users 300 free emails per day."
|
2199 |
msgstr ""
|
2200 |
|
2201 |
#. translators: %2$s - URL to wpmailsmtp.com doc.
|
2202 |
-
#:
|
2203 |
-
#: src/Providers/Sendinblue/Options.php:41
|
2204 |
msgid "Read our <a href=\"%2$s\" target=\"_blank\" rel=\"noopener noreferrer\">Sendinblue documentation</a> to learn how to configure Sendinblue and improve your email deliverability."
|
2205 |
msgstr ""
|
2206 |
|
2207 |
-
#:
|
2208 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2209 |
msgid "Get v3 API Key"
|
2210 |
msgstr ""
|
2211 |
|
2212 |
-
#: build/wp-mail-smtp/src/Providers/SMTP/Options.php:25
|
2213 |
#: src/Providers/SMTP/Options.php:25
|
2214 |
msgid "Other SMTP"
|
2215 |
msgstr ""
|
2216 |
|
2217 |
#. translators: %s - URL to SMTP documentation.
|
2218 |
-
#: build/wp-mail-smtp/src/Providers/SMTP/Options.php:29
|
2219 |
#: src/Providers/SMTP/Options.php:29
|
2220 |
msgid "Use the SMTP details provided by your hosting provider or email service.<br><br>To see recommended settings for the popular services as well as troubleshooting tips, check out our <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">SMTP documentation</a>."
|
2221 |
msgstr ""
|
2222 |
|
2223 |
-
#: build/wp-mail-smtp/src/Providers/SMTPcom/Mailer.php:434
|
2224 |
#: src/Providers/SMTPcom/Mailer.php:434
|
2225 |
msgid "Api Key:"
|
2226 |
msgstr ""
|
2227 |
|
2228 |
-
#: build/wp-mail-smtp/src/Providers/SMTPcom/Mailer.php:436
|
2229 |
#: src/Providers/SMTPcom/Mailer.php:436
|
2230 |
msgid "Channel:"
|
2231 |
msgstr ""
|
2232 |
|
2233 |
#. translators: %s - URL to smtp.com site.
|
2234 |
-
#: build/wp-mail-smtp/src/Providers/SMTPcom/Options.php:42
|
2235 |
#: src/Providers/SMTPcom/Options.php:42
|
2236 |
msgid "<strong><a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">SMTP.com</a> is a recommended transactional email service.</strong> With a 22 years of track record of reliable email delivery, SMTP.com is a premiere solution for WordPress developers and website owners. SMTP.com has been around for almost as long as email itself. Their super simple integration interface makes it easy to get started while a powerful API and robust documentation make it a preferred choice among developers. Start a 30-day free trial with 50,000 emails."
|
2237 |
msgstr ""
|
2238 |
|
2239 |
#. translators: %s - URL to wpmailsmtp.com doc page for stmp.com.
|
2240 |
-
#: build/wp-mail-smtp/src/Providers/SMTPcom/Options.php:50
|
2241 |
#: src/Providers/SMTPcom/Options.php:50
|
2242 |
msgid "Read our <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">SMTP.com documentation</a> to learn how to configure SMTP.com and improve your email deliverability."
|
2243 |
msgstr ""
|
2244 |
|
2245 |
-
#: build/wp-mail-smtp/src/Providers/SMTPcom/Options.php:60
|
2246 |
#: src/Providers/SMTPcom/Options.php:60
|
2247 |
msgid "Get Started with SMTP.com"
|
2248 |
msgstr ""
|
2249 |
|
2250 |
-
#: build/wp-mail-smtp/src/Providers/SMTPcom/Options.php:68
|
2251 |
#: src/Providers/SMTPcom/Options.php:68
|
2252 |
msgid "SMTP.com"
|
2253 |
msgstr ""
|
2254 |
|
2255 |
#. translators: %s - API key link.
|
2256 |
-
#: build/wp-mail-smtp/src/Providers/SMTPcom/Options.php:109
|
2257 |
#: src/Providers/SMTPcom/Options.php:109
|
2258 |
msgid "Follow this link to get an API Key from SMTP.com: %s."
|
2259 |
msgstr ""
|
2260 |
|
2261 |
-
#: build/wp-mail-smtp/src/Providers/SMTPcom/Options.php:111
|
2262 |
#: src/Providers/SMTPcom/Options.php:111
|
2263 |
msgid "Get API Key"
|
2264 |
msgstr ""
|
2265 |
|
2266 |
-
#: build/wp-mail-smtp/src/Providers/SMTPcom/Options.php:122
|
2267 |
#: src/Providers/SMTPcom/Options.php:122
|
2268 |
msgid "Sender Name"
|
2269 |
msgstr ""
|
2270 |
|
2271 |
#. translators: %s - Channel/Sender Name link for smtp.com documentation.
|
2272 |
-
#: build/wp-mail-smtp/src/Providers/SMTPcom/Options.php:138
|
2273 |
#: src/Providers/SMTPcom/Options.php:138
|
2274 |
msgid "Follow this link to get a Sender Name from SMTP.com: %s."
|
2275 |
msgstr ""
|
2276 |
|
2277 |
-
#: build/wp-mail-smtp/src/Providers/SMTPcom/Options.php:140
|
2278 |
#: src/Providers/SMTPcom/Options.php:140
|
2279 |
msgid "Get Sender Name"
|
2280 |
msgstr ""
|
2281 |
|
2282 |
-
#: build/wp-mail-smtp/src/Providers/Zoho/Options.php:25
|
2283 |
#: src/Providers/Zoho/Options.php:25
|
2284 |
msgid "Zoho Mail"
|
2285 |
msgstr ""
|
2286 |
|
2287 |
-
#: build/wp-mail-smtp/src/Providers/Zoho/Options.php:41
|
2288 |
#: src/Providers/Zoho/Options.php:41
|
2289 |
msgid "We're sorry, the Zoho Mail mailer is not available on your plan. Please upgrade to the PRO plan to unlock all these awesome features."
|
2290 |
msgstr ""
|
2291 |
|
2292 |
-
#: build/wp-mail-smtp/src/SiteHealth.php:67
|
2293 |
#: src/SiteHealth.php:67
|
2294 |
msgid "Is WP Mail SMTP mailer setup complete?"
|
2295 |
msgstr ""
|
2296 |
|
2297 |
-
#: build/wp-mail-smtp/src/SiteHealth.php:72
|
2298 |
#: src/SiteHealth.php:72
|
2299 |
msgid "Do WP Mail SMTP DB tables exist?"
|
2300 |
msgstr ""
|
2301 |
|
2302 |
-
#: build/wp-mail-smtp/src/SiteHealth.php:98
|
2303 |
#: src/SiteHealth.php:98
|
2304 |
msgid "Version"
|
2305 |
msgstr ""
|
2306 |
|
2307 |
-
#: build/wp-mail-smtp/src/SiteHealth.php:102
|
2308 |
#: src/SiteHealth.php:102
|
2309 |
msgid "License key type"
|
2310 |
msgstr ""
|
2311 |
|
2312 |
-
#: build/wp-mail-smtp/src/SiteHealth.php:106
|
2313 |
#: src/SiteHealth.php:106
|
2314 |
msgid "Debug"
|
2315 |
msgstr ""
|
2316 |
|
2317 |
-
#: build/wp-mail-smtp/src/SiteHealth.php:107
|
2318 |
#: src/SiteHealth.php:107
|
2319 |
msgid "No debug notices found."
|
2320 |
msgstr ""
|
2321 |
|
2322 |
-
#: build/wp-mail-smtp/src/SiteHealth.php:110
|
2323 |
#: src/SiteHealth.php:110
|
2324 |
msgid "DB tables"
|
2325 |
msgstr ""
|
2326 |
|
2327 |
-
#: build/wp-mail-smtp/src/SiteHealth.php:112
|
2328 |
#: src/SiteHealth.php:112
|
2329 |
msgid "No DB tables found."
|
2330 |
msgstr ""
|
2331 |
|
2332 |
-
#: build/wp-mail-smtp/src/SiteHealth.php:123
|
2333 |
#: src/SiteHealth.php:123
|
2334 |
msgid "Lite install date"
|
2335 |
msgstr ""
|
2336 |
|
2337 |
-
#: build/wp-mail-smtp/src/SiteHealth.php:140
|
2338 |
#: src/SiteHealth.php:140
|
2339 |
msgid "None selected"
|
2340 |
msgstr ""
|
2341 |
|
2342 |
-
#: build/wp-mail-smtp/src/SiteHealth.php:160
|
2343 |
#: src/SiteHealth.php:160
|
2344 |
msgid "Current mailer"
|
2345 |
msgstr ""
|
2346 |
|
2347 |
-
#: build/wp-mail-smtp/src/SiteHealth.php:165
|
2348 |
#: src/SiteHealth.php:165
|
2349 |
msgid "WP Mail SMTP mailer setup is complete"
|
2350 |
msgstr ""
|
2351 |
|
2352 |
-
#: build/wp-mail-smtp/src/SiteHealth.php:174
|
2353 |
#: src/SiteHealth.php:174
|
2354 |
msgid "The WP Mail SMTP plugin mailer setup is complete. You can send a test email, to make sure it's working properly."
|
2355 |
msgstr ""
|
2356 |
|
2357 |
-
#: build/wp-mail-smtp/src/SiteHealth.php:179
|
2358 |
#: src/SiteHealth.php:179
|
2359 |
msgid "Test email sending"
|
2360 |
msgstr ""
|
2361 |
|
2362 |
-
#: build/wp-mail-smtp/src/SiteHealth.php:187
|
2363 |
#: src/SiteHealth.php:187
|
2364 |
msgid "You currently have the default mailer selected, which means that you haven’t set up SMTP yet."
|
2365 |
msgstr ""
|
2366 |
|
2367 |
-
#: build/wp-mail-smtp/src/SiteHealth.php:192
|
2368 |
#: src/SiteHealth.php:192
|
2369 |
msgid "WP Mail SMTP mailer setup is incomplete"
|
2370 |
msgstr ""
|
2371 |
|
2372 |
-
#: build/wp-mail-smtp/src/SiteHealth.php:198
|
2373 |
#: src/SiteHealth.php:198
|
2374 |
msgid "The WP Mail SMTP plugin mailer setup is incomplete. Please click on the link below to access plugin settings and configure the mailer."
|
2375 |
msgstr ""
|
2376 |
|
2377 |
-
#: build/wp-mail-smtp/src/SiteHealth.php:203
|
2378 |
#: src/SiteHealth.php:203
|
2379 |
msgid "Configure mailer"
|
2380 |
msgstr ""
|
2381 |
|
2382 |
-
#: build/wp-mail-smtp/src/SiteHealth.php:220
|
2383 |
#: src/SiteHealth.php:220
|
2384 |
msgid "WP Mail SMTP DB tables are created"
|
2385 |
msgstr ""
|
2386 |
|
2387 |
-
#: build/wp-mail-smtp/src/SiteHealth.php:226
|
2388 |
#: src/SiteHealth.php:226
|
2389 |
msgid "WP Mail SMTP is using custom database tables for some of its features. In order to work properly, the custom tables should be created, and it looks like they exist in your database."
|
2390 |
msgstr ""
|
2391 |
|
2392 |
-
#: build/wp-mail-smtp/src/SiteHealth.php:234
|
2393 |
#: src/SiteHealth.php:234
|
2394 |
msgid "WP Mail SMTP DB tables check has failed"
|
2395 |
msgstr ""
|
2396 |
|
2397 |
#. translators: %s - the list of missing tables separated by comma.
|
2398 |
-
#: build/wp-mail-smtp/src/SiteHealth.php:240
|
2399 |
#: src/SiteHealth.php:240
|
2400 |
msgid "Missing table: %s"
|
2401 |
msgid_plural "Missing tables: %s"
|
2402 |
msgstr[0] ""
|
2403 |
msgstr[1] ""
|
2404 |
|
2405 |
-
#: build/wp-mail-smtp/src/SiteHealth.php:243
|
2406 |
#: src/SiteHealth.php:243
|
2407 |
msgid "WP Mail SMTP is using custom database tables for some of its features. In order to work properly, the custom tables should be created, and it seems they are missing. Please try to re-install the WP Mail SMTP plugin. If this issue persists, please contact our support."
|
2408 |
msgstr ""
|
2409 |
|
2410 |
#. translators: %1$s - date, \a\t - specially escaped "at", %2$s - time.
|
2411 |
-
#: build/wp-mail-smtp/src/WP.php:190
|
2412 |
#: src/WP.php:190
|
2413 |
msgid "%1$s \\a\\t %2$s"
|
2414 |
msgstr ""
|
2415 |
|
2416 |
-
#: build/wp-mail-smtp/wp_mail_smtp.php:137
|
2417 |
#: wp_mail_smtp.php:137
|
2418 |
msgid "Please deactivate the free version of the WP Mail SMTP plugin before activating WP Mail SMTP Pro."
|
2419 |
msgstr ""
|
2420 |
|
2421 |
#. translators: %1$s - WPBeginner URL for recommended WordPress hosting.
|
2422 |
-
#: build/wp-mail-smtp/wp_mail_smtp.php:165
|
2423 |
#: wp_mail_smtp.php:165
|
2424 |
msgid "Your site is running an <strong>insecure version</strong> of PHP that is no longer supported. Please contact your web hosting provider to update your PHP version or switch to a <a href=\"%1$s\" target=\"_blank\" rel=\"noopener noreferrer\">recommended WordPress hosting company</a>."
|
2425 |
msgstr ""
|
2426 |
|
2427 |
#. translators: %s - WPMailSMTP.com docs URL with more details.
|
2428 |
-
#: build/wp-mail-smtp/wp_mail_smtp.php:182
|
2429 |
#: wp_mail_smtp.php:182
|
2430 |
msgid "<strong>WP Mail SMTP plugin is disabled</strong> on your site until you fix the issue. <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">Read more for additional information.</a>"
|
2431 |
msgstr ""
|
2432 |
-
|
2433 |
-
#: src/Pro/Providers/Providers.php:157
|
2434 |
-
msgid "OK"
|
2435 |
-
msgstr ""
|
2436 |
-
|
2437 |
-
#: src/Pro/SiteHealth.php:58
|
2438 |
-
msgid "Is wpmailsmtp.com reachable?"
|
2439 |
-
msgstr ""
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
+
"Project-Id-Version: WP Mail SMTP 2.4.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: 2020-09-17T12:40:51+03:00\n"
|
11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
12 |
"X-Generator: WP-CLI 2.4.0\n"
|
13 |
"X-Domain: wp-mail-smtp\n"
|
33 |
msgstr ""
|
34 |
|
35 |
#. translators: %s - error code, returned by Google API.
|
|
|
36 |
#: src/Admin/Area.php:126
|
37 |
msgid "There was an error while processing the authentication request: %s. Please try again."
|
38 |
msgstr ""
|
39 |
|
|
|
40 |
#: src/Admin/Area.php:133
|
41 |
msgid "There was an error while processing the authentication request. Please try again."
|
42 |
msgstr ""
|
43 |
|
|
|
44 |
#: src/Admin/Area.php:140
|
45 |
msgid "There was an error while processing the authentication request. Please make sure that you have Client ID and Client Secret both valid and saved."
|
46 |
msgstr ""
|
47 |
|
|
|
48 |
#: src/Admin/Area.php:149
|
49 |
msgid "You have successfully linked the current site with your Google API project. Now you can start sending emails through Gmail."
|
50 |
msgstr ""
|
51 |
|
52 |
#. translators: %s - Mailer anchor link.
|
|
|
53 |
#: src/Admin/Area.php:180
|
54 |
msgid "Thanks for using WP Mail SMTP! To complete the plugin setup and start sending emails, <strong>please select and configure your <a href=\"%s\">Mailer</a></strong>."
|
55 |
msgstr ""
|
56 |
|
|
|
|
|
|
|
57 |
#: src/Admin/Area.php:203
|
58 |
#: src/Admin/Area.php:204
|
59 |
#: src/SiteHealth.php:40
|
60 |
msgid "WP Mail SMTP"
|
61 |
msgstr ""
|
62 |
|
|
|
|
|
|
|
63 |
#: src/Admin/Area.php:214
|
64 |
#: src/Admin/Area.php:215
|
65 |
#: src/Admin/Area.php:862
|
66 |
msgid "Settings"
|
67 |
msgstr ""
|
68 |
|
|
|
|
|
|
|
|
|
|
|
69 |
#: src/Admin/Area.php:222
|
70 |
#: src/Admin/Area.php:223
|
71 |
#: src/Admin/Pages/About.php:653
|
74 |
msgid "Email Log"
|
75 |
msgstr ""
|
76 |
|
|
|
|
|
|
|
77 |
#: src/Admin/Area.php:232
|
78 |
#: src/Admin/Area.php:233
|
79 |
#: src/Admin/Pages/About.php:106
|
80 |
msgid "About Us"
|
81 |
msgstr ""
|
82 |
|
|
|
83 |
#: src/Admin/Area.php:296
|
84 |
msgid "Are you sure you want to reset the current provider connection? You will need to immediately create a new one to be able to send emails."
|
85 |
msgstr ""
|
86 |
|
|
|
87 |
#: src/Admin/Area.php:297
|
88 |
msgid "Changes that you made to the settings are not saved!"
|
89 |
msgstr ""
|
90 |
|
|
|
91 |
#: src/Admin/Area.php:299
|
92 |
msgid "Heads up!"
|
93 |
msgstr ""
|
94 |
|
|
|
95 |
#: src/Admin/Area.php:301
|
96 |
msgid "<p>The Default (PHP) mailer is currently selected, but is not recommended because in most cases it does not resolve email delivery issues.</p><p>Please consider selecting and configuring one of the other mailers.</p>"
|
97 |
msgstr ""
|
98 |
|
|
|
|
|
99 |
#: src/Admin/Area.php:304
|
100 |
#: src/Admin/PageAbstract.php:83
|
101 |
msgid "Save Settings"
|
102 |
msgstr ""
|
103 |
|
|
|
104 |
#: src/Admin/Area.php:305
|
105 |
msgid "Cancel"
|
106 |
msgstr ""
|
107 |
|
|
|
108 |
#: src/Admin/Area.php:306
|
109 |
msgid "Warning icon"
|
110 |
msgstr ""
|
111 |
|
|
|
112 |
#: src/Admin/Area.php:311
|
113 |
msgid "%name% is a PRO Feature"
|
114 |
msgstr ""
|
115 |
|
|
|
116 |
#: src/Admin/Area.php:312
|
117 |
msgid "Upgrade to Pro"
|
118 |
msgstr ""
|
119 |
|
|
|
120 |
#: src/Admin/Area.php:316
|
121 |
msgid "<strong>Bonus:</strong> WP Mail SMTP users get <span>$50 off</span> regular price,<br>applied at checkout."
|
122 |
msgstr ""
|
123 |
|
|
|
124 |
#: src/Admin/Area.php:325
|
125 |
msgid "Already purchased?"
|
126 |
msgstr ""
|
127 |
|
|
|
|
|
|
|
128 |
#: src/Admin/Area.php:394
|
129 |
#: src/Admin/Area.php:401
|
130 |
#: src/Admin/Pages/About.php:334
|
131 |
msgid "Activate"
|
132 |
msgstr ""
|
133 |
|
|
|
|
|
134 |
#: src/Admin/Area.php:395
|
135 |
#: src/Admin/Pages/About.php:326
|
136 |
msgid "Activated"
|
137 |
msgstr ""
|
138 |
|
|
|
|
|
139 |
#: src/Admin/Area.php:396
|
140 |
#: src/Admin/Pages/About.php:323
|
141 |
msgid "Active"
|
142 |
msgstr ""
|
143 |
|
|
|
|
|
144 |
#: src/Admin/Area.php:397
|
145 |
#: src/Admin/Pages/About.php:331
|
146 |
msgid "Inactive"
|
147 |
msgstr ""
|
148 |
|
|
|
149 |
#: src/Admin/Area.php:398
|
150 |
msgid "Processing..."
|
151 |
msgstr ""
|
152 |
|
|
|
153 |
#: src/Admin/Area.php:399
|
154 |
msgid "Could not install a plugin. Please download from WordPress.org and install manually."
|
155 |
msgstr ""
|
156 |
|
|
|
157 |
#: src/Admin/Area.php:400
|
158 |
msgid "Install and Activate"
|
159 |
msgstr ""
|
160 |
|
|
|
161 |
#: src/Admin/Area.php:402
|
162 |
msgid "Download"
|
163 |
msgstr ""
|
164 |
|
165 |
#. translators: %1$s - WP.org link; %2$s - same WP.org link.
|
|
|
166 |
#: src/Admin/Area.php:464
|
167 |
msgid "Please rate <strong>WP Mail SMTP</strong> <a href=\"%1$s\" target=\"_blank\" rel=\"noopener noreferrer\">★★★★★</a> on <a href=\"%2$s\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress.org</a> to help us spread the word. Thank you from the WP Mail SMTP team!"
|
168 |
msgstr ""
|
169 |
|
|
|
170 |
#: src/Admin/Area.php:803
|
171 |
msgid "WP Mail SMTP Pro related message was successfully dismissed."
|
172 |
msgstr ""
|
173 |
|
|
|
174 |
#: src/Admin/Area.php:822
|
175 |
msgid "Educational notice for this mailer was successfully dismissed."
|
176 |
msgstr ""
|
177 |
|
|
|
178 |
#: src/Admin/Area.php:861
|
179 |
msgid "Go to WP Mail SMTP Settings page"
|
180 |
msgstr ""
|
181 |
|
|
|
182 |
#: src/Admin/Area.php:868
|
183 |
msgid "Go to WP Mail SMTP Lite vs Pro comparison page"
|
184 |
msgstr ""
|
185 |
|
|
|
186 |
#: src/Admin/Area.php:869
|
187 |
msgid "Premium Support"
|
188 |
msgstr ""
|
189 |
|
190 |
#. translators: %s - WPMailSMTP.com Upgrade page URL.
|
|
|
191 |
#: src/Admin/Education.php:69
|
192 |
msgid "You’re using WP Mail SMTP Lite. To unlock more features consider <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">upgrading to Pro</a>."
|
193 |
msgstr ""
|
194 |
|
|
|
195 |
#: src/Admin/Education.php:80
|
196 |
msgid "Dismiss this message."
|
197 |
msgstr ""
|
198 |
|
199 |
+
#: src/Admin/Notifications.php:442
|
|
|
200 |
msgid "Dismiss this message"
|
201 |
msgstr ""
|
202 |
|
203 |
+
#: src/Admin/Notifications.php:445
|
|
|
204 |
msgid "Previous message"
|
205 |
msgstr ""
|
206 |
|
207 |
+
#: src/Admin/Notifications.php:446
|
|
|
208 |
msgid "Next message"
|
209 |
msgstr ""
|
210 |
|
211 |
#. translators: %s - plugin current license type.
|
|
|
|
|
212 |
#: src/Admin/Pages/About.php:99
|
213 |
#: src/Admin/Pages/About.php:552
|
214 |
msgid "%s vs Pro"
|
215 |
msgstr ""
|
216 |
|
|
|
217 |
#: src/Admin/Pages/About.php:173
|
218 |
msgid "Hello and welcome to WP Mail SMTP, the easiest and most popular WordPress SMTP plugin. We build software that helps your site reliably deliver emails every time."
|
219 |
msgstr ""
|
220 |
|
|
|
221 |
#: src/Admin/Pages/About.php:177
|
222 |
msgid "Email deliverability has been a well-documented problem for all WordPress websites. However as WPForms grew, we became more aware of this painful issue that affects our users and the larger WordPress community. So we decided to solve this problem and make a solution that's beginner friendly."
|
223 |
msgstr ""
|
224 |
|
|
|
225 |
#: src/Admin/Pages/About.php:180
|
226 |
msgid "Our goal is to make reliable email deliverability easy for WordPress."
|
227 |
msgstr ""
|
228 |
|
229 |
#. translators: %1$s - WPForms URL, %2$s - WPBeginner URL, %3$s - OptinMonster URL, %4$s - MonsterInsights URL, %5$s - RafflePress URL
|
|
|
230 |
#: src/Admin/Pages/About.php:187
|
231 |
msgid "WP Mail SMTP is brought to you by the same team that's behind the most user friendly WordPress forms, <a href=\"%1$s\" target=\"_blank\" rel=\"noopener noreferrer\">WPForms</a>, the largest WordPress resource site, <a href=\"%2$s\" target=\"_blank\" rel=\"noopener noreferrer\">WPBeginner</a>, the most popular lead-generation software, <a href=\"%3$s\" target=\"_blank\" rel=\"noopener noreferrer\">OptinMonster</a>, the best WordPress analytics plugin, <a href=\"%4$s\" target=\"_blank\" rel=\"noopener noreferrer\">MonsterInsights</a>, and the most powerful WordPress contest plugin, <a href=\"%5$s\" target=\"_blank\" rel=\"noopener noreferrer\">RafflePress</a>."
|
232 |
msgstr ""
|
233 |
|
|
|
234 |
#: src/Admin/Pages/About.php:205
|
235 |
msgid "Yup, we know a thing or two about building awesome products that customers love."
|
236 |
msgstr ""
|
237 |
|
|
|
238 |
#: src/Admin/Pages/About.php:211
|
239 |
msgid "The WPForms Team photo"
|
240 |
msgstr ""
|
241 |
|
|
|
242 |
#: src/Admin/Pages/About.php:213
|
243 |
msgid "The WPForms Team"
|
244 |
msgstr ""
|
245 |
|
|
|
246 |
#: src/Admin/Pages/About.php:262
|
247 |
msgid "Plugin icon"
|
248 |
msgstr ""
|
249 |
|
250 |
#. translators: %s - status HTML text.
|
|
|
251 |
#: src/Admin/Pages/About.php:276
|
252 |
msgid "Status: %s"
|
253 |
msgstr ""
|
254 |
|
|
|
255 |
#: src/Admin/Pages/About.php:342
|
256 |
msgid "Not Installed"
|
257 |
msgstr ""
|
258 |
|
|
|
259 |
#: src/Admin/Pages/About.php:345
|
260 |
msgid "Install Plugin"
|
261 |
msgstr ""
|
262 |
|
|
|
263 |
#: src/Admin/Pages/About.php:366
|
264 |
msgid "MonsterInsights"
|
265 |
msgstr ""
|
266 |
|
|
|
|
|
267 |
#: src/Admin/Pages/About.php:367
|
268 |
#: src/Admin/Pages/About.php:373
|
269 |
msgid "MonsterInsights makes it “effortless” to properly connect your WordPress site with Google Analytics, so you can start making data-driven decisions to grow your business."
|
270 |
msgstr ""
|
271 |
|
|
|
272 |
#: src/Admin/Pages/About.php:372
|
273 |
msgid "MonsterInsights Pro"
|
274 |
msgstr ""
|
275 |
|
|
|
276 |
#: src/Admin/Pages/About.php:380
|
277 |
msgid "OptinMonster"
|
278 |
msgstr ""
|
279 |
|
|
|
280 |
#: src/Admin/Pages/About.php:381
|
281 |
msgid "Our high-converting optin forms like Exit-Intent® popups, Fullscreen Welcome Mats, and Scroll boxes help you dramatically boost conversions and get more email subscribers."
|
282 |
msgstr ""
|
283 |
|
|
|
284 |
#: src/Admin/Pages/About.php:387
|
285 |
msgid "Contact Forms by WPForms"
|
286 |
msgstr ""
|
287 |
|
|
|
|
|
288 |
#: src/Admin/Pages/About.php:388
|
289 |
#: src/Admin/Pages/About.php:394
|
290 |
msgid "The best WordPress contact form plugin. Drag & Drop online form builder that helps you create beautiful contact forms with just a few clicks."
|
291 |
msgstr ""
|
292 |
|
|
|
293 |
#: src/Admin/Pages/About.php:393
|
294 |
msgid "WPForms Pro"
|
295 |
msgstr ""
|
296 |
|
|
|
297 |
#: src/Admin/Pages/About.php:401
|
298 |
msgid "RafflePress"
|
299 |
msgstr ""
|
300 |
|
|
|
|
|
301 |
#: src/Admin/Pages/About.php:402
|
302 |
#: src/Admin/Pages/About.php:408
|
303 |
msgid "Turn your visitors into brand ambassadors! Easily grow your email list, website traffic, and social media followers with powerful viral giveaways & contests."
|
304 |
msgstr ""
|
305 |
|
|
|
306 |
#: src/Admin/Pages/About.php:407
|
307 |
msgid "RafflePress Pro"
|
308 |
msgstr ""
|
309 |
|
|
|
310 |
#: src/Admin/Pages/About.php:427
|
311 |
msgid "Could not activate the plugin. Please activate it from the Plugins page."
|
312 |
msgstr ""
|
313 |
|
|
|
314 |
#: src/Admin/Pages/About.php:439
|
315 |
msgid "Plugin activated."
|
316 |
msgstr ""
|
317 |
|
|
|
318 |
#: src/Admin/Pages/About.php:456
|
319 |
msgid "Could not install the plugin."
|
320 |
msgstr ""
|
321 |
|
|
|
322 |
#: src/Admin/Pages/About.php:517
|
323 |
msgid "Plugin installed & activated."
|
324 |
msgstr ""
|
325 |
|
|
|
326 |
#: src/Admin/Pages/About.php:525
|
327 |
msgid "Plugin installed."
|
328 |
msgstr ""
|
329 |
|
|
|
330 |
#: src/Admin/Pages/About.php:560
|
331 |
msgid "Get the most out of WP Mail SMTP by upgrading to Pro and unlocking all of the powerful features."
|
332 |
msgstr ""
|
333 |
|
|
|
334 |
#: src/Admin/Pages/About.php:569
|
335 |
msgid "Feature"
|
336 |
msgstr ""
|
337 |
|
|
|
338 |
#: src/Admin/Pages/About.php:579
|
339 |
msgid "Pro"
|
340 |
msgstr ""
|
341 |
|
|
|
342 |
#: src/Admin/Pages/About.php:620
|
343 |
msgid "Get WP Mail SMTP Pro Today and Unlock all of these Powerful Features"
|
344 |
msgstr ""
|
345 |
|
|
|
346 |
#: src/Admin/Pages/About.php:627
|
347 |
msgid "Bonus: WP Mail SMTP Lite users get <span class=\"price-off\">$50 off regular price</span>, automatically applied at checkout."
|
348 |
msgstr ""
|
349 |
|
|
|
|
|
350 |
#: src/Admin/Pages/About.php:654
|
351 |
#: src/Admin/Pages/ControlTab.php:27
|
352 |
msgid "Email Controls"
|
353 |
msgstr ""
|
354 |
|
|
|
355 |
#: src/Admin/Pages/About.php:655
|
356 |
+
msgid "Mailer Options"
|
357 |
msgstr ""
|
358 |
|
|
|
359 |
#: src/Admin/Pages/About.php:656
|
360 |
+
msgid "WordPress Multisite"
|
361 |
+
msgstr ""
|
362 |
+
|
363 |
+
#: src/Admin/Pages/About.php:657
|
364 |
msgid "Customer Support"
|
365 |
msgstr ""
|
366 |
|
367 |
+
#: src/Admin/Pages/About.php:678
|
|
|
368 |
msgid "Emails are not logged"
|
369 |
msgstr ""
|
370 |
|
371 |
+
#: src/Admin/Pages/About.php:684
|
372 |
+
msgid "Access to all Email Logging options right inside WordPress"
|
|
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: src/Admin/Pages/About.php:692
|
|
|
376 |
msgid "No controls over whether default WordPress emails are sent"
|
377 |
msgstr ""
|
378 |
|
379 |
+
#: src/Admin/Pages/About.php:698
|
|
|
380 |
msgid "Complete Email Controls management for most default WordPress emails"
|
381 |
msgstr ""
|
382 |
|
383 |
+
#: src/Admin/Pages/About.php:706
|
384 |
+
msgid "Limited Mailers"
|
385 |
+
msgstr ""
|
386 |
+
|
387 |
+
#: src/Admin/Pages/About.php:706
|
388 |
+
msgid "Access is limited to standard mailer options only"
|
389 |
+
msgstr ""
|
390 |
+
|
391 |
+
#: src/Admin/Pages/About.php:712
|
392 |
+
msgid "Additional Mailer Options"
|
393 |
+
msgstr ""
|
394 |
+
|
395 |
+
#: src/Admin/Pages/About.php:712
|
396 |
+
msgid "Microsoft Outlook (with Office365 support), Amazon SES and Zoho Mail"
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: src/Admin/Pages/About.php:720
|
400 |
+
msgid "No Global Network Settings"
|
|
|
401 |
msgstr ""
|
402 |
|
403 |
+
#: src/Admin/Pages/About.php:726
|
404 |
+
msgid "All Global Network Settings"
|
405 |
+
msgstr ""
|
406 |
+
|
407 |
+
#: src/Admin/Pages/About.php:726
|
408 |
+
msgid "Optionally configure settings at the network level or manage separately for each subsite"
|
409 |
+
msgstr ""
|
410 |
+
|
411 |
+
#: src/Admin/Pages/About.php:734
|
412 |
msgid "Limited Support"
|
413 |
msgstr ""
|
414 |
|
415 |
+
#: src/Admin/Pages/About.php:740
|
|
|
416 |
msgid "Priority Support"
|
417 |
msgstr ""
|
418 |
|
|
|
419 |
#: src/Admin/Pages/ControlTab.php:48
|
420 |
msgid "Comment Notifications"
|
421 |
msgstr ""
|
422 |
|
|
|
423 |
#: src/Admin/Pages/ControlTab.php:49
|
424 |
msgid "Manage emails sent when comments are published or awaiting moderation."
|
425 |
msgstr ""
|
426 |
|
|
|
427 |
#: src/Admin/Pages/ControlTab.php:53
|
428 |
msgid "Site Admin Email Change Notifications"
|
429 |
msgstr ""
|
430 |
|
|
|
431 |
#: src/Admin/Pages/ControlTab.php:54
|
432 |
msgid "Manage emails sent when site admin's account has been changed."
|
433 |
msgstr ""
|
434 |
|
|
|
435 |
#: src/Admin/Pages/ControlTab.php:58
|
436 |
msgid "User Change Notifications"
|
437 |
msgstr ""
|
438 |
|
|
|
439 |
#: src/Admin/Pages/ControlTab.php:59
|
440 |
msgid "Limit emails triggered by password changed/reset, email changed, and more."
|
441 |
msgstr ""
|
442 |
|
|
|
443 |
#: src/Admin/Pages/ControlTab.php:63
|
444 |
msgid "Personal Data Requests Notifications"
|
445 |
msgstr ""
|
446 |
|
|
|
447 |
#: src/Admin/Pages/ControlTab.php:64
|
448 |
msgid "Control emails for data requests and data removal actions."
|
449 |
msgstr ""
|
450 |
|
|
|
451 |
#: src/Admin/Pages/ControlTab.php:68
|
452 |
msgid "Automatic Update Notifications"
|
453 |
msgstr ""
|
454 |
|
|
|
455 |
#: src/Admin/Pages/ControlTab.php:69
|
456 |
msgid "Manage emails sent by the core automatic update process."
|
457 |
msgstr ""
|
458 |
|
|
|
459 |
#: src/Admin/Pages/ControlTab.php:73
|
460 |
msgid "New User Notifications"
|
461 |
msgstr ""
|
462 |
|
|
|
463 |
#: src/Admin/Pages/ControlTab.php:74
|
464 |
msgid "Toggle emails sent to both user and site administrator about new user accounts."
|
465 |
msgstr ""
|
466 |
|
|
|
467 |
#: src/Admin/Pages/ControlTab.php:92
|
468 |
msgid "Unlock Email Controls"
|
469 |
msgstr ""
|
470 |
|
|
|
471 |
#: src/Admin/Pages/ControlTab.php:95
|
472 |
msgid "Email Controls allows you to granularly manage emails sent by WordPress.
"
|
473 |
msgstr ""
|
474 |
|
|
|
|
|
475 |
#: src/Admin/Pages/ControlTab.php:119
|
476 |
#: src/Admin/Pages/LogsTab.php:68
|
477 |
msgid "Upgrade to WP Mail SMTP Pro"
|
478 |
msgstr ""
|
479 |
|
|
|
480 |
#: src/Admin/Pages/LogsTab.php:53
|
481 |
msgid "Unlock Email Logging"
|
482 |
msgstr ""
|
483 |
|
|
|
484 |
#: src/Admin/Pages/LogsTab.php:56
|
485 |
msgid "Keep track of every email sent from your WordPress site with email logging.
"
|
486 |
msgstr ""
|
487 |
|
|
|
488 |
#: src/Admin/Pages/LogsTab.php:57
|
489 |
msgid "Troubleshoot sending issues, recover lost emails, and more!"
|
490 |
msgstr ""
|
491 |
|
|
|
492 |
#: src/Admin/Pages/LogsTab.php:61
|
493 |
msgid "Logs Archive Page Screenshot"
|
494 |
msgstr ""
|
495 |
|
|
|
496 |
#: src/Admin/Pages/LogsTab.php:62
|
497 |
msgid "Logs Single Page Screenshot"
|
498 |
msgstr ""
|
499 |
|
|
|
500 |
#: src/Admin/Pages/MiscTab.php:25
|
501 |
msgid "Misc"
|
502 |
msgstr ""
|
503 |
|
|
|
504 |
#: src/Admin/Pages/MiscTab.php:57
|
505 |
msgid "Do Not Send"
|
506 |
msgstr ""
|
507 |
|
|
|
508 |
#: src/Admin/Pages/MiscTab.php:66
|
509 |
msgid "Check this if you would like to stop sending all emails."
|
510 |
msgstr ""
|
511 |
|
|
|
512 |
#: src/Admin/Pages/MiscTab.php:72
|
513 |
msgid "Some plugins, like BuddyPress and Events Manager, are using their own email delivery solutions. By default, this option does not block their emails, as those plugins do not use default <code>wp_mail()</code> function to send emails."
|
514 |
msgstr ""
|
515 |
|
|
|
516 |
#: src/Admin/Pages/MiscTab.php:80
|
517 |
msgid "You will need to consult with their documentation to switch them to use default WordPress email delivery."
|
518 |
msgstr ""
|
519 |
|
|
|
520 |
#: src/Admin/Pages/MiscTab.php:82
|
521 |
msgid "Test emails are allowed to be sent, regardless of this option."
|
522 |
msgstr ""
|
523 |
|
524 |
#. translators: %1$s - constant that was used; %2$s - file where it was used.
|
|
|
|
|
525 |
#: src/Admin/Pages/MiscTab.php:87
|
526 |
#: src/Providers/OptionsAbstract.php:480
|
527 |
msgid "The value of this field was set using a constant %1$s most likely inside %2$s of your WordPress installation."
|
528 |
msgstr ""
|
529 |
|
530 |
#. translators: %s - The URL to the constants support article.
|
|
|
531 |
#: src/Admin/Pages/MiscTab.php:94
|
532 |
msgid "Please read this <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">support article</a> if you want to enable this option using constants."
|
533 |
msgstr ""
|
534 |
|
|
|
535 |
#: src/Admin/Pages/MiscTab.php:115
|
536 |
msgid "Hide Announcements"
|
537 |
msgstr ""
|
538 |
|
|
|
539 |
#: src/Admin/Pages/MiscTab.php:124
|
540 |
msgid "Check this if you would like to hide plugin announcements and update details."
|
541 |
msgstr ""
|
542 |
|
|
|
543 |
#: src/Admin/Pages/MiscTab.php:134
|
544 |
msgid "Hide Email Delivery Errors"
|
545 |
msgstr ""
|
546 |
|
|
|
547 |
#: src/Admin/Pages/MiscTab.php:150
|
548 |
msgid "Check this if you would like to hide warnings alerting of email delivery errors."
|
549 |
msgstr ""
|
550 |
|
551 |
#. translators: %s - filter that was used to disabled.
|
|
|
552 |
#: src/Admin/Pages/MiscTab.php:157
|
553 |
msgid "Email Delivery Errors were disabled using a %s filter."
|
554 |
msgstr ""
|
555 |
|
|
|
556 |
#: src/Admin/Pages/MiscTab.php:166
|
557 |
msgid "<strong>This is not recommended</strong> and should only be done for staging or development sites."
|
558 |
msgstr ""
|
559 |
|
|
|
560 |
#: src/Admin/Pages/MiscTab.php:181
|
561 |
msgid "Uninstall WP Mail SMTP"
|
562 |
msgstr ""
|
563 |
|
|
|
564 |
#: src/Admin/Pages/MiscTab.php:189
|
565 |
msgid "Check this if you would like to remove ALL WP Mail SMTP data upon plugin deletion. All settings will be unrecoverable."
|
566 |
msgstr ""
|
567 |
|
|
|
568 |
#: src/Admin/Pages/MiscTab.php:199
|
569 |
msgid "Allow Usage Tracking"
|
570 |
msgstr ""
|
571 |
|
|
|
572 |
#: src/Admin/Pages/MiscTab.php:207
|
573 |
msgid "By allowing us to track usage data we can better help you because we know with which WordPress configurations, themes and plugins we should test."
|
574 |
msgstr ""
|
575 |
|
|
|
|
|
576 |
#: src/Admin/Pages/MiscTab.php:257
|
577 |
#: src/Admin/Pages/SettingsTab.php:597
|
578 |
msgid "Settings were successfully saved."
|
579 |
msgstr ""
|
580 |
|
|
|
581 |
#: src/Admin/Pages/SettingsTab.php:37
|
582 |
msgid "General"
|
583 |
msgstr ""
|
584 |
|
|
|
585 |
#: src/Admin/Pages/SettingsTab.php:73
|
586 |
msgid "License"
|
587 |
msgstr ""
|
588 |
|
|
|
589 |
#: src/Admin/Pages/SettingsTab.php:76
|
590 |
msgid "Your license key provides access to updates and support."
|
591 |
msgstr ""
|
592 |
|
|
|
593 |
#: src/Admin/Pages/SettingsTab.php:84
|
594 |
msgid "License Key"
|
595 |
msgstr ""
|
596 |
|
|
|
597 |
#: src/Admin/Pages/SettingsTab.php:94
|
598 |
msgid "Mail"
|
599 |
msgstr ""
|
600 |
|
|
|
601 |
#: src/Admin/Pages/SettingsTab.php:101
|
602 |
msgid "From Email"
|
603 |
msgstr ""
|
604 |
|
|
|
605 |
#: src/Admin/Pages/SettingsTab.php:120
|
606 |
msgid "Please first authorize the Gmail mailer below"
|
607 |
msgstr ""
|
608 |
|
|
|
609 |
#: src/Admin/Pages/SettingsTab.php:134
|
610 |
msgid "The email address which emails are sent from."
|
611 |
msgstr ""
|
612 |
|
|
|
613 |
#: src/Admin/Pages/SettingsTab.php:135
|
614 |
msgid "If you're using an email provider (Yahoo, Outlook.com, etc) this should be your email address for that account."
|
615 |
msgstr ""
|
616 |
|
|
|
617 |
#: src/Admin/Pages/SettingsTab.php:138
|
618 |
msgid "Please note that other plugins can change this, to prevent this use the setting below."
|
619 |
msgstr ""
|
620 |
|
|
|
621 |
#: src/Admin/Pages/SettingsTab.php:158
|
622 |
msgid "Force From Email"
|
623 |
msgstr ""
|
624 |
|
|
|
625 |
#: src/Admin/Pages/SettingsTab.php:165
|
626 |
msgid "Current provider will automatically force From Email to be the email address that you use to set up the connection below."
|
627 |
msgstr ""
|
628 |
|
|
|
629 |
#: src/Admin/Pages/SettingsTab.php:167
|
630 |
msgid "Gmail mailer will automatically force From Email to be the email address that you selected above."
|
631 |
msgstr ""
|
632 |
|
|
|
633 |
#: src/Admin/Pages/SettingsTab.php:173
|
634 |
msgid "If checked, the From Email setting above will be used for all emails, ignoring values set by other plugins."
|
635 |
msgstr ""
|
636 |
|
|
|
637 |
#: src/Admin/Pages/SettingsTab.php:183
|
638 |
msgid "From Name"
|
639 |
msgstr ""
|
640 |
|
|
|
641 |
#: src/Admin/Pages/SettingsTab.php:195
|
642 |
msgid "The name which emails are sent from."
|
643 |
msgstr ""
|
644 |
|
|
|
645 |
#: src/Admin/Pages/SettingsTab.php:209
|
646 |
msgid "Force From Name"
|
647 |
msgstr ""
|
648 |
|
|
|
649 |
#: src/Admin/Pages/SettingsTab.php:214
|
650 |
msgid "Current provider doesn't support setting and forcing From Name. Emails will be sent on behalf of the account name used to setup the connection below."
|
651 |
msgstr ""
|
652 |
|
|
|
653 |
#: src/Admin/Pages/SettingsTab.php:218
|
654 |
msgid "If checked, the From Name setting above will be used for all emails, ignoring values set by other plugins."
|
655 |
msgstr ""
|
656 |
|
|
|
657 |
#: src/Admin/Pages/SettingsTab.php:228
|
658 |
msgid "Return Path"
|
659 |
msgstr ""
|
660 |
|
|
|
661 |
#: src/Admin/Pages/SettingsTab.php:237
|
662 |
msgid "Set the return-path to match the From Email"
|
663 |
msgstr ""
|
664 |
|
|
|
665 |
#: src/Admin/Pages/SettingsTab.php:241
|
666 |
msgid "Return Path indicates where non-delivery receipts - or bounce messages - are to be sent."
|
667 |
msgstr ""
|
668 |
|
|
|
669 |
#: src/Admin/Pages/SettingsTab.php:242
|
670 |
msgid "If unchecked, bounce messages may be lost. Some providers may ignore this option."
|
671 |
msgstr ""
|
672 |
|
|
|
673 |
#: src/Admin/Pages/SettingsTab.php:250
|
674 |
msgid "Mailer"
|
675 |
msgstr ""
|
676 |
|
|
|
677 |
#: src/Admin/Pages/SettingsTab.php:292
|
678 |
msgid "Don't see what you're looking for?"
|
679 |
msgstr ""
|
680 |
|
|
|
681 |
#: src/Admin/Pages/SettingsTab.php:294
|
682 |
msgid "Suggest a Mailer"
|
683 |
msgstr ""
|
684 |
|
|
|
685 |
#: src/Admin/Pages/SettingsTab.php:322
|
686 |
msgid "Dismiss this notice"
|
687 |
msgstr ""
|
688 |
|
|
|
689 |
#: src/Admin/Pages/SettingsTab.php:369
|
690 |
msgid "You're using WP Mail SMTP Lite - no license needed. Enjoy!"
|
691 |
msgstr ""
|
692 |
|
693 |
#. translators: %s - WPMailSMTP.com upgrade URL.
|
|
|
694 |
#: src/Admin/Pages/SettingsTab.php:375
|
695 |
msgid "To unlock more features consider <strong><a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"wp-mail-smtp-upgrade-modal\">upgrading to PRO</a></strong>."
|
696 |
msgstr ""
|
697 |
|
|
|
698 |
#: src/Admin/Pages/SettingsTab.php:394
|
699 |
msgid "As a valued WP Mail SMTP Lite user you receive <strong>$50 off</strong>, automatically applied at checkout!"
|
700 |
msgstr ""
|
701 |
|
|
|
702 |
#: src/Admin/Pages/SettingsTab.php:455
|
703 |
msgid "Get WP Mail SMTP Pro and Unlock all the Powerful Features"
|
704 |
msgstr ""
|
705 |
|
|
|
706 |
#: src/Admin/Pages/SettingsTab.php:459
|
707 |
msgid "Thanks for being a loyal WP Mail SMTP user. Upgrade to WP Mail SMTP Pro to unlock more awesome features and experience why WP Mail SMTP is the most popular SMTP plugin."
|
708 |
msgstr ""
|
709 |
|
|
|
710 |
#: src/Admin/Pages/SettingsTab.php:463
|
711 |
msgid "We know that you will truly love WP Mail SMTP. It's used by over 1,000,000 websites."
|
712 |
msgstr ""
|
713 |
|
|
|
714 |
#: src/Admin/Pages/SettingsTab.php:466
|
715 |
msgid "Pro Features:"
|
716 |
msgstr ""
|
717 |
|
|
|
718 |
#: src/Admin/Pages/SettingsTab.php:470
|
719 |
msgid "Manage Notifications - control which emails your site sends"
|
720 |
msgstr ""
|
721 |
|
|
|
722 |
#: src/Admin/Pages/SettingsTab.php:471
|
723 |
msgid "Email Logging - keep track of every email sent from your site"
|
724 |
msgstr ""
|
725 |
|
|
|
726 |
#: src/Admin/Pages/SettingsTab.php:472
|
727 |
msgid "Office 365 - send emails using your Office 365 account"
|
728 |
msgstr ""
|
729 |
|
|
|
730 |
#: src/Admin/Pages/SettingsTab.php:473
|
731 |
msgid "Amazon SES - harness the power of AWS"
|
732 |
msgstr ""
|
733 |
|
|
|
734 |
#: src/Admin/Pages/SettingsTab.php:474
|
735 |
msgid "Outlook.com - send emails using your Outlook.com account"
|
736 |
msgstr ""
|
737 |
|
|
|
738 |
#: src/Admin/Pages/SettingsTab.php:475
|
739 |
msgid "Access to our world class support team"
|
740 |
msgstr ""
|
741 |
|
|
|
742 |
#: src/Admin/Pages/SettingsTab.php:478
|
743 |
msgid "White Glove Setup - sit back and relax while we handle everything for you"
|
744 |
msgstr ""
|
745 |
|
|
|
746 |
#: src/Admin/Pages/SettingsTab.php:479
|
747 |
msgid "Install WP Mail SMTP Pro plugin"
|
748 |
msgstr ""
|
749 |
|
|
|
750 |
#: src/Admin/Pages/SettingsTab.php:480
|
751 |
msgid "Set up domain name verification (DNS)"
|
752 |
msgstr ""
|
753 |
|
|
|
754 |
#: src/Admin/Pages/SettingsTab.php:481
|
755 |
msgid "Configure Mailgun service"
|
756 |
msgstr ""
|
757 |
|
|
|
758 |
#: src/Admin/Pages/SettingsTab.php:482
|
759 |
msgid "Set up WP Mail SMTP Pro plugin"
|
760 |
msgstr ""
|
761 |
|
|
|
762 |
#: src/Admin/Pages/SettingsTab.php:483
|
763 |
msgid "Test and verify email delivery"
|
764 |
msgstr ""
|
765 |
|
766 |
#. translators: %s - WPMailSMTP.com URL.
|
|
|
767 |
#: src/Admin/Pages/SettingsTab.php:491
|
768 |
msgid "<a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">Get WP Mail SMTP Pro Today and Unlock all the Powerful Features »</a>"
|
769 |
msgstr ""
|
770 |
|
|
|
771 |
#: src/Admin/Pages/SettingsTab.php:509
|
772 |
msgid "<strong>Bonus:</strong> WP Mail SMTP users get <span class=\"price-off\">$50 off regular price</span>, automatically applied at checkout."
|
773 |
msgstr ""
|
774 |
|
|
|
775 |
#: src/Admin/Pages/TestTab.php:37
|
776 |
msgid "Email Test"
|
777 |
msgstr ""
|
778 |
|
|
|
779 |
#: src/Admin/Pages/TestTab.php:59
|
780 |
msgid "Send a Test Email"
|
781 |
msgstr ""
|
782 |
|
|
|
783 |
#: src/Admin/Pages/TestTab.php:66
|
784 |
msgid "Send To"
|
785 |
msgstr ""
|
786 |
|
|
|
787 |
#: src/Admin/Pages/TestTab.php:72
|
788 |
msgid "Enter email address where test email will be sent."
|
789 |
msgstr ""
|
790 |
|
|
|
791 |
#: src/Admin/Pages/TestTab.php:80
|
792 |
msgid "HTML"
|
793 |
msgstr ""
|
794 |
|
|
|
|
|
|
|
795 |
#: src/Admin/Pages/TestTab.php:86
|
796 |
#: src/Providers/OptionsAbstract.php:276
|
797 |
#: src/Providers/OptionsAbstract.php:298
|
798 |
msgid "On"
|
799 |
msgstr ""
|
800 |
|
|
|
|
|
|
|
801 |
#: src/Admin/Pages/TestTab.php:87
|
802 |
#: src/Providers/OptionsAbstract.php:277
|
803 |
#: src/Providers/OptionsAbstract.php:299
|
804 |
msgid "Off"
|
805 |
msgstr ""
|
806 |
|
|
|
807 |
#: src/Admin/Pages/TestTab.php:90
|
808 |
msgid "Send this email in HTML or in plain text format."
|
809 |
msgstr ""
|
810 |
|
|
|
811 |
#: src/Admin/Pages/TestTab.php:110
|
812 |
msgid "You cannot send an email. Mailer is not properly configured. Please check your settings."
|
813 |
msgstr ""
|
814 |
|
|
|
815 |
#: src/Admin/Pages/TestTab.php:114
|
816 |
msgid "Send Email"
|
817 |
msgstr ""
|
818 |
|
|
|
819 |
#: src/Admin/Pages/TestTab.php:142
|
820 |
msgid "Test failed. Please use a valid email address and try to resend the test email."
|
821 |
msgstr ""
|
822 |
|
823 |
#. translators: %s - email address a test email will be sent to.
|
|
|
|
|
824 |
#: src/Admin/Pages/TestTab.php:154
|
825 |
#: src/Admin/Pages/TestTab.php:160
|
826 |
msgid "Test email to %s"
|
827 |
msgstr ""
|
828 |
|
|
|
829 |
#: src/Admin/Pages/TestTab.php:186
|
830 |
msgid "Test plain text email was sent successfully!"
|
831 |
msgstr ""
|
832 |
|
833 |
#. translators: %s - "HTML" in bold.
|
|
|
834 |
#: src/Admin/Pages/TestTab.php:190
|
835 |
msgid "Test %s email was sent successfully! Please check your inbox to make sure it is delivered."
|
836 |
msgstr ""
|
837 |
|
|
|
838 |
#: src/Admin/Pages/TestTab.php:510
|
839 |
msgid "SSL certificate issue."
|
840 |
msgstr ""
|
841 |
|
|
|
842 |
#: src/Admin/Pages/TestTab.php:511
|
843 |
msgid "This means your web server cannot reliably make secure connections (make requests to HTTPS sites)."
|
844 |
msgstr ""
|
845 |
|
|
|
|
|
846 |
#: src/Admin/Pages/TestTab.php:512
|
847 |
#: src/Admin/Pages/TestTab.php:560
|
848 |
msgid "Typically this error is returned when web server is not configured properly."
|
849 |
msgstr ""
|
850 |
|
|
|
851 |
#: src/Admin/Pages/TestTab.php:515
|
852 |
msgid "Contact your web hosting provider and inform them your site has an issue with SSL certificates."
|
853 |
msgstr ""
|
854 |
|
|
|
|
|
855 |
#: src/Admin/Pages/TestTab.php:516
|
856 |
#: src/Admin/Pages/TestTab.php:564
|
857 |
msgid "The exact error you can provide them is in the Error log, available at the bottom of this page."
|
858 |
msgstr ""
|
859 |
|
|
|
|
|
860 |
#: src/Admin/Pages/TestTab.php:517
|
861 |
#: src/Admin/Pages/TestTab.php:565
|
862 |
msgid "Ask them to resolve the issue then try again."
|
863 |
msgstr ""
|
864 |
|
|
|
865 |
#: src/Admin/Pages/TestTab.php:528
|
866 |
msgid "Could not connect to host."
|
867 |
msgstr ""
|
868 |
|
869 |
#. translators: %s - SMTP host address.
|
|
|
|
|
|
|
870 |
#: src/Admin/Pages/TestTab.php:531
|
871 |
#: src/Admin/Pages/TestTab.php:556
|
872 |
#: src/Admin/Pages/TestTab.php:658
|
873 |
msgid "This means your web server was unable to connect to %s."
|
874 |
msgstr ""
|
875 |
|
|
|
|
|
|
|
876 |
#: src/Admin/Pages/TestTab.php:534
|
877 |
#: src/Admin/Pages/TestTab.php:559
|
878 |
#: src/Admin/Pages/TestTab.php:661
|
879 |
msgid "This means your web server was unable to connect to the host server."
|
880 |
msgstr ""
|
881 |
|
|
|
882 |
#: src/Admin/Pages/TestTab.php:535
|
883 |
msgid "Typically this error is returned your web server is blocking the connections or the SMTP host denying the request."
|
884 |
msgstr ""
|
885 |
|
886 |
#. translators: %s - SMTP host address.
|
|
|
887 |
#: src/Admin/Pages/TestTab.php:539
|
888 |
msgid "Contact your web hosting provider and ask them to verify your server can connect to %s. Additionally, ask them if a firewall or security policy may be preventing the connection."
|
889 |
msgstr ""
|
890 |
|
|
|
891 |
#: src/Admin/Pages/TestTab.php:542
|
892 |
msgid "If using \"Other SMTP\" Mailer, triple check your SMTP settings including host address, email, and password."
|
893 |
msgstr ""
|
894 |
|
|
|
895 |
#: src/Admin/Pages/TestTab.php:543
|
896 |
msgid "If using \"Other SMTP\" Mailer, contact your SMTP host to confirm they are accepting outside connections with the settings you have configured (address, username, port, security, etc)."
|
897 |
msgstr ""
|
898 |
|
|
|
899 |
#: src/Admin/Pages/TestTab.php:553
|
900 |
msgid "Could not connect to your host."
|
901 |
msgstr ""
|
902 |
|
|
|
903 |
#: src/Admin/Pages/TestTab.php:563
|
904 |
msgid "Contact your web hosting provider and inform them you are having issues making outbound connections."
|
905 |
msgstr ""
|
906 |
|
|
|
907 |
#: src/Admin/Pages/TestTab.php:575
|
908 |
msgid "Could not authenticate your SMTP account."
|
909 |
msgstr ""
|
910 |
|
|
|
911 |
#: src/Admin/Pages/TestTab.php:576
|
912 |
msgid "This means we were able to connect to your SMTP host, but were not able to proceed using the email/password in the settings."
|
913 |
msgstr ""
|
914 |
|
|
|
915 |
#: src/Admin/Pages/TestTab.php:577
|
916 |
msgid "Typically this error is returned when the email or password is not correct or is not what the SMTP host is expecting."
|
917 |
msgstr ""
|
918 |
|
|
|
919 |
#: src/Admin/Pages/TestTab.php:580
|
920 |
msgid "Triple check your SMTP settings including host address, email, and password. If you have recently reset your password you will need to update the settings."
|
921 |
msgstr ""
|
922 |
|
|
|
|
|
923 |
#: src/Admin/Pages/TestTab.php:581
|
924 |
#: src/Admin/Pages/TestTab.php:686
|
925 |
msgid "Contact your SMTP host to confirm you are using the correct username and password."
|
926 |
msgstr ""
|
927 |
|
|
|
|
|
928 |
#: src/Admin/Pages/TestTab.php:582
|
929 |
#: src/Admin/Pages/TestTab.php:687
|
930 |
msgid "Verify with your SMTP host that your account has permissions to send emails using outside connections."
|
931 |
msgstr ""
|
932 |
|
|
|
933 |
#: src/Admin/Pages/TestTab.php:592
|
934 |
msgid "Error due to unsolicited and/or bulk e-mail."
|
935 |
msgstr ""
|
936 |
|
|
|
937 |
#: src/Admin/Pages/TestTab.php:593
|
938 |
msgid "This means the connection to your SMTP host was made successfully, but the host rejected the email."
|
939 |
msgstr ""
|
940 |
|
|
|
941 |
#: src/Admin/Pages/TestTab.php:594
|
942 |
msgid "Typically this error is returned when you are sending too many e-mails or e-mails that have been identified as spam."
|
943 |
msgstr ""
|
944 |
|
|
|
945 |
#: src/Admin/Pages/TestTab.php:597
|
946 |
msgid "Check the emails that are sending are sending individually. Example: email is not sending to 30 recipients. You can install any WordPress e-mail logging plugin to do that."
|
947 |
msgstr ""
|
948 |
|
|
|
949 |
#: src/Admin/Pages/TestTab.php:598
|
950 |
msgid "Contact your SMTP host to ask about sending/rate limits."
|
951 |
msgstr ""
|
952 |
|
|
|
953 |
#: src/Admin/Pages/TestTab.php:599
|
954 |
msgid "Verify with them your SMTP account is in good standing and your account has not been flagged."
|
955 |
msgstr ""
|
956 |
|
|
|
957 |
#: src/Admin/Pages/TestTab.php:609
|
958 |
msgid "Unauthenticated senders are not allowed."
|
959 |
msgstr ""
|
960 |
|
|
|
961 |
#: src/Admin/Pages/TestTab.php:610
|
962 |
msgid "This means the connection to your SMTP host was made successfully, but you should enable Authentication and provide correct Username and Password."
|
963 |
msgstr ""
|
964 |
|
|
|
965 |
#: src/Admin/Pages/TestTab.php:613
|
966 |
msgid "Go to WP Mail SMTP plugin Settings page."
|
967 |
msgstr ""
|
968 |
|
|
|
969 |
#: src/Admin/Pages/TestTab.php:614
|
970 |
msgid "Enable Authentication"
|
971 |
msgstr ""
|
972 |
|
|
|
973 |
#: src/Admin/Pages/TestTab.php:615
|
974 |
msgid "Enter correct SMTP Username (usually this is an email address) and Password in the appropriate fields."
|
975 |
msgstr ""
|
976 |
|
|
|
977 |
#: src/Admin/Pages/TestTab.php:627
|
978 |
msgid "Misconfigured server certificate."
|
979 |
msgstr ""
|
980 |
|
|
|
981 |
#: src/Admin/Pages/TestTab.php:628
|
982 |
msgid "This means OpenSSL on your server isn't able to verify the host certificate."
|
983 |
msgstr ""
|
984 |
|
|
|
985 |
#: src/Admin/Pages/TestTab.php:629
|
986 |
msgid "There are a few reasons why this is happening. It could be that the host certificate is misconfigured, or this server's OpenSSL is using an outdated CA bundle."
|
987 |
msgstr ""
|
988 |
|
|
|
989 |
#: src/Admin/Pages/TestTab.php:632
|
990 |
msgid "Verify that the host's SSL certificate is valid."
|
991 |
msgstr ""
|
992 |
|
993 |
#. translators: %s - URL to the PHP openssl manual
|
|
|
994 |
#: src/Admin/Pages/TestTab.php:635
|
995 |
msgid "Contact your hosting support, show them the \"full Error Log for debugging\" below and share this <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">link</a> with them."
|
996 |
msgstr ""
|
997 |
|
|
|
998 |
#: src/Admin/Pages/TestTab.php:655
|
999 |
msgid "Could not connect to the SMTP host."
|
1000 |
msgstr ""
|
1001 |
|
|
|
|
|
1002 |
#: src/Admin/Pages/TestTab.php:662
|
1003 |
#: src/Admin/Pages/TestTab.php:1048
|
1004 |
msgid "Typically this error is returned for one of the following reasons:"
|
1005 |
msgstr ""
|
1006 |
|
|
|
1007 |
#: src/Admin/Pages/TestTab.php:663
|
1008 |
msgid "SMTP settings are incorrect (wrong port, security setting, incorrect host)."
|
1009 |
msgstr ""
|
1010 |
|
|
|
|
|
1011 |
#: src/Admin/Pages/TestTab.php:664
|
1012 |
#: src/Admin/Pages/TestTab.php:1050
|
1013 |
msgid "Your web server is blocking the connection."
|
1014 |
msgstr ""
|
1015 |
|
|
|
1016 |
#: src/Admin/Pages/TestTab.php:665
|
1017 |
msgid "Your SMTP host is rejecting the connection."
|
1018 |
msgstr ""
|
1019 |
|
|
|
1020 |
#: src/Admin/Pages/TestTab.php:668
|
1021 |
msgid "Triple check your SMTP settings including host address, email, and password, port, and security."
|
1022 |
msgstr ""
|
1023 |
|
1024 |
#. translators: %1$s - SMTP host address, %2$s - SMTP port, %3$s - SMTP encryption.
|
|
|
1025 |
#: src/Admin/Pages/TestTab.php:671
|
1026 |
msgid "Contact your web hosting provider and ask them to verify your server can connect to %1$s on port %2$s using %3$s encryption. Additionally, ask them if a firewall or security policy may be preventing the connection - many shared hosts block certain ports.<br><strong>Note: this is the most common cause of this issue.</strong>"
|
1027 |
msgstr ""
|
1028 |
|
|
|
1029 |
#: src/Admin/Pages/TestTab.php:684
|
1030 |
msgid "no"
|
1031 |
msgstr ""
|
1032 |
|
|
|
|
|
|
|
1033 |
#: src/Admin/Pages/TestTab.php:697
|
1034 |
#: src/Admin/Pages/TestTab.php:712
|
1035 |
#: src/Admin/Pages/TestTab.php:728
|
1036 |
msgid "Mailgun failed."
|
1037 |
msgstr ""
|
1038 |
|
|
|
1039 |
#: src/Admin/Pages/TestTab.php:698
|
1040 |
msgid "It seems that you forgot to activate your Mailgun account."
|
1041 |
msgstr ""
|
1042 |
|
|
|
1043 |
#: src/Admin/Pages/TestTab.php:701
|
1044 |
msgid "Check your inbox you used to create a Mailgun account. Click the activation link in an email from Mailgun."
|
1045 |
msgstr ""
|
1046 |
|
|
|
1047 |
#: src/Admin/Pages/TestTab.php:702
|
1048 |
msgid "If you do not see activation email, go to your Mailgun control panel and resend the activation email."
|
1049 |
msgstr ""
|
1050 |
|
|
|
1051 |
#: src/Admin/Pages/TestTab.php:713
|
1052 |
msgid "Typically this error is because there is an issue with your Mailgun settings, in many cases the API key."
|
1053 |
msgstr ""
|
1054 |
|
|
|
1055 |
#: src/Admin/Pages/TestTab.php:716
|
1056 |
msgid "Verify your API key is correct."
|
1057 |
msgstr ""
|
1058 |
|
|
|
1059 |
#: src/Admin/Pages/TestTab.php:717
|
1060 |
msgid "Go to your Mailgun account and view your API key."
|
1061 |
msgstr ""
|
1062 |
|
|
|
1063 |
#: src/Admin/Pages/TestTab.php:718
|
1064 |
msgid "Note that the API key includes the \"key\" prefix, so make sure that it is in the WP Mail SMTP Mailgun API setting."
|
1065 |
msgstr ""
|
1066 |
|
|
|
1067 |
#: src/Admin/Pages/TestTab.php:729
|
1068 |
msgid "Your Mailgun account does not have access to send emails."
|
1069 |
msgstr ""
|
1070 |
|
|
|
1071 |
#: src/Admin/Pages/TestTab.php:730
|
1072 |
msgid "Typically this error is because you have not set up and/or complete domain name verification for your Mailgun account."
|
1073 |
msgstr ""
|
1074 |
|
1075 |
#. translators: %s - Mailgun documentation URL.
|
|
|
1076 |
#: src/Admin/Pages/TestTab.php:735
|
1077 |
msgid "Go to our how-to guide for setting up <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">Mailgun with WP Mail SMTP</a>."
|
1078 |
msgstr ""
|
1079 |
|
|
|
1080 |
#: src/Admin/Pages/TestTab.php:746
|
1081 |
msgid "Complete the steps in section \"2. Verify Your Domain\"."
|
1082 |
msgstr ""
|
1083 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1084 |
#: src/Admin/Pages/TestTab.php:756
|
1085 |
#: src/Admin/Pages/TestTab.php:805
|
1086 |
#: src/Admin/Pages/TestTab.php:825
|
1091 |
msgid "Google API Error."
|
1092 |
msgstr ""
|
1093 |
|
|
|
1094 |
#: src/Admin/Pages/TestTab.php:757
|
1095 |
msgid "You have not properly configured Gmail mailer."
|
1096 |
msgstr ""
|
1097 |
|
|
|
1098 |
#: src/Admin/Pages/TestTab.php:758
|
1099 |
msgid "Make sure that you have clicked the \"Allow plugin to send emails using your Google account\" button under Gmail settings."
|
1100 |
msgstr ""
|
1101 |
|
|
|
1102 |
#: src/Admin/Pages/TestTab.php:761
|
1103 |
msgid "Go to plugin Settings page and click the \"Allow plugin to send emails using your Google account\" button."
|
1104 |
msgstr ""
|
1105 |
|
|
|
1106 |
#: src/Admin/Pages/TestTab.php:762
|
1107 |
msgid "After the click you should be redirected to a Gmail authorization screen, where you will be asked a permission to send emails on your behalf."
|
1108 |
msgstr ""
|
1109 |
|
|
|
1110 |
#: src/Admin/Pages/TestTab.php:763
|
1111 |
msgid "Please click \"Agree\", if you see that button. If not - you will need to enable less secure apps first:"
|
1112 |
msgstr ""
|
1113 |
|
1114 |
#. translators: %s - Google support article URL.
|
|
|
1115 |
#: src/Admin/Pages/TestTab.php:768
|
1116 |
msgid "if you are using regular Gmail account, please <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">read this article</a> to proceed."
|
1117 |
msgstr ""
|
1118 |
|
1119 |
#. translators: %s - Google support article URL.
|
|
|
1120 |
#: src/Admin/Pages/TestTab.php:783
|
1121 |
msgid "if you are using G Suite, please <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">read this article</a> to proceed."
|
1122 |
msgstr ""
|
1123 |
|
|
|
1124 |
#: src/Admin/Pages/TestTab.php:806
|
1125 |
msgid "Typically this error is because address the email was sent to is invalid or was empty."
|
1126 |
msgstr ""
|
1127 |
|
|
|
1128 |
#: src/Admin/Pages/TestTab.php:809
|
1129 |
msgid "Check the \"Send To\" email address used and confirm it is a valid email and was not empty."
|
1130 |
msgstr ""
|
1131 |
|
1132 |
#. translators: 1 - correct email address example. 2 - incorrect email address example.
|
|
|
1133 |
#: src/Admin/Pages/TestTab.php:811
|
1134 |
msgid "It should be something like this: %1$s. These are incorrect values: %2$s."
|
1135 |
msgstr ""
|
1136 |
|
|
|
1137 |
#: src/Admin/Pages/TestTab.php:815
|
1138 |
msgid "Make sure that the generated email has a TO header, useful when you are responsible for email creation."
|
1139 |
msgstr ""
|
1140 |
|
|
|
1141 |
#: src/Admin/Pages/TestTab.php:826
|
1142 |
msgid "Unfortunately, this error can be due to many different reasons."
|
1143 |
msgstr ""
|
1144 |
|
1145 |
#. translators: %s - Blog article URL.
|
|
|
1146 |
#: src/Admin/Pages/TestTab.php:831
|
1147 |
msgid "Please <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">read this article</a> to learn more about what can cause this error and how it can be resolved."
|
1148 |
msgstr ""
|
1149 |
|
|
|
1150 |
#: src/Admin/Pages/TestTab.php:852
|
1151 |
msgid "Authentication code that Google returned to you has already been used on your previous auth attempt."
|
1152 |
msgstr ""
|
1153 |
|
|
|
1154 |
#: src/Admin/Pages/TestTab.php:855
|
1155 |
msgid "Make sure that you are not trying to manually clean up the plugin options to retry the \"Allow...\" step."
|
1156 |
msgstr ""
|
1157 |
|
|
|
1158 |
#: src/Admin/Pages/TestTab.php:856
|
1159 |
msgid "Reinstall the plugin with clean plugin data turned on on Misc page. This will remove all the plugin options and you will be safe to retry."
|
1160 |
msgstr ""
|
1161 |
|
|
|
1162 |
#: src/Admin/Pages/TestTab.php:857
|
1163 |
msgid "Make sure there is no aggressive caching on site admin area pages or try to clean cache between attempts."
|
1164 |
msgstr ""
|
1165 |
|
|
|
1166 |
#: src/Admin/Pages/TestTab.php:868
|
1167 |
msgid "There are various reasons for that, please review the steps below."
|
1168 |
msgstr ""
|
1169 |
|
1170 |
#. translators: %s - Google G Suite Admin area URL.
|
|
|
1171 |
#: src/Admin/Pages/TestTab.php:873
|
1172 |
msgid "Make sure that your G Suite trial period has not expired. You can check the status <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>."
|
1173 |
msgstr ""
|
1174 |
|
1175 |
#. translators: %s - Google G Suite Admin area URL.
|
|
|
1176 |
#: src/Admin/Pages/TestTab.php:886
|
1177 |
msgid "Make sure that Gmail app in your G Suite is actually enabled. You can check that in Apps list in <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">G Suite Admin</a> area."
|
1178 |
msgstr ""
|
1179 |
|
1180 |
#. translators: %s - Google Developers Console URL.
|
|
|
1181 |
#: src/Admin/Pages/TestTab.php:899
|
1182 |
msgid "Make sure that you have Gmail API enabled, and you can do that <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>."
|
1183 |
msgstr ""
|
1184 |
|
|
|
|
|
1185 |
#: src/Admin/Pages/TestTab.php:922
|
1186 |
#: src/Admin/Pages/TestTab.php:949
|
1187 |
msgid "Make sure that the used Client ID/Secret correspond to a proper project that has Gmail API enabled."
|
1188 |
msgstr ""
|
1189 |
|
1190 |
#. translators: %s - Gmail documentation URL.
|
|
|
1191 |
#: src/Admin/Pages/TestTab.php:925
|
1192 |
msgid "Please follow our <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">Gmail tutorial</a> to be sure that all the correct project and data is applied."
|
1193 |
msgstr ""
|
1194 |
|
|
|
1195 |
#: src/Admin/Pages/TestTab.php:946
|
1196 |
msgid "You may have added a new API to a project"
|
1197 |
msgstr ""
|
1198 |
|
|
|
1199 |
#: src/Admin/Pages/TestTab.php:950
|
1200 |
msgid "Try to use a separate project for your emails, so the project has only 1 Gmail API in it enabled. You will need to remove the old project and create a new one from scratch."
|
1201 |
msgstr ""
|
1202 |
|
|
|
1203 |
#: src/Admin/Pages/TestTab.php:960
|
1204 |
msgid "SMTP.com API Error."
|
1205 |
msgstr ""
|
1206 |
|
|
|
1207 |
#: src/Admin/Pages/TestTab.php:961
|
1208 |
msgid "Your Sender Name option is incorrect."
|
1209 |
msgstr ""
|
1210 |
|
|
|
1211 |
#: src/Admin/Pages/TestTab.php:964
|
1212 |
msgid "Please make sure you entered an accurate Sender Name in WP Mail SMTP plugin settings."
|
1213 |
msgstr ""
|
1214 |
|
|
|
1215 |
#: src/Admin/Pages/TestTab.php:974
|
1216 |
msgid "GuzzleHttp requirements."
|
1217 |
msgstr ""
|
1218 |
|
|
|
1219 |
#: src/Admin/Pages/TestTab.php:975
|
1220 |
msgid "GuzzleHttp requires cURL, the allow_url_fopen ini setting, or a custom HTTP handler."
|
1221 |
msgstr ""
|
1222 |
|
|
|
1223 |
#: src/Admin/Pages/TestTab.php:978
|
1224 |
msgid "Edit your php.ini file on your hosting server."
|
1225 |
msgstr ""
|
1226 |
|
|
|
1227 |
#: src/Admin/Pages/TestTab.php:979
|
1228 |
msgid "(Recommended) Enable PHP extension: cURL, by adding \"extension=curl\" to the php.ini file (without the quotation marks) OR"
|
1229 |
msgstr ""
|
1230 |
|
|
|
1231 |
#: src/Admin/Pages/TestTab.php:980
|
1232 |
msgid "(If cURL can't be enabled on your hosting server) Enable PHP setting: allow_url_fopen, by adding \"allow_url_fopen = On\" to the php.ini file (without the quotation marks)"
|
1233 |
msgstr ""
|
1234 |
|
|
|
1235 |
#: src/Admin/Pages/TestTab.php:981
|
1236 |
msgid "If you don't know how to do the above we strongly suggest contacting your hosting support and provide them the \"full Error Log for debugging\" below and these steps. They should be able to fix this issue for you."
|
1237 |
msgstr ""
|
1238 |
|
|
|
1239 |
#: src/Admin/Pages/TestTab.php:1003
|
1240 |
msgid "PCRE library issue"
|
1241 |
msgstr ""
|
1242 |
|
|
|
1243 |
#: src/Admin/Pages/TestTab.php:1004
|
1244 |
msgid "It looks like your server is running PHP version 7.4.x with an outdated PCRE library (libpcre2) that has a known issue with email address validation."
|
1245 |
msgstr ""
|
1246 |
|
|
|
1247 |
#: src/Admin/Pages/TestTab.php:1005
|
1248 |
msgid "There is a known issue with PHP version 7.4.x, when using libpcre2 library version lower than 10.33."
|
1249 |
msgstr ""
|
1250 |
|
|
|
1251 |
#: src/Admin/Pages/TestTab.php:1008
|
1252 |
msgid "Contact your web hosting provider and inform them you are having issues with libpcre2 library on PHP 7.4."
|
1253 |
msgstr ""
|
1254 |
|
|
|
1255 |
#: src/Admin/Pages/TestTab.php:1009
|
1256 |
msgid "They should be able to resolve this issue for you."
|
1257 |
msgstr ""
|
1258 |
|
|
|
1259 |
#: src/Admin/Pages/TestTab.php:1010
|
1260 |
msgid "For a quick fix, until your web hosting resolves this, you can downgrade to PHP version 7.3 on your server."
|
1261 |
msgstr ""
|
1262 |
|
|
|
1263 |
#: src/Admin/Pages/TestTab.php:1046
|
1264 |
msgid "An issue was detected."
|
1265 |
msgstr ""
|
1266 |
|
|
|
1267 |
#: src/Admin/Pages/TestTab.php:1047
|
1268 |
msgid "This means your test email was unable to be sent."
|
1269 |
msgstr ""
|
1270 |
|
|
|
1271 |
#: src/Admin/Pages/TestTab.php:1049
|
1272 |
msgid "Plugin settings are incorrect (wrong SMTP settings, invalid Mailer configuration, etc)."
|
1273 |
msgstr ""
|
1274 |
|
|
|
1275 |
#: src/Admin/Pages/TestTab.php:1051
|
1276 |
msgid "Your host is rejecting the connection."
|
1277 |
msgstr ""
|
1278 |
|
|
|
1279 |
#: src/Admin/Pages/TestTab.php:1054
|
1280 |
msgid "Triple check the plugin settings, consider reconfiguring to make sure everything is correct (eg bad copy and paste)."
|
1281 |
msgstr ""
|
1282 |
|
|
|
1283 |
#: src/Admin/Pages/TestTab.php:1056
|
1284 |
msgid "Contact your web hosting provider and ask them to verify your server can make outside connections. Additionally, ask them if a firewall or security policy may be preventing the connection - many shared hosts block certain ports.<br><strong>Note: this is the most common cause of this issue.</strong>"
|
1285 |
msgstr ""
|
1286 |
|
|
|
1287 |
#: src/Admin/Pages/TestTab.php:1062
|
1288 |
msgid "Try using a different mailer."
|
1289 |
msgstr ""
|
1290 |
|
|
|
1291 |
#: src/Admin/Pages/TestTab.php:1081
|
1292 |
msgid "There was a problem while sending the test email."
|
1293 |
msgstr ""
|
1294 |
|
|
|
1295 |
#: src/Admin/Pages/TestTab.php:1091
|
1296 |
msgid "Recommended next steps:"
|
1297 |
msgstr ""
|
1298 |
|
|
|
1299 |
#: src/Admin/Pages/TestTab.php:1101
|
1300 |
msgid "Need support?"
|
1301 |
msgstr ""
|
1302 |
|
1303 |
#. translators: %s - WPMailSMTP.com account area link.
|
|
|
1304 |
#: src/Admin/Pages/TestTab.php:1109
|
1305 |
msgid "As a WP Mail SMTP Pro user you have access to WP Mail SMTP priority support. Please log in to your WPMailSMTP.com account and <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">submit a support ticket</a>."
|
1306 |
msgstr ""
|
1307 |
|
|
|
1308 |
#: src/Admin/Pages/TestTab.php:1126
|
1309 |
msgid "WP Mail SMTP is a free plugin, and the team behind WPForms maintains it to give back to the WordPress community."
|
1310 |
msgstr ""
|
1311 |
|
1312 |
#. translators: %s - WPMailSMTP.com URL.
|
|
|
1313 |
#: src/Admin/Pages/TestTab.php:1133
|
1314 |
msgid "To access our world class support, please <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">upgrade to WP Mail SMTP Pro</a>. Along with getting expert support, you will also get Notification controls, Email Logging, and integrations for Amazon SES, Office 365, and Outlook.com."
|
1315 |
msgstr ""
|
1316 |
|
|
|
1317 |
#: src/Admin/Pages/TestTab.php:1148
|
1318 |
msgid "Additionally, you can take advantage of our White Glove Setup. Sit back and relax while we handle everything for you! If you simply don't have time or maybe you feel a bit in over your head - we got you covered."
|
1319 |
msgstr ""
|
1320 |
|
|
|
1321 |
#: src/Admin/Pages/TestTab.php:1154
|
1322 |
msgid "As a valued WP Mail SMTP user, you will get <span class=\"price-off\">$50 off regular pricing</span>, automatically applied at checkout!"
|
1323 |
msgstr ""
|
1324 |
|
1325 |
#. translators: %1$s - WP Mail SMTP support policy URL, %2$s - WP Mail SMTP support forum URL, %3$s - WPMailSMTP.com URL.
|
|
|
1326 |
#: src/Admin/Pages/TestTab.php:1168
|
1327 |
msgid "Alternatively, we also offer <a href=\"%1$s\" target=\"_blank\" rel=\"noopener noreferrer\">limited support</a> on the WordPress.org support forums. You can <a href=\"%2$s\" target=\"_blank\" rel=\"noopener noreferrer\">create a support thread</a> there, but please understand that free support is not guaranteed and is limited to simple issues. If you have an urgent or complex issue, then please consider <a href=\"%3$s\" target=\"_blank\" rel=\"noopener noreferrer\">upgrading to WP Mail SMTP Pro</a> to access our priority support ticket system."
|
1328 |
msgstr ""
|
1329 |
|
|
|
1330 |
#: src/Admin/Pages/TestTab.php:1189
|
1331 |
msgid "Click here to view the full Error Log for debugging"
|
1332 |
msgstr ""
|
1333 |
|
|
|
1334 |
#: src/Admin/Pages/TestTab.php:1198
|
1335 |
msgid "Please copy only the content of the error debug message above, identified with an orange left border, into the support forum topic if you experience any issues."
|
1336 |
msgstr ""
|
1337 |
|
|
|
1338 |
#: src/Admin/Review.php:119
|
1339 |
msgid "Are you enjoying WP Mail SMTP?"
|
1340 |
msgstr ""
|
1341 |
|
|
|
1342 |
#: src/Admin/Review.php:121
|
1343 |
msgid "Yes"
|
1344 |
msgstr ""
|
1345 |
|
|
|
1346 |
#: src/Admin/Review.php:122
|
1347 |
msgid "Not Really"
|
1348 |
msgstr ""
|
1349 |
|
|
|
1350 |
#: src/Admin/Review.php:126
|
1351 |
msgid "We're sorry to hear you aren't enjoying WP Mail SMTP. We would love a chance to improve. Could you take a minute and let us know what we can do better?"
|
1352 |
msgstr ""
|
1353 |
|
|
|
1354 |
#: src/Admin/Review.php:129
|
1355 |
msgid "Give Feedback"
|
1356 |
msgstr ""
|
1357 |
|
|
|
1358 |
#: src/Admin/Review.php:132
|
1359 |
msgid "No thanks"
|
1360 |
msgstr ""
|
1361 |
|
|
|
1362 |
#: src/Admin/Review.php:137
|
1363 |
msgid "That’s awesome! Could you please do me a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?"
|
1364 |
msgstr ""
|
1365 |
|
|
|
1366 |
#: src/Admin/Review.php:138
|
1367 |
msgid "~ Jared Atchison<br>Lead Developer, WP Mail SMTP"
|
1368 |
msgstr ""
|
1369 |
|
|
|
1370 |
#: src/Admin/Review.php:141
|
1371 |
msgid "Ok, you deserve it"
|
1372 |
msgstr ""
|
1373 |
|
|
|
1374 |
#: src/Admin/Review.php:143
|
1375 |
msgid "Nope, maybe later"
|
1376 |
msgstr ""
|
1377 |
|
|
|
1378 |
#: src/Admin/Review.php:144
|
1379 |
msgid "I already did"
|
1380 |
msgstr ""
|
1381 |
|
1382 |
#. translators: %1$s - Plugin name causing conflict; %2$s - Plugin name causing conflict.
|
|
|
1383 |
#: src/Conflicts.php:159
|
1384 |
msgid "Heads up! WP Mail SMTP has detected %1$s is activated. Please deactivate %2$s to prevent conflicts."
|
1385 |
msgstr ""
|
1386 |
|
1387 |
#. translators: %1$s - WP Mail SMTP plugin name; %2$s - WPMailSMTP.com URL to a related doc.
|
|
|
1388 |
#: src/Core.php:392
|
1389 |
msgid "Your site is running an outdated version of PHP that is no longer supported and may cause issues with %1$s. <a href=\"%2$s\" target=\"_blank\" rel=\"noopener noreferrer\">Read more</a> for additional information."
|
1390 |
msgstr ""
|
1391 |
|
|
|
1392 |
#: src/Core.php:406
|
1393 |
msgid "<strong>Please Note:</strong> Support for PHP 5.5 will be discontinued in 2020. After this, if no further action is taken, WP Mail SMTP functionality will be disabled."
|
1394 |
msgstr ""
|
1395 |
|
1396 |
#. translators: %s - plugin name and its version.
|
|
|
1397 |
#: src/Core.php:440
|
1398 |
msgid "<strong>EMAILING DISABLED:</strong> The %s is currently blocking all emails from being sent."
|
1399 |
msgstr ""
|
1400 |
|
1401 |
#. translators: %1$s - constant name; %2$s - constant value.
|
|
|
1402 |
#: src/Core.php:451
|
1403 |
msgid "To send emails, change the value of the %1$s constant to %2$s."
|
1404 |
msgstr ""
|
1405 |
|
1406 |
#. translators: %s - plugin Misc settings page URL.
|
|
|
1407 |
#: src/Core.php:462
|
1408 |
msgid "To send emails, go to plugin <a href=\"%s\">Misc settings</a> and disable the \"Do Not Send\" option."
|
1409 |
msgstr ""
|
1410 |
|
1411 |
#. translators: %s - plugin name and its version.
|
|
|
1412 |
#: src/Core.php:506
|
1413 |
msgid "<strong>EMAIL DELIVERY ERROR:</strong> the plugin %s logged this error during the last time it tried to send an email:"
|
1414 |
msgstr ""
|
1415 |
|
|
|
1416 |
#: src/Core.php:536
|
1417 |
msgid "Consider running an email test after fixing it."
|
1418 |
msgstr ""
|
1419 |
|
1420 |
+
#: src/Core.php:979
|
1421 |
+
msgid "Loading"
|
1422 |
+
msgstr ""
|
1423 |
+
|
1424 |
#. translators: %1$s - WP Mail SMTP, %2$s - error message.
|
|
|
1425 |
#: src/Migration.php:137
|
1426 |
msgid "There was an error while upgrading the database. Please contact %1$s support with this information: %2$s."
|
1427 |
msgstr ""
|
1428 |
|
1429 |
+
#: src/Pro/SiteHealth.php:58
|
1430 |
+
msgid "Is wpmailsmtp.com reachable?"
|
1431 |
+
msgstr ""
|
1432 |
+
|
1433 |
#: src/Providers/AmazonSES/Options.php:25
|
1434 |
msgid "Amazon SES"
|
1435 |
msgstr ""
|
1436 |
|
|
|
1437 |
#: src/Providers/AmazonSES/Options.php:39
|
1438 |
msgid "We're sorry, the Amazon SES mailer is not available on your plan. Please upgrade to the PRO plan to unlock all these awesome features."
|
1439 |
msgstr ""
|
1440 |
|
1441 |
+
#: src/Providers/Gmail/Auth.php:184
|
|
|
1442 |
msgid "There was an error while processing the Google authentication request. Please make sure that you have Client ID and Client Secret both valid and saved."
|
1443 |
msgstr ""
|
1444 |
|
1445 |
+
#: src/Providers/Gmail/Mailer.php:257
|
|
|
1446 |
msgid "Please re-grant Google app permissions!"
|
1447 |
msgstr ""
|
1448 |
|
1449 |
+
#: src/Providers/Gmail/Mailer.php:258
|
|
|
1450 |
msgid "Go to WP Mail SMTP plugin settings page. Click the “Remove Connection” button."
|
1451 |
msgstr ""
|
1452 |
|
1453 |
+
#: src/Providers/Gmail/Mailer.php:259
|
|
|
1454 |
msgid "Then click the “Allow plugin to send emails using your Google account” button and re-enable access."
|
1455 |
msgstr ""
|
1456 |
|
|
|
1457 |
#: src/Providers/Gmail/Options.php:33
|
1458 |
msgid "Gmail"
|
1459 |
msgstr ""
|
1460 |
|
1461 |
#. translators: %s - URL to our Gmail doc.
|
|
|
1462 |
#: src/Providers/Gmail/Options.php:36
|
1463 |
msgid "Send emails using your Gmail or G Suite (formerly Google Apps) account, all while keeping your login credentials safe. Other Google SMTP methods require enabling less secure apps in your account and entering your password. However, this integration uses the Google API to improve email delivery issues while keeping your site secure.<br><br>Read our <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">Gmail documentation</a> to learn how to configure Gmail or G Suite."
|
1464 |
msgstr ""
|
1465 |
|
|
|
1466 |
#: src/Providers/Gmail/Options.php:49
|
1467 |
msgid "The Gmail mailer works well for sites that send low numbers of emails. However, Gmail's API has rate limitations and a number of additional restrictions that can lead to challenges during setup. If you expect to send a high volume of emails, or if you find that your web host is not compatible with the Gmail API restrictions, then we recommend considering a different mailer option."
|
1468 |
msgstr ""
|
1469 |
|
|
|
1470 |
#: src/Providers/Gmail/Options.php:80
|
1471 |
msgid "Client ID"
|
1472 |
msgstr ""
|
1473 |
|
|
|
1474 |
#: src/Providers/Gmail/Options.php:95
|
1475 |
msgid "Client Secret"
|
1476 |
msgstr ""
|
1477 |
|
|
|
1478 |
#: src/Providers/Gmail/Options.php:117
|
1479 |
msgid "Authorized redirect URI"
|
1480 |
msgstr ""
|
1481 |
|
|
|
1482 |
#: src/Providers/Gmail/Options.php:125
|
1483 |
msgid "Copy URL to clipboard"
|
1484 |
msgstr ""
|
1485 |
|
|
|
1486 |
#: src/Providers/Gmail/Options.php:130
|
1487 |
msgid "Please copy this URL into the \"Authorized redirect URIs\" field of your Google web application."
|
1488 |
msgstr ""
|
1489 |
|
|
|
1490 |
#: src/Providers/Gmail/Options.php:139
|
1491 |
msgid "Authorization"
|
1492 |
msgstr ""
|
1493 |
|
|
|
1494 |
#: src/Providers/Gmail/Options.php:167
|
1495 |
msgid "Allow plugin to send emails using your Google account"
|
1496 |
msgstr ""
|
1497 |
|
|
|
1498 |
#: src/Providers/Gmail/Options.php:170
|
1499 |
msgid "Click the button above to confirm authorization."
|
1500 |
msgstr ""
|
1501 |
|
|
|
1502 |
#: src/Providers/Gmail/Options.php:176
|
1503 |
msgid "Remove Connection"
|
1504 |
msgstr ""
|
1505 |
|
1506 |
#. translators: %s - email address, as received from Google API.
|
|
|
1507 |
#: src/Providers/Gmail/Options.php:185
|
1508 |
msgid "Connected as %s"
|
1509 |
msgstr ""
|
1510 |
|
1511 |
#. translators: %s - URL to Google Gmail alias documentation page.
|
|
|
1512 |
#: src/Providers/Gmail/Options.php:195
|
1513 |
msgid "If you want to use a different From Email address you can set-up a Google email alias. <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">Follow these instructions</a> and then select the From Email at the top of this page."
|
1514 |
msgstr ""
|
1515 |
|
|
|
1516 |
#: src/Providers/Gmail/Options.php:209
|
1517 |
msgid "Removing the connection will give you an ability to redo the connection or link to another Google account."
|
1518 |
msgstr ""
|
1519 |
|
|
|
1520 |
#: src/Providers/Gmail/Options.php:217
|
1521 |
msgid "You need to save settings with Client ID and Client Secret before you can proceed."
|
1522 |
msgstr ""
|
1523 |
|
|
|
1524 |
#: src/Providers/Mail/Options.php:25
|
1525 |
msgid "Default (none)"
|
1526 |
msgstr ""
|
1527 |
|
|
|
1528 |
#: src/Providers/Mail/Options.php:37
|
1529 |
msgid "You currently have the native WordPress option selected. Please select any other Mailer option above to continue the setup."
|
1530 |
msgstr ""
|
1531 |
|
1532 |
+
#: src/Providers/Mailgun/Mailer.php:391
|
|
|
1533 |
msgid "Mailgun API request was successful, but it could not queue the email for delivery."
|
1534 |
msgstr ""
|
1535 |
|
1536 |
+
#: src/Providers/Mailgun/Mailer.php:392
|
|
|
1537 |
msgid "This could point to an incorrect Domain Name in the plugin settings."
|
1538 |
msgstr ""
|
1539 |
|
1540 |
+
#: src/Providers/Mailgun/Mailer.php:393
|
|
|
1541 |
msgid "Please check the WP Mail SMTP plugin settings and make sure the Mailgun Domain Name setting is correct."
|
1542 |
msgstr ""
|
1543 |
|
|
|
1544 |
#: src/Providers/Mailgun/Options.php:25
|
1545 |
msgid "Mailgun"
|
1546 |
msgstr ""
|
1547 |
|
1548 |
#. translators: %1$s - opening link tag; %2$s - closing link tag; %3$s - opening link tag; %4$s - closing link tag.
|
|
|
1549 |
#: src/Providers/Mailgun/Options.php:29
|
1550 |
msgid "%1$sMailgun%2$s is one of the leading transactional email services trusted by over 150,000+ businesses. They provide 5,000 free emails per month for 3 months.<br><br>Read our %3$sMailgun documentation%4$s to learn how to configure Mailgun and improve your email deliverability."
|
1551 |
msgstr ""
|
1552 |
|
|
|
1553 |
#: src/Providers/Mailgun/Options.php:57
|
1554 |
msgid "Private API Key"
|
1555 |
msgstr ""
|
1556 |
|
1557 |
#. translators: %s - API key link.
|
|
|
1558 |
#: src/Providers/Mailgun/Options.php:76
|
1559 |
msgid "Follow this link to get an API Key from Mailgun: %s."
|
1560 |
msgstr ""
|
1561 |
|
|
|
1562 |
#: src/Providers/Mailgun/Options.php:78
|
1563 |
msgid "Get a Private API Key"
|
1564 |
msgstr ""
|
1565 |
|
|
|
1566 |
#: src/Providers/Mailgun/Options.php:89
|
1567 |
msgid "Domain Name"
|
1568 |
msgstr ""
|
1569 |
|
1570 |
#. translators: %s - Domain Name link.
|
|
|
1571 |
#: src/Providers/Mailgun/Options.php:101
|
1572 |
msgid "Follow this link to get a Domain Name from Mailgun: %s."
|
1573 |
msgstr ""
|
1574 |
|
|
|
1575 |
#: src/Providers/Mailgun/Options.php:103
|
1576 |
msgid "Get a Domain Name"
|
1577 |
msgstr ""
|
1578 |
|
|
|
1579 |
#: src/Providers/Mailgun/Options.php:114
|
1580 |
msgid "Region"
|
1581 |
msgstr ""
|
1582 |
|
|
|
1583 |
#: src/Providers/Mailgun/Options.php:124
|
1584 |
msgid "US"
|
1585 |
msgstr ""
|
1586 |
|
|
|
1587 |
#: src/Providers/Mailgun/Options.php:133
|
1588 |
msgid "EU"
|
1589 |
msgstr ""
|
1590 |
|
|
|
1591 |
#: src/Providers/Mailgun/Options.php:137
|
1592 |
msgid "Define which endpoint you want to use for sending messages."
|
1593 |
msgstr ""
|
1594 |
|
|
|
1595 |
#: src/Providers/Mailgun/Options.php:138
|
1596 |
msgid "If you are operating under EU laws, you may be required to use EU region."
|
1597 |
msgstr ""
|
1598 |
|
1599 |
#. translators: %s - URL to Mailgun.com page.
|
|
|
1600 |
#: src/Providers/Mailgun/Options.php:143
|
1601 |
msgid "<a href=\"%s\" rel=\"\" target=\"_blank\">More information</a> on Mailgun.com."
|
1602 |
msgstr ""
|
1603 |
|
|
|
1604 |
#: src/Providers/OptionsAbstract.php:198
|
1605 |
msgid "SMTP Host"
|
1606 |
msgstr ""
|
1607 |
|
|
|
1608 |
#: src/Providers/OptionsAbstract.php:212
|
1609 |
msgid "Encryption"
|
1610 |
msgstr ""
|
1611 |
|
|
|
1612 |
#: src/Providers/OptionsAbstract.php:222
|
1613 |
msgid "None"
|
1614 |
msgstr ""
|
1615 |
|
|
|
1616 |
#: src/Providers/OptionsAbstract.php:231
|
1617 |
msgid "SSL"
|
1618 |
msgstr ""
|
1619 |
|
|
|
1620 |
#: src/Providers/OptionsAbstract.php:240
|
1621 |
msgid "TLS"
|
1622 |
msgstr ""
|
1623 |
|
|
|
1624 |
#: src/Providers/OptionsAbstract.php:244
|
1625 |
msgid "For most servers TLS is the recommended option. If your SMTP provider offers both SSL and TLS options, we recommend using TLS."
|
1626 |
msgstr ""
|
1627 |
|
|
|
1628 |
#: src/Providers/OptionsAbstract.php:252
|
1629 |
msgid "SMTP Port"
|
1630 |
msgstr ""
|
1631 |
|
|
|
1632 |
#: src/Providers/OptionsAbstract.php:266
|
1633 |
msgid "Auto TLS"
|
1634 |
msgstr ""
|
1635 |
|
|
|
1636 |
#: src/Providers/OptionsAbstract.php:280
|
1637 |
msgid "By default TLS encryption is automatically used if the server supports it, which is recommended. In some cases, due to server misconfigurations, this can cause issues and may need to be disabled."
|
1638 |
msgstr ""
|
1639 |
|
|
|
1640 |
#: src/Providers/OptionsAbstract.php:288
|
1641 |
msgid "Authentication"
|
1642 |
msgstr ""
|
1643 |
|
|
|
1644 |
#: src/Providers/OptionsAbstract.php:307
|
1645 |
msgid "SMTP Username"
|
1646 |
msgstr ""
|
1647 |
|
|
|
1648 |
#: src/Providers/OptionsAbstract.php:321
|
1649 |
msgid "SMTP Password"
|
1650 |
msgstr ""
|
1651 |
|
1652 |
#. translators: %s - constant name: WPMS_SMTP_PASS.
|
|
|
1653 |
#: src/Providers/OptionsAbstract.php:333
|
1654 |
msgid "To change the password you need to change the value of the constant there: %s"
|
1655 |
msgstr ""
|
1656 |
|
1657 |
#. translators: %1$s - wp-config.php file, %2$s - WPMS_ON constant name.
|
|
|
1658 |
#: src/Providers/OptionsAbstract.php:341
|
1659 |
msgid "If you want to disable the use of constants, find in %1$s file the constant %2$s and turn if off:"
|
1660 |
msgstr ""
|
1661 |
|
|
|
1662 |
#: src/Providers/OptionsAbstract.php:351
|
1663 |
msgid "All the defined constants will stop working and you will be able to change all the values on this page."
|
1664 |
msgstr ""
|
1665 |
|
|
|
1666 |
#: src/Providers/OptionsAbstract.php:359
|
1667 |
msgid "The password will be stored in plain text. For improved security, we highly recommend using your site's WordPress configuration file to set your password."
|
1668 |
msgstr ""
|
1669 |
|
|
|
1670 |
#: src/Providers/OptionsAbstract.php:362
|
1671 |
msgid "Learn More"
|
1672 |
msgstr ""
|
1673 |
|
1674 |
#. translators: %1$s - Provider name; %2$s - PHP version required by Provider; %3$s - current PHP version.
|
|
|
1675 |
#: src/Providers/OptionsAbstract.php:422
|
1676 |
msgid "%1$s requires PHP %2$s to work and does not support your current PHP version %3$s. Please contact your host and request a PHP upgrade to the latest one."
|
1677 |
msgstr ""
|
1678 |
|
|
|
1679 |
#: src/Providers/OptionsAbstract.php:429
|
1680 |
msgid "Meanwhile you can switch to some other mailers."
|
1681 |
msgstr ""
|
1682 |
|
1683 |
#. translators: %s - Provider name
|
|
|
1684 |
#: src/Providers/OptionsAbstract.php:448
|
1685 |
msgid "%s requires an SSL certificate, and so is not currently compatible with your site. Please contact your host to request a SSL certificate, or check out <a href=\"https://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/\" target=\"_blank\">WPBeginner's tutorial on how to set up SSL</a>."
|
1686 |
msgstr ""
|
1687 |
|
|
|
1688 |
#: src/Providers/OptionsAbstract.php:461
|
1689 |
msgid "If you'd prefer not to set up SSL, or need an SMTP solution in the meantime, please select a different mailer option."
|
1690 |
msgstr ""
|
1691 |
|
|
|
1692 |
#: src/Providers/Outlook/Options.php:25
|
1693 |
msgid "Outlook"
|
1694 |
msgstr ""
|
1695 |
|
|
|
1696 |
#: src/Providers/Outlook/Options.php:39
|
1697 |
msgid "We're sorry, the Microsoft Outlook mailer is not available on your plan. Please upgrade to the PRO plan to unlock all these awesome features."
|
1698 |
msgstr ""
|
1699 |
|
|
|
1700 |
#: src/Providers/Pepipost/Options.php:25
|
1701 |
msgid "Pepipost SMTP"
|
1702 |
msgstr ""
|
1703 |
|
|
|
1704 |
#: src/Providers/PepipostAPI/Mailer.php:339
|
1705 |
msgid "General error"
|
1706 |
msgstr ""
|
1707 |
|
|
|
1708 |
#: src/Providers/PepipostAPI/Mailer.php:340
|
1709 |
msgid "Error"
|
1710 |
msgstr ""
|
1711 |
|
1712 |
#. translators: %1$s - URL to pepipost.com site.
|
|
|
1713 |
#: src/Providers/PepipostAPI/Options.php:32
|
1714 |
msgid "<a href=\"%1$s\" target=\"_blank\" rel=\"noopener noreferrer\">Pepipost</a> is a transactional email service. Every month Pepipost delivers over 8 billion emails from 20,000+ customers. Their mission is to reliably send emails in the most efficient way and at the most disruptive pricing ever. Pepipost provides users 30,000 free emails the first 30 days."
|
1715 |
msgstr ""
|
1716 |
|
1717 |
#. translators: %1$s - URL to wpmailsmtp.com doc.
|
|
|
1718 |
#: src/Providers/PepipostAPI/Options.php:35
|
1719 |
msgid "Read our <a href=\"%2$s\" target=\"_blank\" rel=\"noopener noreferrer\">Pepipost documentation</a> to learn how to configure Pepipost and improve your email deliverability."
|
1720 |
msgstr ""
|
1721 |
|
|
|
1722 |
#: src/Providers/PepipostAPI/Options.php:53
|
1723 |
msgid "Get Started with Pepipost"
|
1724 |
msgstr ""
|
1725 |
|
|
|
1726 |
#: src/Providers/PepipostAPI/Options.php:61
|
1727 |
msgid "Pepipost"
|
1728 |
msgstr ""
|
1729 |
|
|
|
|
|
|
|
|
|
1730 |
#: src/Providers/PepipostAPI/Options.php:94
|
1731 |
#: src/Providers/Sendgrid/Options.php:65
|
1732 |
+
#: src/Providers/Sendinblue/Options.php:96
|
1733 |
#: src/Providers/SMTPcom/Options.php:91
|
1734 |
msgid "API Key"
|
1735 |
msgstr ""
|
1736 |
|
1737 |
#. translators: %s - link to get an API Key.
|
|
|
|
|
1738 |
#: src/Providers/PepipostAPI/Options.php:113
|
1739 |
+
#: src/Providers/Sendinblue/Options.php:115
|
1740 |
msgid "Follow this link to get an API Key: %s."
|
1741 |
msgstr ""
|
1742 |
|
|
|
1743 |
#: src/Providers/PepipostAPI/Options.php:115
|
1744 |
msgid "Get the API Key"
|
1745 |
msgstr ""
|
1746 |
|
|
|
1747 |
#: src/Providers/Sendgrid/Options.php:26
|
1748 |
msgid "SendGrid"
|
1749 |
msgstr ""
|
1750 |
|
1751 |
#. translators: %1$s - opening link tag; %2$s - closing link tag; %3$s - opening link tag; %4$s - closing link tag.
|
|
|
1752 |
#: src/Providers/Sendgrid/Options.php:30
|
1753 |
msgid "%1$sSendGrid%2$s is one of the leading transactional email services, sending over 35 billion emails every month. They provide users 100 free emails per day.<br><br>Read our %3$sSendGrid documentation%4$s to learn how to set up SendGrid and improve your email deliverability."
|
1754 |
msgstr ""
|
1755 |
|
1756 |
#. translators: %s - API key link.
|
|
|
1757 |
#: src/Providers/Sendgrid/Options.php:84
|
1758 |
msgid "Follow this link to get an API Key from SendGrid: %s."
|
1759 |
msgstr ""
|
1760 |
|
|
|
1761 |
#: src/Providers/Sendgrid/Options.php:86
|
1762 |
msgid "Create API Key"
|
1763 |
msgstr ""
|
1764 |
|
1765 |
#. translators: %s - SendGrid access level.
|
|
|
1766 |
#: src/Providers/Sendgrid/Options.php:94
|
1767 |
msgid "To send emails you will need only a %s access level for this API key."
|
1768 |
msgstr ""
|
1769 |
|
|
|
|
|
|
|
|
|
|
|
1770 |
#. translators: %1$s - URL to sendinblue.com site.
|
1771 |
+
#: src/Providers/Sendinblue/Options.php:32
|
1772 |
+
msgid "<strong><a href=\"%1$s\" target=\"_blank\" rel=\"noopener noreferrer\">Sendinblue</a> is our recommended transactional email service.</strong> Founded in 2012, they serve 80,000+ growing companies around the world and send over 30 million emails each day. They understand that transactional emails are the heart of your customer relationships. Their email deliverability experts are constantly at work optimizing the reliability and speed of their SMTP infrastructure. Sendinblue provides users 300 free emails per day."
|
|
|
1773 |
msgstr ""
|
1774 |
|
1775 |
#. translators: %2$s - URL to wpmailsmtp.com doc.
|
1776 |
+
#: src/Providers/Sendinblue/Options.php:35
|
|
|
1777 |
msgid "Read our <a href=\"%2$s\" target=\"_blank\" rel=\"noopener noreferrer\">Sendinblue documentation</a> to learn how to configure Sendinblue and improve your email deliverability."
|
1778 |
msgstr ""
|
1779 |
|
1780 |
+
#: src/Providers/Sendinblue/Options.php:54
|
1781 |
+
msgid "Get Sendinblue Now (Free)"
|
1782 |
+
msgstr ""
|
1783 |
+
|
1784 |
+
#: src/Providers/Sendinblue/Options.php:62
|
1785 |
+
msgid "Sendinblue"
|
1786 |
+
msgstr ""
|
1787 |
+
|
1788 |
+
#: src/Providers/Sendinblue/Options.php:117
|
1789 |
msgid "Get v3 API Key"
|
1790 |
msgstr ""
|
1791 |
|
|
|
1792 |
#: src/Providers/SMTP/Options.php:25
|
1793 |
msgid "Other SMTP"
|
1794 |
msgstr ""
|
1795 |
|
1796 |
#. translators: %s - URL to SMTP documentation.
|
|
|
1797 |
#: src/Providers/SMTP/Options.php:29
|
1798 |
msgid "Use the SMTP details provided by your hosting provider or email service.<br><br>To see recommended settings for the popular services as well as troubleshooting tips, check out our <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">SMTP documentation</a>."
|
1799 |
msgstr ""
|
1800 |
|
|
|
1801 |
#: src/Providers/SMTPcom/Mailer.php:434
|
1802 |
msgid "Api Key:"
|
1803 |
msgstr ""
|
1804 |
|
|
|
1805 |
#: src/Providers/SMTPcom/Mailer.php:436
|
1806 |
msgid "Channel:"
|
1807 |
msgstr ""
|
1808 |
|
1809 |
#. translators: %s - URL to smtp.com site.
|
|
|
1810 |
#: src/Providers/SMTPcom/Options.php:42
|
1811 |
msgid "<strong><a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">SMTP.com</a> is a recommended transactional email service.</strong> With a 22 years of track record of reliable email delivery, SMTP.com is a premiere solution for WordPress developers and website owners. SMTP.com has been around for almost as long as email itself. Their super simple integration interface makes it easy to get started while a powerful API and robust documentation make it a preferred choice among developers. Start a 30-day free trial with 50,000 emails."
|
1812 |
msgstr ""
|
1813 |
|
1814 |
#. translators: %s - URL to wpmailsmtp.com doc page for stmp.com.
|
|
|
1815 |
#: src/Providers/SMTPcom/Options.php:50
|
1816 |
msgid "Read our <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">SMTP.com documentation</a> to learn how to configure SMTP.com and improve your email deliverability."
|
1817 |
msgstr ""
|
1818 |
|
|
|
1819 |
#: src/Providers/SMTPcom/Options.php:60
|
1820 |
msgid "Get Started with SMTP.com"
|
1821 |
msgstr ""
|
1822 |
|
|
|
1823 |
#: src/Providers/SMTPcom/Options.php:68
|
1824 |
msgid "SMTP.com"
|
1825 |
msgstr ""
|
1826 |
|
1827 |
#. translators: %s - API key link.
|
|
|
1828 |
#: src/Providers/SMTPcom/Options.php:109
|
1829 |
msgid "Follow this link to get an API Key from SMTP.com: %s."
|
1830 |
msgstr ""
|
1831 |
|
|
|
1832 |
#: src/Providers/SMTPcom/Options.php:111
|
1833 |
msgid "Get API Key"
|
1834 |
msgstr ""
|
1835 |
|
|
|
1836 |
#: src/Providers/SMTPcom/Options.php:122
|
1837 |
msgid "Sender Name"
|
1838 |
msgstr ""
|
1839 |
|
1840 |
#. translators: %s - Channel/Sender Name link for smtp.com documentation.
|
|
|
1841 |
#: src/Providers/SMTPcom/Options.php:138
|
1842 |
msgid "Follow this link to get a Sender Name from SMTP.com: %s."
|
1843 |
msgstr ""
|
1844 |
|
|
|
1845 |
#: src/Providers/SMTPcom/Options.php:140
|
1846 |
msgid "Get Sender Name"
|
1847 |
msgstr ""
|
1848 |
|
|
|
1849 |
#: src/Providers/Zoho/Options.php:25
|
1850 |
msgid "Zoho Mail"
|
1851 |
msgstr ""
|
1852 |
|
|
|
1853 |
#: src/Providers/Zoho/Options.php:41
|
1854 |
msgid "We're sorry, the Zoho Mail mailer is not available on your plan. Please upgrade to the PRO plan to unlock all these awesome features."
|
1855 |
msgstr ""
|
1856 |
|
|
|
1857 |
#: src/SiteHealth.php:67
|
1858 |
msgid "Is WP Mail SMTP mailer setup complete?"
|
1859 |
msgstr ""
|
1860 |
|
|
|
1861 |
#: src/SiteHealth.php:72
|
1862 |
msgid "Do WP Mail SMTP DB tables exist?"
|
1863 |
msgstr ""
|
1864 |
|
|
|
1865 |
#: src/SiteHealth.php:98
|
1866 |
msgid "Version"
|
1867 |
msgstr ""
|
1868 |
|
|
|
1869 |
#: src/SiteHealth.php:102
|
1870 |
msgid "License key type"
|
1871 |
msgstr ""
|
1872 |
|
|
|
1873 |
#: src/SiteHealth.php:106
|
1874 |
msgid "Debug"
|
1875 |
msgstr ""
|
1876 |
|
|
|
1877 |
#: src/SiteHealth.php:107
|
1878 |
msgid "No debug notices found."
|
1879 |
msgstr ""
|
1880 |
|
|
|
1881 |
#: src/SiteHealth.php:110
|
1882 |
msgid "DB tables"
|
1883 |
msgstr ""
|
1884 |
|
|
|
1885 |
#: src/SiteHealth.php:112
|
1886 |
msgid "No DB tables found."
|
1887 |
msgstr ""
|
1888 |
|
|
|
1889 |
#: src/SiteHealth.php:123
|
1890 |
msgid "Lite install date"
|
1891 |
msgstr ""
|
1892 |
|
|
|
1893 |
#: src/SiteHealth.php:140
|
1894 |
msgid "None selected"
|
1895 |
msgstr ""
|
1896 |
|
|
|
1897 |
#: src/SiteHealth.php:160
|
1898 |
msgid "Current mailer"
|
1899 |
msgstr ""
|
1900 |
|
|
|
1901 |
#: src/SiteHealth.php:165
|
1902 |
msgid "WP Mail SMTP mailer setup is complete"
|
1903 |
msgstr ""
|
1904 |
|
|
|
1905 |
#: src/SiteHealth.php:174
|
1906 |
msgid "The WP Mail SMTP plugin mailer setup is complete. You can send a test email, to make sure it's working properly."
|
1907 |
msgstr ""
|
1908 |
|
|
|
1909 |
#: src/SiteHealth.php:179
|
1910 |
msgid "Test email sending"
|
1911 |
msgstr ""
|
1912 |
|
|
|
1913 |
#: src/SiteHealth.php:187
|
1914 |
msgid "You currently have the default mailer selected, which means that you haven’t set up SMTP yet."
|
1915 |
msgstr ""
|
1916 |
|
|
|
1917 |
#: src/SiteHealth.php:192
|
1918 |
msgid "WP Mail SMTP mailer setup is incomplete"
|
1919 |
msgstr ""
|
1920 |
|
|
|
1921 |
#: src/SiteHealth.php:198
|
1922 |
msgid "The WP Mail SMTP plugin mailer setup is incomplete. Please click on the link below to access plugin settings and configure the mailer."
|
1923 |
msgstr ""
|
1924 |
|
|
|
1925 |
#: src/SiteHealth.php:203
|
1926 |
msgid "Configure mailer"
|
1927 |
msgstr ""
|
1928 |
|
|
|
1929 |
#: src/SiteHealth.php:220
|
1930 |
msgid "WP Mail SMTP DB tables are created"
|
1931 |
msgstr ""
|
1932 |
|
|
|
1933 |
#: src/SiteHealth.php:226
|
1934 |
msgid "WP Mail SMTP is using custom database tables for some of its features. In order to work properly, the custom tables should be created, and it looks like they exist in your database."
|
1935 |
msgstr ""
|
1936 |
|
|
|
1937 |
#: src/SiteHealth.php:234
|
1938 |
msgid "WP Mail SMTP DB tables check has failed"
|
1939 |
msgstr ""
|
1940 |
|
1941 |
#. translators: %s - the list of missing tables separated by comma.
|
|
|
1942 |
#: src/SiteHealth.php:240
|
1943 |
msgid "Missing table: %s"
|
1944 |
msgid_plural "Missing tables: %s"
|
1945 |
msgstr[0] ""
|
1946 |
msgstr[1] ""
|
1947 |
|
|
|
1948 |
#: src/SiteHealth.php:243
|
1949 |
msgid "WP Mail SMTP is using custom database tables for some of its features. In order to work properly, the custom tables should be created, and it seems they are missing. Please try to re-install the WP Mail SMTP plugin. If this issue persists, please contact our support."
|
1950 |
msgstr ""
|
1951 |
|
1952 |
#. translators: %1$s - date, \a\t - specially escaped "at", %2$s - time.
|
|
|
1953 |
#: src/WP.php:190
|
1954 |
msgid "%1$s \\a\\t %2$s"
|
1955 |
msgstr ""
|
1956 |
|
|
|
1957 |
#: wp_mail_smtp.php:137
|
1958 |
msgid "Please deactivate the free version of the WP Mail SMTP plugin before activating WP Mail SMTP Pro."
|
1959 |
msgstr ""
|
1960 |
|
1961 |
#. translators: %1$s - WPBeginner URL for recommended WordPress hosting.
|
|
|
1962 |
#: wp_mail_smtp.php:165
|
1963 |
msgid "Your site is running an <strong>insecure version</strong> of PHP that is no longer supported. Please contact your web hosting provider to update your PHP version or switch to a <a href=\"%1$s\" target=\"_blank\" rel=\"noopener noreferrer\">recommended WordPress hosting company</a>."
|
1964 |
msgstr ""
|
1965 |
|
1966 |
#. translators: %s - WPMailSMTP.com docs URL with more details.
|
|
|
1967 |
#: wp_mail_smtp.php:182
|
1968 |
msgid "<strong>WP Mail SMTP plugin is disabled</strong> on your site until you fix the issue. <a href=\"%s\" target=\"_blank\" rel=\"noopener noreferrer\">Read more for additional information.</a>"
|
1969 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/libs/jquery-confirm.min.css
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
/*!
|
2 |
-
* jquery-confirm v3.3.4 (http://craftpip.github.io/jquery-confirm/)
|
3 |
-
* Author: boniface pereira
|
4 |
-
* Website: www.craftpip.com
|
5 |
-
* Contact: hey@craftpip.com
|
6 |
-
*
|
7 |
-
* Copyright 2013-2019 jquery-confirm
|
8 |
-
* Licensed under MIT (https://github.com/craftpip/jquery-confirm/blob/master/LICENSE)
|
9 |
*/@-webkit-keyframes jconfirm-spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes jconfirm-spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}body[class*=jconfirm-no-scroll-]{overflow:hidden!important}.jconfirm{position:fixed;top:0;left:0;right:0;bottom:0;z-index:99999999;font-family:inherit;overflow:hidden}.jconfirm .jconfirm-bg{position:fixed;top:0;left:0;right:0;bottom:0;-webkit-transition:opacity .4s;transition:opacity .4s}.jconfirm .jconfirm-bg.jconfirm-bg-h{opacity:0!important}.jconfirm .jconfirm-scrollpane{-webkit-perspective:500px;perspective:500px;-webkit-perspective-origin:center;perspective-origin:center;display:table;width:100%;height:100%}.jconfirm .jconfirm-row{display:table-row;width:100%}.jconfirm .jconfirm-cell{display:table-cell;vertical-align:middle}.jconfirm .jconfirm-holder{max-height:100%;padding:50px 0}.jconfirm .jconfirm-box-container{-webkit-transition:-webkit-transform;transition:-webkit-transform;transition:transform;transition:transform,-webkit-transform}.jconfirm .jconfirm-box-container.jconfirm-no-transition{-webkit-transition:none!important;transition:none!important}.jconfirm .jconfirm-box{background:white;border-radius:4px;position:relative;outline:0;padding:15px 15px 0;overflow:hidden;margin-left:auto;margin-right:auto}@-webkit-keyframes type-blue{1%,100%{border-color:#3498db}50%{border-color:#5faee3}}@keyframes type-blue{1%,100%{border-color:#3498db}50%{border-color:#5faee3}}@-webkit-keyframes type-green{1%,100%{border-color:#2ecc71}50%{border-color:#54d98c}}@keyframes type-green{1%,100%{border-color:#2ecc71}50%{border-color:#54d98c}}@-webkit-keyframes type-red{1%,100%{border-color:#e74c3c}50%{border-color:#ed7669}}@keyframes type-red{1%,100%{border-color:#e74c3c}50%{border-color:#ed7669}}@-webkit-keyframes type-orange{1%,100%{border-color:#f1c40f}50%{border-color:#f4d03f}}@keyframes type-orange{1%,100%{border-color:#f1c40f}50%{border-color:#f4d03f}}@-webkit-keyframes type-purple{1%,100%{border-color:#9b59b6}50%{border-color:#b07cc6}}@keyframes type-purple{1%,100%{border-color:#9b59b6}50%{border-color:#b07cc6}}@-webkit-keyframes type-dark{1%,100%{border-color:#34495e}50%{border-color:#46627f}}@keyframes type-dark{1%,100%{border-color:#34495e}50%{border-color:#46627f}}.jconfirm .jconfirm-box.jconfirm-type-animated{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.jconfirm .jconfirm-box.jconfirm-type-blue{border-top:solid 7px #3498db;-webkit-animation-name:type-blue;animation-name:type-blue}.jconfirm .jconfirm-box.jconfirm-type-green{border-top:solid 7px #2ecc71;-webkit-animation-name:type-green;animation-name:type-green}.jconfirm .jconfirm-box.jconfirm-type-red{border-top:solid 7px #e74c3c;-webkit-animation-name:type-red;animation-name:type-red}.jconfirm .jconfirm-box.jconfirm-type-orange{border-top:solid 7px #f1c40f;-webkit-animation-name:type-orange;animation-name:type-orange}.jconfirm .jconfirm-box.jconfirm-type-purple{border-top:solid 7px #9b59b6;-webkit-animation-name:type-purple;animation-name:type-purple}.jconfirm .jconfirm-box.jconfirm-type-dark{border-top:solid 7px #34495e;-webkit-animation-name:type-dark;animation-name:type-dark}.jconfirm .jconfirm-box.loading{height:120px}.jconfirm .jconfirm-box.loading:before{content:'';position:absolute;left:0;background:white;right:0;top:0;bottom:0;border-radius:10px;z-index:1}.jconfirm .jconfirm-box.loading:after{opacity:.6;content:'';height:30px;width:30px;border:solid 3px transparent;position:absolute;left:50%;margin-left:-15px;border-radius:50%;-webkit-animation:jconfirm-spin 1s infinite linear;animation:jconfirm-spin 1s infinite linear;border-bottom-color:dodgerblue;top:50%;margin-top:-15px;z-index:2}.jconfirm .jconfirm-box div.jconfirm-closeIcon{height:20px;width:20px;position:absolute;top:10px;right:10px;cursor:pointer;opacity:.6;text-align:center;font-size:27px!important;line-height:14px!important;display:none;z-index:1}.jconfirm .jconfirm-box div.jconfirm-closeIcon:empty{display:none}.jconfirm .jconfirm-box div.jconfirm-closeIcon .fa{font-size:16px}.jconfirm .jconfirm-box div.jconfirm-closeIcon .glyphicon{font-size:16px}.jconfirm .jconfirm-box div.jconfirm-closeIcon .zmdi{font-size:16px}.jconfirm .jconfirm-box div.jconfirm-closeIcon:hover{opacity:1}.jconfirm .jconfirm-box div.jconfirm-title-c{display:block;font-size:22px;line-height:20px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;padding-bottom:15px}.jconfirm .jconfirm-box div.jconfirm-title-c.jconfirm-hand{cursor:move}.jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c{font-size:inherit;display:inline-block;vertical-align:middle}.jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c i{vertical-align:middle}.jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c:empty{display:none}.jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-title{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:inherit;font-family:inherit;display:inline-block;vertical-align:middle}.jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-title:empty{display:none}.jconfirm .jconfirm-box div.jconfirm-content-pane{margin-bottom:15px;height:auto;-webkit-transition:height .4s ease-in;transition:height .4s ease-in;display:inline-block;width:100%;position:relative;overflow-x:hidden;overflow-y:auto}.jconfirm .jconfirm-box div.jconfirm-content-pane.no-scroll{overflow-y:hidden}.jconfirm .jconfirm-box div.jconfirm-content-pane::-webkit-scrollbar{width:3px}.jconfirm .jconfirm-box div.jconfirm-content-pane::-webkit-scrollbar-track{background:rgba(0,0,0,0.1)}.jconfirm .jconfirm-box div.jconfirm-content-pane::-webkit-scrollbar-thumb{background:#666;border-radius:3px}.jconfirm .jconfirm-box div.jconfirm-content-pane .jconfirm-content{overflow:auto}.jconfirm .jconfirm-box div.jconfirm-content-pane .jconfirm-content img{max-width:100%;height:auto}.jconfirm .jconfirm-box div.jconfirm-content-pane .jconfirm-content:empty{display:none}.jconfirm .jconfirm-box .jconfirm-buttons{padding-bottom:11px}.jconfirm .jconfirm-box .jconfirm-buttons>button{margin-bottom:4px;margin-left:2px;margin-right:2px}.jconfirm .jconfirm-box .jconfirm-buttons button{display:inline-block;padding:6px 12px;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:4px;min-height:1em;-webkit-transition:opacity .1s ease,background-color .1s ease,color .1s ease,background .1s ease,-webkit-box-shadow .1s ease;transition:opacity .1s ease,background-color .1s ease,color .1s ease,background .1s ease,-webkit-box-shadow .1s ease;transition:opacity .1s ease,background-color .1s ease,color .1s ease,box-shadow .1s ease,background .1s ease;transition:opacity .1s ease,background-color .1s ease,color .1s ease,box-shadow .1s ease,background .1s ease,-webkit-box-shadow .1s ease;-webkit-tap-highlight-color:transparent;border:0;background-image:none}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-blue{background-color:#3498db;color:#FFF;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-blue:hover{background-color:#2980b9;color:#FFF}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-green{background-color:#2ecc71;color:#FFF;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-green:hover{background-color:#27ae60;color:#FFF}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-red{background-color:#e74c3c;color:#FFF;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-red:hover{background-color:#c0392b;color:#FFF}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-orange{background-color:#f1c40f;color:#FFF;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-orange:hover{background-color:#f39c12;color:#FFF}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-default{background-color:#ecf0f1;color:#000;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-default:hover{background-color:#bdc3c7;color:#000}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-purple{background-color:#9b59b6;color:#FFF;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-purple:hover{background-color:#8e44ad;color:#FFF}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-dark{background-color:#34495e;color:#FFF;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-dark:hover{background-color:#2c3e50;color:#FFF}.jconfirm .jconfirm-box.jconfirm-type-red .jconfirm-title-c .jconfirm-icon-c{color:#e74c3c!important}.jconfirm .jconfirm-box.jconfirm-type-blue .jconfirm-title-c .jconfirm-icon-c{color:#3498db!important}.jconfirm .jconfirm-box.jconfirm-type-green .jconfirm-title-c .jconfirm-icon-c{color:#2ecc71!important}.jconfirm .jconfirm-box.jconfirm-type-purple .jconfirm-title-c .jconfirm-icon-c{color:#9b59b6!important}.jconfirm .jconfirm-box.jconfirm-type-orange .jconfirm-title-c .jconfirm-icon-c{color:#f1c40f!important}.jconfirm .jconfirm-box.jconfirm-type-dark .jconfirm-title-c .jconfirm-icon-c{color:#34495e!important}.jconfirm .jconfirm-clear{clear:both}.jconfirm.jconfirm-rtl{direction:rtl}.jconfirm.jconfirm-rtl div.jconfirm-closeIcon{left:5px;right:auto}.jconfirm.jconfirm-white .jconfirm-bg,.jconfirm.jconfirm-light .jconfirm-bg{background-color:#444;opacity:.2}.jconfirm.jconfirm-white .jconfirm-box,.jconfirm.jconfirm-light .jconfirm-box{-webkit-box-shadow:0 2px 6px rgba(0,0,0,0.2);box-shadow:0 2px 6px rgba(0,0,0,0.2);border-radius:5px}.jconfirm.jconfirm-white .jconfirm-box .jconfirm-title-c .jconfirm-icon-c,.jconfirm.jconfirm-light .jconfirm-box .jconfirm-title-c .jconfirm-icon-c{margin-right:8px;margin-left:0}.jconfirm.jconfirm-white .jconfirm-box .jconfirm-buttons,.jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons{float:right}.jconfirm.jconfirm-white .jconfirm-box .jconfirm-buttons button,.jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button{text-transform:uppercase;font-size:14px;font-weight:bold;text-shadow:none}.jconfirm.jconfirm-white .jconfirm-box .jconfirm-buttons button.btn-default,.jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button.btn-default{-webkit-box-shadow:none;box-shadow:none;color:#333}.jconfirm.jconfirm-white .jconfirm-box .jconfirm-buttons button.btn-default:hover,.jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button.btn-default:hover{background:#ddd}.jconfirm.jconfirm-white.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c,.jconfirm.jconfirm-light.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c{margin-left:8px;margin-right:0}.jconfirm.jconfirm-black .jconfirm-bg,.jconfirm.jconfirm-dark .jconfirm-bg{background-color:darkslategray;opacity:.4}.jconfirm.jconfirm-black .jconfirm-box,.jconfirm.jconfirm-dark .jconfirm-box{-webkit-box-shadow:0 2px 6px rgba(0,0,0,0.2);box-shadow:0 2px 6px rgba(0,0,0,0.2);background:#444;border-radius:5px;color:white}.jconfirm.jconfirm-black .jconfirm-box .jconfirm-title-c .jconfirm-icon-c,.jconfirm.jconfirm-dark .jconfirm-box .jconfirm-title-c .jconfirm-icon-c{margin-right:8px;margin-left:0}.jconfirm.jconfirm-black .jconfirm-box .jconfirm-buttons,.jconfirm.jconfirm-dark .jconfirm-box .jconfirm-buttons{float:right}.jconfirm.jconfirm-black .jconfirm-box .jconfirm-buttons button,.jconfirm.jconfirm-dark .jconfirm-box .jconfirm-buttons button{border:0;background-image:none;text-transform:uppercase;font-size:14px;font-weight:bold;text-shadow:none;-webkit-transition:background .1s;transition:background .1s;color:white}.jconfirm.jconfirm-black .jconfirm-box .jconfirm-buttons button.btn-default,.jconfirm.jconfirm-dark .jconfirm-box .jconfirm-buttons button.btn-default{-webkit-box-shadow:none;box-shadow:none;color:#fff;background:0}.jconfirm.jconfirm-black .jconfirm-box .jconfirm-buttons button.btn-default:hover,.jconfirm.jconfirm-dark .jconfirm-box .jconfirm-buttons button.btn-default:hover{background:#666}.jconfirm.jconfirm-black.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c,.jconfirm.jconfirm-dark.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c{margin-left:8px;margin-right:0}.jconfirm .jconfirm-box.hilight.jconfirm-hilight-shake{-webkit-animation:shake .82s cubic-bezier(0.36,0.07,0.19,0.97) both;animation:shake .82s cubic-bezier(0.36,0.07,0.19,0.97) both;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.jconfirm .jconfirm-box.hilight.jconfirm-hilight-glow{-webkit-animation:glow .82s cubic-bezier(0.36,0.07,0.19,0.97) both;animation:glow .82s cubic-bezier(0.36,0.07,0.19,0.97) both;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}@-webkit-keyframes shake{10%,90%{-webkit-transform:translate3d(-2px,0,0);transform:translate3d(-2px,0,0)}20%,80%{-webkit-transform:translate3d(4px,0,0);transform:translate3d(4px,0,0)}30%,50%,70%{-webkit-transform:translate3d(-8px,0,0);transform:translate3d(-8px,0,0)}40%,60%{-webkit-transform:translate3d(8px,0,0);transform:translate3d(8px,0,0)}}@keyframes shake{10%,90%{-webkit-transform:translate3d(-2px,0,0);transform:translate3d(-2px,0,0)}20%,80%{-webkit-transform:translate3d(4px,0,0);transform:translate3d(4px,0,0)}30%,50%,70%{-webkit-transform:translate3d(-8px,0,0);transform:translate3d(-8px,0,0)}40%,60%{-webkit-transform:translate3d(8px,0,0);transform:translate3d(8px,0,0)}}@-webkit-keyframes glow{0%,100%{-webkit-box-shadow:0 0 0 red;box-shadow:0 0 0 red}50%{-webkit-box-shadow:0 0 30px red;box-shadow:0 0 30px red}}@keyframes glow{0%,100%{-webkit-box-shadow:0 0 0 red;box-shadow:0 0 0 red}50%{-webkit-box-shadow:0 0 30px red;box-shadow:0 0 30px red}}.jconfirm{-webkit-perspective:400px;perspective:400px}.jconfirm .jconfirm-box{opacity:1;-webkit-transition-property:all;transition-property:all}.jconfirm .jconfirm-box.jconfirm-animation-top,.jconfirm .jconfirm-box.jconfirm-animation-left,.jconfirm .jconfirm-box.jconfirm-animation-right,.jconfirm .jconfirm-box.jconfirm-animation-bottom,.jconfirm .jconfirm-box.jconfirm-animation-opacity,.jconfirm .jconfirm-box.jconfirm-animation-zoom,.jconfirm .jconfirm-box.jconfirm-animation-scale,.jconfirm .jconfirm-box.jconfirm-animation-none,.jconfirm .jconfirm-box.jconfirm-animation-rotate,.jconfirm .jconfirm-box.jconfirm-animation-rotatex,.jconfirm .jconfirm-box.jconfirm-animation-rotatey,.jconfirm .jconfirm-box.jconfirm-animation-scaley,.jconfirm .jconfirm-box.jconfirm-animation-scalex{opacity:0}.jconfirm .jconfirm-box.jconfirm-animation-rotate{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.jconfirm .jconfirm-box.jconfirm-animation-rotatex{-webkit-transform:rotateX(90deg);transform:rotateX(90deg);-webkit-transform-origin:center;transform-origin:center}.jconfirm .jconfirm-box.jconfirm-animation-rotatexr{-webkit-transform:rotateX(-90deg);transform:rotateX(-90deg);-webkit-transform-origin:center;transform-origin:center}.jconfirm .jconfirm-box.jconfirm-animation-rotatey{-webkit-transform:rotatey(90deg);transform:rotatey(90deg);-webkit-transform-origin:center;transform-origin:center}.jconfirm .jconfirm-box.jconfirm-animation-rotateyr{-webkit-transform:rotatey(-90deg);transform:rotatey(-90deg);-webkit-transform-origin:center;transform-origin:center}.jconfirm .jconfirm-box.jconfirm-animation-scaley{-webkit-transform:scaley(1.5);transform:scaley(1.5);-webkit-transform-origin:center;transform-origin:center}.jconfirm .jconfirm-box.jconfirm-animation-scalex{-webkit-transform:scalex(1.5);transform:scalex(1.5);-webkit-transform-origin:center;transform-origin:center}.jconfirm .jconfirm-box.jconfirm-animation-top{-webkit-transform:translate(0px,-100px);transform:translate(0px,-100px)}.jconfirm .jconfirm-box.jconfirm-animation-left{-webkit-transform:translate(-100px,0px);transform:translate(-100px,0px)}.jconfirm .jconfirm-box.jconfirm-animation-right{-webkit-transform:translate(100px,0px);transform:translate(100px,0px)}.jconfirm .jconfirm-box.jconfirm-animation-bottom{-webkit-transform:translate(0px,100px);transform:translate(0px,100px)}.jconfirm .jconfirm-box.jconfirm-animation-zoom{-webkit-transform:scale(1.2);transform:scale(1.2)}.jconfirm .jconfirm-box.jconfirm-animation-scale{-webkit-transform:scale(0.5);transform:scale(0.5)}.jconfirm .jconfirm-box.jconfirm-animation-none{visibility:hidden}.jconfirm.jconfirm-supervan .jconfirm-bg{background-color:rgba(54,70,93,0.95)}.jconfirm.jconfirm-supervan .jconfirm-box{background-color:transparent}.jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-blue{border:0}.jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-green{border:0}.jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-red{border:0}.jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-orange{border:0}.jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-purple{border:0}.jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-dark{border:0}.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-closeIcon{color:white}.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-title-c{text-align:center;color:white;font-size:28px;font-weight:normal}.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-title-c>*{padding-bottom:25px}.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c{margin-right:8px;margin-left:0}.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-content-pane{margin-bottom:25px}.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-content{text-align:center;color:white}.jconfirm.jconfirm-supervan .jconfirm-box .jconfirm-buttons{text-align:center}.jconfirm.jconfirm-supervan .jconfirm-box .jconfirm-buttons button{font-size:16px;border-radius:2px;background:#303f53;text-shadow:none;border:0;color:white;padding:10px;min-width:100px}.jconfirm.jconfirm-supervan.jconfirm-rtl .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c{margin-left:8px;margin-right:0}.jconfirm.jconfirm-material .jconfirm-bg{background-color:rgba(0,0,0,0.67)}.jconfirm.jconfirm-material .jconfirm-box{background-color:white;-webkit-box-shadow:0 7px 8px -4px rgba(0,0,0,0.2),0 13px 19px 2px rgba(0,0,0,0.14),0 5px 24px 4px rgba(0,0,0,0.12);box-shadow:0 7px 8px -4px rgba(0,0,0,0.2),0 13px 19px 2px rgba(0,0,0,0.14),0 5px 24px 4px rgba(0,0,0,0.12);padding:30px 25px 10px 25px}.jconfirm.jconfirm-material .jconfirm-box .jconfirm-title-c .jconfirm-icon-c{margin-right:8px;margin-left:0}.jconfirm.jconfirm-material .jconfirm-box div.jconfirm-closeIcon{color:rgba(0,0,0,0.87)}.jconfirm.jconfirm-material .jconfirm-box div.jconfirm-title-c{color:rgba(0,0,0,0.87);font-size:22px;font-weight:bold}.jconfirm.jconfirm-material .jconfirm-box div.jconfirm-content{color:rgba(0,0,0,0.87)}.jconfirm.jconfirm-material .jconfirm-box .jconfirm-buttons{text-align:right}.jconfirm.jconfirm-material .jconfirm-box .jconfirm-buttons button{text-transform:uppercase;font-weight:500}.jconfirm.jconfirm-material.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c{margin-left:8px;margin-right:0}.jconfirm.jconfirm-bootstrap .jconfirm-bg{background-color:rgba(0,0,0,0.21)}.jconfirm.jconfirm-bootstrap .jconfirm-box{background-color:white;-webkit-box-shadow:0 3px 8px 0 rgba(0,0,0,0.2);box-shadow:0 3px 8px 0 rgba(0,0,0,0.2);border:solid 1px rgba(0,0,0,0.4);padding:15px 0 0}.jconfirm.jconfirm-bootstrap .jconfirm-box .jconfirm-title-c .jconfirm-icon-c{margin-right:8px;margin-left:0}.jconfirm.jconfirm-bootstrap .jconfirm-box div.jconfirm-closeIcon{color:rgba(0,0,0,0.87)}.jconfirm.jconfirm-bootstrap .jconfirm-box div.jconfirm-title-c{color:rgba(0,0,0,0.87);font-size:22px;font-weight:bold;padding-left:15px;padding-right:15px}.jconfirm.jconfirm-bootstrap .jconfirm-box div.jconfirm-content{color:rgba(0,0,0,0.87);padding:0 15px}.jconfirm.jconfirm-bootstrap .jconfirm-box .jconfirm-buttons{text-align:right;padding:10px;margin:-5px 0 0;border-top:solid 1px #ddd;overflow:hidden;border-radius:0 0 4px 4px}.jconfirm.jconfirm-bootstrap .jconfirm-box .jconfirm-buttons button{font-weight:500}.jconfirm.jconfirm-bootstrap.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c{margin-left:8px;margin-right:0}.jconfirm.jconfirm-modern .jconfirm-bg{background-color:slategray;opacity:.6}.jconfirm.jconfirm-modern .jconfirm-box{background-color:white;-webkit-box-shadow:0 7px 8px -4px rgba(0,0,0,0.2),0 13px 19px 2px rgba(0,0,0,0.14),0 5px 24px 4px rgba(0,0,0,0.12);box-shadow:0 7px 8px -4px rgba(0,0,0,0.2),0 13px 19px 2px rgba(0,0,0,0.14),0 5px 24px 4px rgba(0,0,0,0.12);padding:30px 30px 15px}.jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-closeIcon{color:rgba(0,0,0,0.87);top:15px;right:15px}.jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-title-c{color:rgba(0,0,0,0.87);font-size:24px;font-weight:bold;text-align:center;margin-bottom:10px}.jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c{-webkit-transition:-webkit-transform .5s;transition:-webkit-transform .5s;transition:transform .5s;transition:transform .5s,-webkit-transform .5s;-webkit-transform:scale(0);transform:scale(0);display:block;margin-right:0;margin-left:0;margin-bottom:10px;font-size:69px;color:#aaa}.jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-content{text-align:center;font-size:15px;color:#777;margin-bottom:25px}.jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons{text-align:center}.jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons button{font-weight:bold;text-transform:uppercase;-webkit-transition:background .1s;transition:background .1s;padding:10px 20px}.jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons button+button{margin-left:4px}.jconfirm.jconfirm-modern.jconfirm-open .jconfirm-box .jconfirm-title-c .jconfirm-icon-c{-webkit-transform:scale(1);transform:scale(1)}
|
1 |
+
/*!
|
2 |
+
* jquery-confirm v3.3.4 (http://craftpip.github.io/jquery-confirm/)
|
3 |
+
* Author: boniface pereira
|
4 |
+
* Website: www.craftpip.com
|
5 |
+
* Contact: hey@craftpip.com
|
6 |
+
*
|
7 |
+
* Copyright 2013-2019 jquery-confirm
|
8 |
+
* Licensed under MIT (https://github.com/craftpip/jquery-confirm/blob/master/LICENSE)
|
9 |
*/@-webkit-keyframes jconfirm-spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes jconfirm-spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}body[class*=jconfirm-no-scroll-]{overflow:hidden!important}.jconfirm{position:fixed;top:0;left:0;right:0;bottom:0;z-index:99999999;font-family:inherit;overflow:hidden}.jconfirm .jconfirm-bg{position:fixed;top:0;left:0;right:0;bottom:0;-webkit-transition:opacity .4s;transition:opacity .4s}.jconfirm .jconfirm-bg.jconfirm-bg-h{opacity:0!important}.jconfirm .jconfirm-scrollpane{-webkit-perspective:500px;perspective:500px;-webkit-perspective-origin:center;perspective-origin:center;display:table;width:100%;height:100%}.jconfirm .jconfirm-row{display:table-row;width:100%}.jconfirm .jconfirm-cell{display:table-cell;vertical-align:middle}.jconfirm .jconfirm-holder{max-height:100%;padding:50px 0}.jconfirm .jconfirm-box-container{-webkit-transition:-webkit-transform;transition:-webkit-transform;transition:transform;transition:transform,-webkit-transform}.jconfirm .jconfirm-box-container.jconfirm-no-transition{-webkit-transition:none!important;transition:none!important}.jconfirm .jconfirm-box{background:white;border-radius:4px;position:relative;outline:0;padding:15px 15px 0;overflow:hidden;margin-left:auto;margin-right:auto}@-webkit-keyframes type-blue{1%,100%{border-color:#3498db}50%{border-color:#5faee3}}@keyframes type-blue{1%,100%{border-color:#3498db}50%{border-color:#5faee3}}@-webkit-keyframes type-green{1%,100%{border-color:#2ecc71}50%{border-color:#54d98c}}@keyframes type-green{1%,100%{border-color:#2ecc71}50%{border-color:#54d98c}}@-webkit-keyframes type-red{1%,100%{border-color:#e74c3c}50%{border-color:#ed7669}}@keyframes type-red{1%,100%{border-color:#e74c3c}50%{border-color:#ed7669}}@-webkit-keyframes type-orange{1%,100%{border-color:#f1c40f}50%{border-color:#f4d03f}}@keyframes type-orange{1%,100%{border-color:#f1c40f}50%{border-color:#f4d03f}}@-webkit-keyframes type-purple{1%,100%{border-color:#9b59b6}50%{border-color:#b07cc6}}@keyframes type-purple{1%,100%{border-color:#9b59b6}50%{border-color:#b07cc6}}@-webkit-keyframes type-dark{1%,100%{border-color:#34495e}50%{border-color:#46627f}}@keyframes type-dark{1%,100%{border-color:#34495e}50%{border-color:#46627f}}.jconfirm .jconfirm-box.jconfirm-type-animated{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.jconfirm .jconfirm-box.jconfirm-type-blue{border-top:solid 7px #3498db;-webkit-animation-name:type-blue;animation-name:type-blue}.jconfirm .jconfirm-box.jconfirm-type-green{border-top:solid 7px #2ecc71;-webkit-animation-name:type-green;animation-name:type-green}.jconfirm .jconfirm-box.jconfirm-type-red{border-top:solid 7px #e74c3c;-webkit-animation-name:type-red;animation-name:type-red}.jconfirm .jconfirm-box.jconfirm-type-orange{border-top:solid 7px #f1c40f;-webkit-animation-name:type-orange;animation-name:type-orange}.jconfirm .jconfirm-box.jconfirm-type-purple{border-top:solid 7px #9b59b6;-webkit-animation-name:type-purple;animation-name:type-purple}.jconfirm .jconfirm-box.jconfirm-type-dark{border-top:solid 7px #34495e;-webkit-animation-name:type-dark;animation-name:type-dark}.jconfirm .jconfirm-box.loading{height:120px}.jconfirm .jconfirm-box.loading:before{content:'';position:absolute;left:0;background:white;right:0;top:0;bottom:0;border-radius:10px;z-index:1}.jconfirm .jconfirm-box.loading:after{opacity:.6;content:'';height:30px;width:30px;border:solid 3px transparent;position:absolute;left:50%;margin-left:-15px;border-radius:50%;-webkit-animation:jconfirm-spin 1s infinite linear;animation:jconfirm-spin 1s infinite linear;border-bottom-color:dodgerblue;top:50%;margin-top:-15px;z-index:2}.jconfirm .jconfirm-box div.jconfirm-closeIcon{height:20px;width:20px;position:absolute;top:10px;right:10px;cursor:pointer;opacity:.6;text-align:center;font-size:27px!important;line-height:14px!important;display:none;z-index:1}.jconfirm .jconfirm-box div.jconfirm-closeIcon:empty{display:none}.jconfirm .jconfirm-box div.jconfirm-closeIcon .fa{font-size:16px}.jconfirm .jconfirm-box div.jconfirm-closeIcon .glyphicon{font-size:16px}.jconfirm .jconfirm-box div.jconfirm-closeIcon .zmdi{font-size:16px}.jconfirm .jconfirm-box div.jconfirm-closeIcon:hover{opacity:1}.jconfirm .jconfirm-box div.jconfirm-title-c{display:block;font-size:22px;line-height:20px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;padding-bottom:15px}.jconfirm .jconfirm-box div.jconfirm-title-c.jconfirm-hand{cursor:move}.jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c{font-size:inherit;display:inline-block;vertical-align:middle}.jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c i{vertical-align:middle}.jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c:empty{display:none}.jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-title{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:inherit;font-family:inherit;display:inline-block;vertical-align:middle}.jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-title:empty{display:none}.jconfirm .jconfirm-box div.jconfirm-content-pane{margin-bottom:15px;height:auto;-webkit-transition:height .4s ease-in;transition:height .4s ease-in;display:inline-block;width:100%;position:relative;overflow-x:hidden;overflow-y:auto}.jconfirm .jconfirm-box div.jconfirm-content-pane.no-scroll{overflow-y:hidden}.jconfirm .jconfirm-box div.jconfirm-content-pane::-webkit-scrollbar{width:3px}.jconfirm .jconfirm-box div.jconfirm-content-pane::-webkit-scrollbar-track{background:rgba(0,0,0,0.1)}.jconfirm .jconfirm-box div.jconfirm-content-pane::-webkit-scrollbar-thumb{background:#666;border-radius:3px}.jconfirm .jconfirm-box div.jconfirm-content-pane .jconfirm-content{overflow:auto}.jconfirm .jconfirm-box div.jconfirm-content-pane .jconfirm-content img{max-width:100%;height:auto}.jconfirm .jconfirm-box div.jconfirm-content-pane .jconfirm-content:empty{display:none}.jconfirm .jconfirm-box .jconfirm-buttons{padding-bottom:11px}.jconfirm .jconfirm-box .jconfirm-buttons>button{margin-bottom:4px;margin-left:2px;margin-right:2px}.jconfirm .jconfirm-box .jconfirm-buttons button{display:inline-block;padding:6px 12px;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:4px;min-height:1em;-webkit-transition:opacity .1s ease,background-color .1s ease,color .1s ease,background .1s ease,-webkit-box-shadow .1s ease;transition:opacity .1s ease,background-color .1s ease,color .1s ease,background .1s ease,-webkit-box-shadow .1s ease;transition:opacity .1s ease,background-color .1s ease,color .1s ease,box-shadow .1s ease,background .1s ease;transition:opacity .1s ease,background-color .1s ease,color .1s ease,box-shadow .1s ease,background .1s ease,-webkit-box-shadow .1s ease;-webkit-tap-highlight-color:transparent;border:0;background-image:none}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-blue{background-color:#3498db;color:#FFF;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-blue:hover{background-color:#2980b9;color:#FFF}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-green{background-color:#2ecc71;color:#FFF;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-green:hover{background-color:#27ae60;color:#FFF}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-red{background-color:#e74c3c;color:#FFF;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-red:hover{background-color:#c0392b;color:#FFF}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-orange{background-color:#f1c40f;color:#FFF;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-orange:hover{background-color:#f39c12;color:#FFF}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-default{background-color:#ecf0f1;color:#000;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-default:hover{background-color:#bdc3c7;color:#000}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-purple{background-color:#9b59b6;color:#FFF;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-purple:hover{background-color:#8e44ad;color:#FFF}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-dark{background-color:#34495e;color:#FFF;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-dark:hover{background-color:#2c3e50;color:#FFF}.jconfirm .jconfirm-box.jconfirm-type-red .jconfirm-title-c .jconfirm-icon-c{color:#e74c3c!important}.jconfirm .jconfirm-box.jconfirm-type-blue .jconfirm-title-c .jconfirm-icon-c{color:#3498db!important}.jconfirm .jconfirm-box.jconfirm-type-green .jconfirm-title-c .jconfirm-icon-c{color:#2ecc71!important}.jconfirm .jconfirm-box.jconfirm-type-purple .jconfirm-title-c .jconfirm-icon-c{color:#9b59b6!important}.jconfirm .jconfirm-box.jconfirm-type-orange .jconfirm-title-c .jconfirm-icon-c{color:#f1c40f!important}.jconfirm .jconfirm-box.jconfirm-type-dark .jconfirm-title-c .jconfirm-icon-c{color:#34495e!important}.jconfirm .jconfirm-clear{clear:both}.jconfirm.jconfirm-rtl{direction:rtl}.jconfirm.jconfirm-rtl div.jconfirm-closeIcon{left:5px;right:auto}.jconfirm.jconfirm-white .jconfirm-bg,.jconfirm.jconfirm-light .jconfirm-bg{background-color:#444;opacity:.2}.jconfirm.jconfirm-white .jconfirm-box,.jconfirm.jconfirm-light .jconfirm-box{-webkit-box-shadow:0 2px 6px rgba(0,0,0,0.2);box-shadow:0 2px 6px rgba(0,0,0,0.2);border-radius:5px}.jconfirm.jconfirm-white .jconfirm-box .jconfirm-title-c .jconfirm-icon-c,.jconfirm.jconfirm-light .jconfirm-box .jconfirm-title-c .jconfirm-icon-c{margin-right:8px;margin-left:0}.jconfirm.jconfirm-white .jconfirm-box .jconfirm-buttons,.jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons{float:right}.jconfirm.jconfirm-white .jconfirm-box .jconfirm-buttons button,.jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button{text-transform:uppercase;font-size:14px;font-weight:bold;text-shadow:none}.jconfirm.jconfirm-white .jconfirm-box .jconfirm-buttons button.btn-default,.jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button.btn-default{-webkit-box-shadow:none;box-shadow:none;color:#333}.jconfirm.jconfirm-white .jconfirm-box .jconfirm-buttons button.btn-default:hover,.jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button.btn-default:hover{background:#ddd}.jconfirm.jconfirm-white.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c,.jconfirm.jconfirm-light.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c{margin-left:8px;margin-right:0}.jconfirm.jconfirm-black .jconfirm-bg,.jconfirm.jconfirm-dark .jconfirm-bg{background-color:darkslategray;opacity:.4}.jconfirm.jconfirm-black .jconfirm-box,.jconfirm.jconfirm-dark .jconfirm-box{-webkit-box-shadow:0 2px 6px rgba(0,0,0,0.2);box-shadow:0 2px 6px rgba(0,0,0,0.2);background:#444;border-radius:5px;color:white}.jconfirm.jconfirm-black .jconfirm-box .jconfirm-title-c .jconfirm-icon-c,.jconfirm.jconfirm-dark .jconfirm-box .jconfirm-title-c .jconfirm-icon-c{margin-right:8px;margin-left:0}.jconfirm.jconfirm-black .jconfirm-box .jconfirm-buttons,.jconfirm.jconfirm-dark .jconfirm-box .jconfirm-buttons{float:right}.jconfirm.jconfirm-black .jconfirm-box .jconfirm-buttons button,.jconfirm.jconfirm-dark .jconfirm-box .jconfirm-buttons button{border:0;background-image:none;text-transform:uppercase;font-size:14px;font-weight:bold;text-shadow:none;-webkit-transition:background .1s;transition:background .1s;color:white}.jconfirm.jconfirm-black .jconfirm-box .jconfirm-buttons button.btn-default,.jconfirm.jconfirm-dark .jconfirm-box .jconfirm-buttons button.btn-default{-webkit-box-shadow:none;box-shadow:none;color:#fff;background:0}.jconfirm.jconfirm-black .jconfirm-box .jconfirm-buttons button.btn-default:hover,.jconfirm.jconfirm-dark .jconfirm-box .jconfirm-buttons button.btn-default:hover{background:#666}.jconfirm.jconfirm-black.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c,.jconfirm.jconfirm-dark.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c{margin-left:8px;margin-right:0}.jconfirm .jconfirm-box.hilight.jconfirm-hilight-shake{-webkit-animation:shake .82s cubic-bezier(0.36,0.07,0.19,0.97) both;animation:shake .82s cubic-bezier(0.36,0.07,0.19,0.97) both;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.jconfirm .jconfirm-box.hilight.jconfirm-hilight-glow{-webkit-animation:glow .82s cubic-bezier(0.36,0.07,0.19,0.97) both;animation:glow .82s cubic-bezier(0.36,0.07,0.19,0.97) both;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}@-webkit-keyframes shake{10%,90%{-webkit-transform:translate3d(-2px,0,0);transform:translate3d(-2px,0,0)}20%,80%{-webkit-transform:translate3d(4px,0,0);transform:translate3d(4px,0,0)}30%,50%,70%{-webkit-transform:translate3d(-8px,0,0);transform:translate3d(-8px,0,0)}40%,60%{-webkit-transform:translate3d(8px,0,0);transform:translate3d(8px,0,0)}}@keyframes shake{10%,90%{-webkit-transform:translate3d(-2px,0,0);transform:translate3d(-2px,0,0)}20%,80%{-webkit-transform:translate3d(4px,0,0);transform:translate3d(4px,0,0)}30%,50%,70%{-webkit-transform:translate3d(-8px,0,0);transform:translate3d(-8px,0,0)}40%,60%{-webkit-transform:translate3d(8px,0,0);transform:translate3d(8px,0,0)}}@-webkit-keyframes glow{0%,100%{-webkit-box-shadow:0 0 0 red;box-shadow:0 0 0 red}50%{-webkit-box-shadow:0 0 30px red;box-shadow:0 0 30px red}}@keyframes glow{0%,100%{-webkit-box-shadow:0 0 0 red;box-shadow:0 0 0 red}50%{-webkit-box-shadow:0 0 30px red;box-shadow:0 0 30px red}}.jconfirm{-webkit-perspective:400px;perspective:400px}.jconfirm .jconfirm-box{opacity:1;-webkit-transition-property:all;transition-property:all}.jconfirm .jconfirm-box.jconfirm-animation-top,.jconfirm .jconfirm-box.jconfirm-animation-left,.jconfirm .jconfirm-box.jconfirm-animation-right,.jconfirm .jconfirm-box.jconfirm-animation-bottom,.jconfirm .jconfirm-box.jconfirm-animation-opacity,.jconfirm .jconfirm-box.jconfirm-animation-zoom,.jconfirm .jconfirm-box.jconfirm-animation-scale,.jconfirm .jconfirm-box.jconfirm-animation-none,.jconfirm .jconfirm-box.jconfirm-animation-rotate,.jconfirm .jconfirm-box.jconfirm-animation-rotatex,.jconfirm .jconfirm-box.jconfirm-animation-rotatey,.jconfirm .jconfirm-box.jconfirm-animation-scaley,.jconfirm .jconfirm-box.jconfirm-animation-scalex{opacity:0}.jconfirm .jconfirm-box.jconfirm-animation-rotate{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.jconfirm .jconfirm-box.jconfirm-animation-rotatex{-webkit-transform:rotateX(90deg);transform:rotateX(90deg);-webkit-transform-origin:center;transform-origin:center}.jconfirm .jconfirm-box.jconfirm-animation-rotatexr{-webkit-transform:rotateX(-90deg);transform:rotateX(-90deg);-webkit-transform-origin:center;transform-origin:center}.jconfirm .jconfirm-box.jconfirm-animation-rotatey{-webkit-transform:rotatey(90deg);transform:rotatey(90deg);-webkit-transform-origin:center;transform-origin:center}.jconfirm .jconfirm-box.jconfirm-animation-rotateyr{-webkit-transform:rotatey(-90deg);transform:rotatey(-90deg);-webkit-transform-origin:center;transform-origin:center}.jconfirm .jconfirm-box.jconfirm-animation-scaley{-webkit-transform:scaley(1.5);transform:scaley(1.5);-webkit-transform-origin:center;transform-origin:center}.jconfirm .jconfirm-box.jconfirm-animation-scalex{-webkit-transform:scalex(1.5);transform:scalex(1.5);-webkit-transform-origin:center;transform-origin:center}.jconfirm .jconfirm-box.jconfirm-animation-top{-webkit-transform:translate(0px,-100px);transform:translate(0px,-100px)}.jconfirm .jconfirm-box.jconfirm-animation-left{-webkit-transform:translate(-100px,0px);transform:translate(-100px,0px)}.jconfirm .jconfirm-box.jconfirm-animation-right{-webkit-transform:translate(100px,0px);transform:translate(100px,0px)}.jconfirm .jconfirm-box.jconfirm-animation-bottom{-webkit-transform:translate(0px,100px);transform:translate(0px,100px)}.jconfirm .jconfirm-box.jconfirm-animation-zoom{-webkit-transform:scale(1.2);transform:scale(1.2)}.jconfirm .jconfirm-box.jconfirm-animation-scale{-webkit-transform:scale(0.5);transform:scale(0.5)}.jconfirm .jconfirm-box.jconfirm-animation-none{visibility:hidden}.jconfirm.jconfirm-supervan .jconfirm-bg{background-color:rgba(54,70,93,0.95)}.jconfirm.jconfirm-supervan .jconfirm-box{background-color:transparent}.jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-blue{border:0}.jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-green{border:0}.jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-red{border:0}.jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-orange{border:0}.jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-purple{border:0}.jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-dark{border:0}.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-closeIcon{color:white}.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-title-c{text-align:center;color:white;font-size:28px;font-weight:normal}.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-title-c>*{padding-bottom:25px}.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c{margin-right:8px;margin-left:0}.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-content-pane{margin-bottom:25px}.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-content{text-align:center;color:white}.jconfirm.jconfirm-supervan .jconfirm-box .jconfirm-buttons{text-align:center}.jconfirm.jconfirm-supervan .jconfirm-box .jconfirm-buttons button{font-size:16px;border-radius:2px;background:#303f53;text-shadow:none;border:0;color:white;padding:10px;min-width:100px}.jconfirm.jconfirm-supervan.jconfirm-rtl .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c{margin-left:8px;margin-right:0}.jconfirm.jconfirm-material .jconfirm-bg{background-color:rgba(0,0,0,0.67)}.jconfirm.jconfirm-material .jconfirm-box{background-color:white;-webkit-box-shadow:0 7px 8px -4px rgba(0,0,0,0.2),0 13px 19px 2px rgba(0,0,0,0.14),0 5px 24px 4px rgba(0,0,0,0.12);box-shadow:0 7px 8px -4px rgba(0,0,0,0.2),0 13px 19px 2px rgba(0,0,0,0.14),0 5px 24px 4px rgba(0,0,0,0.12);padding:30px 25px 10px 25px}.jconfirm.jconfirm-material .jconfirm-box .jconfirm-title-c .jconfirm-icon-c{margin-right:8px;margin-left:0}.jconfirm.jconfirm-material .jconfirm-box div.jconfirm-closeIcon{color:rgba(0,0,0,0.87)}.jconfirm.jconfirm-material .jconfirm-box div.jconfirm-title-c{color:rgba(0,0,0,0.87);font-size:22px;font-weight:bold}.jconfirm.jconfirm-material .jconfirm-box div.jconfirm-content{color:rgba(0,0,0,0.87)}.jconfirm.jconfirm-material .jconfirm-box .jconfirm-buttons{text-align:right}.jconfirm.jconfirm-material .jconfirm-box .jconfirm-buttons button{text-transform:uppercase;font-weight:500}.jconfirm.jconfirm-material.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c{margin-left:8px;margin-right:0}.jconfirm.jconfirm-bootstrap .jconfirm-bg{background-color:rgba(0,0,0,0.21)}.jconfirm.jconfirm-bootstrap .jconfirm-box{background-color:white;-webkit-box-shadow:0 3px 8px 0 rgba(0,0,0,0.2);box-shadow:0 3px 8px 0 rgba(0,0,0,0.2);border:solid 1px rgba(0,0,0,0.4);padding:15px 0 0}.jconfirm.jconfirm-bootstrap .jconfirm-box .jconfirm-title-c .jconfirm-icon-c{margin-right:8px;margin-left:0}.jconfirm.jconfirm-bootstrap .jconfirm-box div.jconfirm-closeIcon{color:rgba(0,0,0,0.87)}.jconfirm.jconfirm-bootstrap .jconfirm-box div.jconfirm-title-c{color:rgba(0,0,0,0.87);font-size:22px;font-weight:bold;padding-left:15px;padding-right:15px}.jconfirm.jconfirm-bootstrap .jconfirm-box div.jconfirm-content{color:rgba(0,0,0,0.87);padding:0 15px}.jconfirm.jconfirm-bootstrap .jconfirm-box .jconfirm-buttons{text-align:right;padding:10px;margin:-5px 0 0;border-top:solid 1px #ddd;overflow:hidden;border-radius:0 0 4px 4px}.jconfirm.jconfirm-bootstrap .jconfirm-box .jconfirm-buttons button{font-weight:500}.jconfirm.jconfirm-bootstrap.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c{margin-left:8px;margin-right:0}.jconfirm.jconfirm-modern .jconfirm-bg{background-color:slategray;opacity:.6}.jconfirm.jconfirm-modern .jconfirm-box{background-color:white;-webkit-box-shadow:0 7px 8px -4px rgba(0,0,0,0.2),0 13px 19px 2px rgba(0,0,0,0.14),0 5px 24px 4px rgba(0,0,0,0.12);box-shadow:0 7px 8px -4px rgba(0,0,0,0.2),0 13px 19px 2px rgba(0,0,0,0.14),0 5px 24px 4px rgba(0,0,0,0.12);padding:30px 30px 15px}.jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-closeIcon{color:rgba(0,0,0,0.87);top:15px;right:15px}.jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-title-c{color:rgba(0,0,0,0.87);font-size:24px;font-weight:bold;text-align:center;margin-bottom:10px}.jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c{-webkit-transition:-webkit-transform .5s;transition:-webkit-transform .5s;transition:transform .5s;transition:transform .5s,-webkit-transform .5s;-webkit-transform:scale(0);transform:scale(0);display:block;margin-right:0;margin-left:0;margin-bottom:10px;font-size:69px;color:#aaa}.jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-content{text-align:center;font-size:15px;color:#777;margin-bottom:25px}.jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons{text-align:center}.jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons button{font-weight:bold;text-transform:uppercase;-webkit-transition:background .1s;transition:background .1s;padding:10px 20px}.jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons button+button{margin-left:4px}.jconfirm.jconfirm-modern.jconfirm-open .jconfirm-box .jconfirm-title-c .jconfirm-icon-c{-webkit-transform:scale(1);transform:scale(1)}
|
assets/libs/jquery-confirm.min.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
/*!
|
2 |
-
* jquery-confirm v3.3.4 (http://craftpip.github.io/jquery-confirm/)
|
3 |
-
* Author: Boniface Pereira
|
4 |
-
* Website: www.craftpip.com
|
5 |
-
* Contact: hey@craftpip.com
|
6 |
-
*
|
7 |
-
* Copyright 2013-2019 jquery-confirm
|
8 |
-
* Licensed under MIT (https://github.com/craftpip/jquery-confirm/blob/master/LICENSE)
|
9 |
-
*/
|
10 |
(function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],factory);}else{if(typeof module==="object"&&module.exports){module.exports=function(root,jQuery){if(jQuery===undefined){if(typeof window!=="undefined"){jQuery=require("jquery");}else{jQuery=require("jquery")(root);}}factory(jQuery);return jQuery;};}else{factory(jQuery);}}}(function($){var w=window;$.fn.confirm=function(options,option2){if(typeof options==="undefined"){options={};}if(typeof options==="string"){options={content:options,title:(option2)?option2:false};}$(this).each(function(){var $this=$(this);if($this.attr("jc-attached")){console.warn("jConfirm has already been attached to this element ",$this[0]);return;}$this.on("click",function(e){e.preventDefault();var jcOption=$.extend({},options);if($this.attr("data-title")){jcOption.title=$this.attr("data-title");}if($this.attr("data-content")){jcOption.content=$this.attr("data-content");}if(typeof jcOption.buttons==="undefined"){jcOption.buttons={};}jcOption["$target"]=$this;if($this.attr("href")&&Object.keys(jcOption.buttons).length===0){var buttons=$.extend(true,{},w.jconfirm.pluginDefaults.defaultButtons,(w.jconfirm.defaults||{}).defaultButtons||{});var firstBtn=Object.keys(buttons)[0];jcOption.buttons=buttons;jcOption.buttons[firstBtn].action=function(){location.href=$this.attr("href");};}jcOption.closeIcon=false;var instance=$.confirm(jcOption);});$this.attr("jc-attached",true);});return $(this);};$.confirm=function(options,option2){if(typeof options==="undefined"){options={};}if(typeof options==="string"){options={content:options,title:(option2)?option2:false};}var putDefaultButtons=!(options.buttons===false);if(typeof options.buttons!=="object"){options.buttons={};}if(Object.keys(options.buttons).length===0&&putDefaultButtons){var buttons=$.extend(true,{},w.jconfirm.pluginDefaults.defaultButtons,(w.jconfirm.defaults||{}).defaultButtons||{});options.buttons=buttons;}return w.jconfirm(options);};$.alert=function(options,option2){if(typeof options==="undefined"){options={};}if(typeof options==="string"){options={content:options,title:(option2)?option2:false};}var putDefaultButtons=!(options.buttons===false);if(typeof options.buttons!=="object"){options.buttons={};}if(Object.keys(options.buttons).length===0&&putDefaultButtons){var buttons=$.extend(true,{},w.jconfirm.pluginDefaults.defaultButtons,(w.jconfirm.defaults||{}).defaultButtons||{});var firstBtn=Object.keys(buttons)[0];options.buttons[firstBtn]=buttons[firstBtn];}return w.jconfirm(options);};$.dialog=function(options,option2){if(typeof options==="undefined"){options={};}if(typeof options==="string"){options={content:options,title:(option2)?option2:false,closeIcon:function(){}};}options.buttons={};if(typeof options.closeIcon==="undefined"){options.closeIcon=function(){};}options.confirmKeys=[13];return w.jconfirm(options);};w.jconfirm=function(options){if(typeof options==="undefined"){options={};}var pluginOptions=$.extend(true,{},w.jconfirm.pluginDefaults);if(w.jconfirm.defaults){pluginOptions=$.extend(true,pluginOptions,w.jconfirm.defaults);}pluginOptions=$.extend(true,{},pluginOptions,options);var instance=new w.Jconfirm(pluginOptions);w.jconfirm.instances.push(instance);return instance;};w.Jconfirm=function(options){$.extend(this,options);this._init();};w.Jconfirm.prototype={_init:function(){var that=this;if(!w.jconfirm.instances.length){w.jconfirm.lastFocused=$("body").find(":focus");}this._id=Math.round(Math.random()*99999);this.contentParsed=$(document.createElement("div"));if(!this.lazyOpen){setTimeout(function(){that.open();},0);}},_buildHTML:function(){var that=this;this._parseAnimation(this.animation,"o");this._parseAnimation(this.closeAnimation,"c");this._parseBgDismissAnimation(this.backgroundDismissAnimation);this._parseColumnClass(this.columnClass);this._parseTheme(this.theme);this._parseType(this.type);var template=$(this.template);template.find(".jconfirm-box").addClass(this.animationParsed).addClass(this.backgroundDismissAnimationParsed).addClass(this.typeParsed);if(this.typeAnimated){template.find(".jconfirm-box").addClass("jconfirm-type-animated");}if(this.useBootstrap){template.find(".jc-bs3-row").addClass(this.bootstrapClasses.row);template.find(".jc-bs3-row").addClass("justify-content-md-center justify-content-sm-center justify-content-xs-center justify-content-lg-center");template.find(".jconfirm-box-container").addClass(this.columnClassParsed);if(this.containerFluid){template.find(".jc-bs3-container").addClass(this.bootstrapClasses.containerFluid);}else{template.find(".jc-bs3-container").addClass(this.bootstrapClasses.container);}}else{template.find(".jconfirm-box").css("width",this.boxWidth);}if(this.titleClass){template.find(".jconfirm-title-c").addClass(this.titleClass);}template.addClass(this.themeParsed);var ariaLabel="jconfirm-box"+this._id;template.find(".jconfirm-box").attr("aria-labelledby",ariaLabel).attr("tabindex",-1);template.find(".jconfirm-content").attr("id",ariaLabel);if(this.bgOpacity!==null){template.find(".jconfirm-bg").css("opacity",this.bgOpacity);}if(this.rtl){template.addClass("jconfirm-rtl");}this.$el=template.appendTo(this.container);this.$jconfirmBoxContainer=this.$el.find(".jconfirm-box-container");this.$jconfirmBox=this.$body=this.$el.find(".jconfirm-box");this.$jconfirmBg=this.$el.find(".jconfirm-bg");this.$title=this.$el.find(".jconfirm-title");this.$titleContainer=this.$el.find(".jconfirm-title-c");this.$content=this.$el.find("div.jconfirm-content");this.$contentPane=this.$el.find(".jconfirm-content-pane");this.$icon=this.$el.find(".jconfirm-icon-c");this.$closeIcon=this.$el.find(".jconfirm-closeIcon");this.$holder=this.$el.find(".jconfirm-holder");this.$btnc=this.$el.find(".jconfirm-buttons");this.$scrollPane=this.$el.find(".jconfirm-scrollpane");that.setStartingPoint();this._contentReady=$.Deferred();this._modalReady=$.Deferred();this.$holder.css({"padding-top":this.offsetTop,"padding-bottom":this.offsetBottom,});this.setTitle();this.setIcon();this._setButtons();this._parseContent();this.initDraggable();if(this.isAjax){this.showLoading(false);}$.when(this._contentReady,this._modalReady).then(function(){if(that.isAjaxLoading){setTimeout(function(){that.isAjaxLoading=false;that.setContent();that.setTitle();that.setIcon();setTimeout(function(){that.hideLoading(false);that._updateContentMaxHeight();},100);if(typeof that.onContentReady==="function"){that.onContentReady();}},50);}else{that._updateContentMaxHeight();that.setTitle();that.setIcon();if(typeof that.onContentReady==="function"){that.onContentReady();}}if(that.autoClose){that._startCountDown();}}).then(function(){that._watchContent();});if(this.animation==="none"){this.animationSpeed=1;this.animationBounce=1;}this.$body.css(this._getCSS(this.animationSpeed,this.animationBounce));this.$contentPane.css(this._getCSS(this.animationSpeed,1));this.$jconfirmBg.css(this._getCSS(this.animationSpeed,1));this.$jconfirmBoxContainer.css(this._getCSS(this.animationSpeed,1));},_typePrefix:"jconfirm-type-",typeParsed:"",_parseType:function(type){this.typeParsed=this._typePrefix+type;},setType:function(type){var oldClass=this.typeParsed;this._parseType(type);this.$jconfirmBox.removeClass(oldClass).addClass(this.typeParsed);},themeParsed:"",_themePrefix:"jconfirm-",setTheme:function(theme){var previous=this.theme;this.theme=theme||this.theme;this._parseTheme(this.theme);if(previous){this.$el.removeClass(previous);}this.$el.addClass(this.themeParsed);this.theme=theme;},_parseTheme:function(theme){var that=this;theme=theme.split(",");$.each(theme,function(k,a){if(a.indexOf(that._themePrefix)===-1){theme[k]=that._themePrefix+$.trim(a);}});this.themeParsed=theme.join(" ").toLowerCase();},backgroundDismissAnimationParsed:"",_bgDismissPrefix:"jconfirm-hilight-",_parseBgDismissAnimation:function(bgDismissAnimation){var animation=bgDismissAnimation.split(",");var that=this;$.each(animation,function(k,a){if(a.indexOf(that._bgDismissPrefix)===-1){animation[k]=that._bgDismissPrefix+$.trim(a);}});this.backgroundDismissAnimationParsed=animation.join(" ").toLowerCase();},animationParsed:"",closeAnimationParsed:"",_animationPrefix:"jconfirm-animation-",setAnimation:function(animation){this.animation=animation||this.animation;this._parseAnimation(this.animation,"o");},_parseAnimation:function(animation,which){which=which||"o";var animations=animation.split(",");var that=this;$.each(animations,function(k,a){if(a.indexOf(that._animationPrefix)===-1){animations[k]=that._animationPrefix+$.trim(a);}});var a_string=animations.join(" ").toLowerCase();if(which==="o"){this.animationParsed=a_string;}else{this.closeAnimationParsed=a_string;}return a_string;},setCloseAnimation:function(closeAnimation){this.closeAnimation=closeAnimation||this.closeAnimation;this._parseAnimation(this.closeAnimation,"c");},setAnimationSpeed:function(speed){this.animationSpeed=speed||this.animationSpeed;},columnClassParsed:"",setColumnClass:function(colClass){if(!this.useBootstrap){console.warn("cannot set columnClass, useBootstrap is set to false");return;}this.columnClass=colClass||this.columnClass;this._parseColumnClass(this.columnClass);this.$jconfirmBoxContainer.addClass(this.columnClassParsed);},_updateContentMaxHeight:function(){var height=$(window).height()-(this.$jconfirmBox.outerHeight()-this.$contentPane.outerHeight())-(this.offsetTop+this.offsetBottom);this.$contentPane.css({"max-height":height+"px"});},setBoxWidth:function(width){if(this.useBootstrap){console.warn("cannot set boxWidth, useBootstrap is set to true");return;}this.boxWidth=width;this.$jconfirmBox.css("width",width);},_parseColumnClass:function(colClass){colClass=colClass.toLowerCase();var p;switch(colClass){case"xl":case"xlarge":p="col-md-12";break;case"l":case"large":p="col-md-8 col-md-offset-2";break;case"m":case"medium":p="col-md-6 col-md-offset-3";break;case"s":case"small":p="col-md-4 col-md-offset-4";break;case"xs":case"xsmall":p="col-md-2 col-md-offset-5";break;default:p=colClass;}this.columnClassParsed=p;},initDraggable:function(){var that=this;var $t=this.$titleContainer;this.resetDrag();if(this.draggable){$t.on("mousedown",function(e){$t.addClass("jconfirm-hand");that.mouseX=e.clientX;that.mouseY=e.clientY;that.isDrag=true;});$(window).on("mousemove."+this._id,function(e){if(that.isDrag){that.movingX=e.clientX-that.mouseX+that.initialX;that.movingY=e.clientY-that.mouseY+that.initialY;that.setDrag();}});$(window).on("mouseup."+this._id,function(){$t.removeClass("jconfirm-hand");if(that.isDrag){that.isDrag=false;that.initialX=that.movingX;that.initialY=that.movingY;}});}},resetDrag:function(){this.isDrag=false;this.initialX=0;this.initialY=0;this.movingX=0;this.movingY=0;this.mouseX=0;this.mouseY=0;this.$jconfirmBoxContainer.css("transform","translate("+0+"px, "+0+"px)");},setDrag:function(){if(!this.draggable){return;}this.alignMiddle=false;var boxWidth=this.$jconfirmBox.outerWidth();var boxHeight=this.$jconfirmBox.outerHeight();var windowWidth=$(window).width();var windowHeight=$(window).height();var that=this;var dragUpdate=1;if(that.movingX%dragUpdate===0||that.movingY%dragUpdate===0){if(that.dragWindowBorder){var leftDistance=(windowWidth/2)-boxWidth/2;var topDistance=(windowHeight/2)-boxHeight/2;topDistance-=that.dragWindowGap;leftDistance-=that.dragWindowGap;if(leftDistance+that.movingX<0){that.movingX=-leftDistance;}else{if(leftDistance-that.movingX<0){that.movingX=leftDistance;}}if(topDistance+that.movingY<0){that.movingY=-topDistance;}else{if(topDistance-that.movingY<0){that.movingY=topDistance;}}}that.$jconfirmBoxContainer.css("transform","translate("+that.movingX+"px, "+that.movingY+"px)");}},_scrollTop:function(){if(typeof pageYOffset!=="undefined"){return pageYOffset;}else{var B=document.body;var D=document.documentElement;D=(D.clientHeight)?D:B;return D.scrollTop;}},_watchContent:function(){var that=this;if(this._timer){clearInterval(this._timer);}var prevContentHeight=0;this._timer=setInterval(function(){if(that.smoothContent){var contentHeight=that.$content.outerHeight()||0;if(contentHeight!==prevContentHeight){prevContentHeight=contentHeight;}var wh=$(window).height();var total=that.offsetTop+that.offsetBottom+that.$jconfirmBox.height()-that.$contentPane.height()+that.$content.height();if(total<wh){that.$contentPane.addClass("no-scroll");}else{that.$contentPane.removeClass("no-scroll");}}},this.watchInterval);},_overflowClass:"jconfirm-overflow",_hilightAnimating:false,highlight:function(){this.hiLightModal();},hiLightModal:function(){var that=this;if(this._hilightAnimating){return;}that.$body.addClass("hilight");var duration=parseFloat(that.$body.css("animation-duration"))||2;this._hilightAnimating=true;setTimeout(function(){that._hilightAnimating=false;that.$body.removeClass("hilight");},duration*1000);},_bindEvents:function(){var that=this;this.boxClicked=false;this.$scrollPane.click(function(e){if(!that.boxClicked){var buttonName=false;var shouldClose=false;var str;if(typeof that.backgroundDismiss==="function"){str=that.backgroundDismiss();}else{str=that.backgroundDismiss;}if(typeof str==="string"&&typeof that.buttons[str]!=="undefined"){buttonName=str;shouldClose=false;}else{if(typeof str==="undefined"||!!(str)===true){shouldClose=true;}else{shouldClose=false;}}if(buttonName){var btnResponse=that.buttons[buttonName].action.apply(that);shouldClose=(typeof btnResponse==="undefined")||!!(btnResponse);}if(shouldClose){that.close();}else{that.hiLightModal();}}that.boxClicked=false;});this.$jconfirmBox.click(function(e){that.boxClicked=true;});var isKeyDown=false;$(window).on("jcKeyDown."+that._id,function(e){if(!isKeyDown){isKeyDown=true;}});$(window).on("keyup."+that._id,function(e){if(isKeyDown){that.reactOnKey(e);isKeyDown=false;}});$(window).on("resize."+this._id,function(){that._updateContentMaxHeight();setTimeout(function(){that.resetDrag();},100);});},_cubic_bezier:"0.36, 0.55, 0.19",_getCSS:function(speed,bounce){return{"-webkit-transition-duration":speed/1000+"s","transition-duration":speed/1000+"s","-webkit-transition-timing-function":"cubic-bezier("+this._cubic_bezier+", "+bounce+")","transition-timing-function":"cubic-bezier("+this._cubic_bezier+", "+bounce+")"};},_setButtons:function(){var that=this;var total_buttons=0;if(typeof this.buttons!=="object"){this.buttons={};}$.each(this.buttons,function(key,button){total_buttons+=1;if(typeof button==="function"){that.buttons[key]=button={action:button};}that.buttons[key].text=button.text||key;that.buttons[key].btnClass=button.btnClass||"btn-default";that.buttons[key].action=button.action||function(){};that.buttons[key].keys=button.keys||[];that.buttons[key].isHidden=button.isHidden||false;that.buttons[key].isDisabled=button.isDisabled||false;$.each(that.buttons[key].keys,function(i,a){that.buttons[key].keys[i]=a.toLowerCase();});var button_element=$('<button type="button" class="btn"></button>').html(that.buttons[key].text).addClass(that.buttons[key].btnClass).prop("disabled",that.buttons[key].isDisabled).css("display",that.buttons[key].isHidden?"none":"").click(function(e){e.preventDefault();var res=that.buttons[key].action.apply(that,[that.buttons[key]]);that.onAction.apply(that,[key,that.buttons[key]]);that._stopCountDown();if(typeof res==="undefined"||res){that.close();}});that.buttons[key].el=button_element;that.buttons[key].setText=function(text){button_element.html(text);};that.buttons[key].addClass=function(className){button_element.addClass(className);};that.buttons[key].removeClass=function(className){button_element.removeClass(className);};that.buttons[key].disable=function(){that.buttons[key].isDisabled=true;button_element.prop("disabled",true);};that.buttons[key].enable=function(){that.buttons[key].isDisabled=false;button_element.prop("disabled",false);};that.buttons[key].show=function(){that.buttons[key].isHidden=false;button_element.css("display","");};that.buttons[key].hide=function(){that.buttons[key].isHidden=true;button_element.css("display","none");};that["$_"+key]=that["$$"+key]=button_element;that.$btnc.append(button_element);});if(total_buttons===0){this.$btnc.hide();}if(this.closeIcon===null&&total_buttons===0){this.closeIcon=true;}if(this.closeIcon){if(this.closeIconClass){var closeHtml='<i class="'+this.closeIconClass+'"></i>';this.$closeIcon.html(closeHtml);}this.$closeIcon.click(function(e){e.preventDefault();var buttonName=false;var shouldClose=false;var str;if(typeof that.closeIcon==="function"){str=that.closeIcon();}else{str=that.closeIcon;}if(typeof str==="string"&&typeof that.buttons[str]!=="undefined"){buttonName=str;shouldClose=false;}else{if(typeof str==="undefined"||!!(str)===true){shouldClose=true;}else{shouldClose=false;}}if(buttonName){var btnResponse=that.buttons[buttonName].action.apply(that);shouldClose=(typeof btnResponse==="undefined")||!!(btnResponse);}if(shouldClose){that.close();}});this.$closeIcon.show();}else{this.$closeIcon.hide();}},setTitle:function(string,force){force=force||false;if(typeof string!=="undefined"){if(typeof string==="string"){this.title=string;}else{if(typeof string==="function"){if(typeof string.promise==="function"){console.error("Promise was returned from title function, this is not supported.");}var response=string();if(typeof response==="string"){this.title=response;}else{this.title=false;}}else{this.title=false;}}}if(this.isAjaxLoading&&!force){return;}this.$title.html(this.title||"");this.updateTitleContainer();},setIcon:function(iconClass,force){force=force||false;if(typeof iconClass!=="undefined"){if(typeof iconClass==="string"){this.icon=iconClass;}else{if(typeof iconClass==="function"){var response=iconClass();if(typeof response==="string"){this.icon=response;}else{this.icon=false;}}else{this.icon=false;}}}if(this.isAjaxLoading&&!force){return;}this.$icon.html(this.icon?'<i class="'+this.icon+'"></i>':"");this.updateTitleContainer();},updateTitleContainer:function(){if(!this.title&&!this.icon){this.$titleContainer.hide();}else{this.$titleContainer.show();}},setContentPrepend:function(content,force){if(!content){return;}this.contentParsed.prepend(content);},setContentAppend:function(content){if(!content){return;}this.contentParsed.append(content);},setContent:function(content,force){force=!!force;var that=this;if(content){this.contentParsed.html("").append(content);}if(this.isAjaxLoading&&!force){return;}this.$content.html("");this.$content.append(this.contentParsed);setTimeout(function(){that.$body.find("input[autofocus]:visible:first").focus();},100);},loadingSpinner:false,showLoading:function(disableButtons){this.loadingSpinner=true;this.$jconfirmBox.addClass("loading");if(disableButtons){this.$btnc.find("button").prop("disabled",true);}},hideLoading:function(enableButtons){this.loadingSpinner=false;this.$jconfirmBox.removeClass("loading");if(enableButtons){this.$btnc.find("button").prop("disabled",false);}},ajaxResponse:false,contentParsed:"",isAjax:false,isAjaxLoading:false,_parseContent:function(){var that=this;var e=" ";if(typeof this.content==="function"){var res=this.content.apply(this);if(typeof res==="string"){this.content=res;}else{if(typeof res==="object"&&typeof res.always==="function"){this.isAjax=true;this.isAjaxLoading=true;res.always(function(data,status,xhr){that.ajaxResponse={data:data,status:status,xhr:xhr};that._contentReady.resolve(data,status,xhr);if(typeof that.contentLoaded==="function"){that.contentLoaded(data,status,xhr);}});this.content=e;}else{this.content=e;}}}if(typeof this.content==="string"&&this.content.substr(0,4).toLowerCase()==="url:"){this.isAjax=true;this.isAjaxLoading=true;var u=this.content.substring(4,this.content.length);$.get(u).done(function(html){that.contentParsed.html(html);}).always(function(data,status,xhr){that.ajaxResponse={data:data,status:status,xhr:xhr};that._contentReady.resolve(data,status,xhr);if(typeof that.contentLoaded==="function"){that.contentLoaded(data,status,xhr);}});}if(!this.content){this.content=e;}if(!this.isAjax){this.contentParsed.html(this.content);this.setContent();that._contentReady.resolve();}},_stopCountDown:function(){clearInterval(this.autoCloseInterval);if(this.$cd){this.$cd.remove();}},_startCountDown:function(){var that=this;var opt=this.autoClose.split("|");if(opt.length!==2){console.error("Invalid option for autoClose. example 'close|10000'");return false;}var button_key=opt[0];var time=parseInt(opt[1]);if(typeof this.buttons[button_key]==="undefined"){console.error("Invalid button key '"+button_key+"' for autoClose");return false;}var seconds=Math.ceil(time/1000);this.$cd=$('<span class="countdown"> ('+seconds+")</span>").appendTo(this["$_"+button_key]);this.autoCloseInterval=setInterval(function(){that.$cd.html(" ("+(seconds-=1)+") ");if(seconds<=0){that["$$"+button_key].trigger("click");that._stopCountDown();}},1000);},_getKey:function(key){switch(key){case 192:return"tilde";case 13:return"enter";case 16:return"shift";case 9:return"tab";case 20:return"capslock";case 17:return"ctrl";case 91:return"win";case 18:return"alt";case 27:return"esc";case 32:return"space";}var initial=String.fromCharCode(key);if(/^[A-z0-9]+$/.test(initial)){return initial.toLowerCase();}else{return false;}},reactOnKey:function(e){var that=this;var a=$(".jconfirm");if(a.eq(a.length-1)[0]!==this.$el[0]){return false;}var key=e.which;if(this.$content.find(":input").is(":focus")&&/13|32/.test(key)){return false;}var keyChar=this._getKey(key);if(keyChar==="esc"&&this.escapeKey){if(this.escapeKey===true){this.$scrollPane.trigger("click");}else{if(typeof this.escapeKey==="string"||typeof this.escapeKey==="function"){var buttonKey;if(typeof this.escapeKey==="function"){buttonKey=this.escapeKey();}else{buttonKey=this.escapeKey;}if(buttonKey){if(typeof this.buttons[buttonKey]==="undefined"){console.warn("Invalid escapeKey, no buttons found with key "+buttonKey);}else{this["$_"+buttonKey].trigger("click");}}}}}$.each(this.buttons,function(key,button){if(button.keys.indexOf(keyChar)!==-1){that["$_"+key].trigger("click");}});},setDialogCenter:function(){console.info("setDialogCenter is deprecated, dialogs are centered with CSS3 tables");},_unwatchContent:function(){clearInterval(this._timer);},close:function(onClosePayload){var that=this;if(typeof this.onClose==="function"){this.onClose(onClosePayload);}this._unwatchContent();$(window).unbind("resize."+this._id);$(window).unbind("keyup."+this._id);$(window).unbind("jcKeyDown."+this._id);if(this.draggable){$(window).unbind("mousemove."+this._id);$(window).unbind("mouseup."+this._id);this.$titleContainer.unbind("mousedown");}that.$el.removeClass(that.loadedClass);$("body").removeClass("jconfirm-no-scroll-"+that._id);that.$jconfirmBoxContainer.removeClass("jconfirm-no-transition");setTimeout(function(){that.$body.addClass(that.closeAnimationParsed);that.$jconfirmBg.addClass("jconfirm-bg-h");var closeTimer=(that.closeAnimation==="none")?1:that.animationSpeed;setTimeout(function(){that.$el.remove();var l=w.jconfirm.instances;var i=w.jconfirm.instances.length-1;for(i;i>=0;i--){if(w.jconfirm.instances[i]._id===that._id){w.jconfirm.instances.splice(i,1);}}if(!w.jconfirm.instances.length){if(that.scrollToPreviousElement&&w.jconfirm.lastFocused&&w.jconfirm.lastFocused.length&&$.contains(document,w.jconfirm.lastFocused[0])){var $lf=w.jconfirm.lastFocused;if(that.scrollToPreviousElementAnimate){var st=$(window).scrollTop();var ot=w.jconfirm.lastFocused.offset().top;var wh=$(window).height();if(!(ot>st&&ot<(st+wh))){var scrollTo=(ot-Math.round((wh/3)));$("html, body").animate({scrollTop:scrollTo},that.animationSpeed,"swing",function(){$lf.focus();});}else{$lf.focus();}}else{$lf.focus();}w.jconfirm.lastFocused=false;}}if(typeof that.onDestroy==="function"){that.onDestroy();}},closeTimer*0.4);},50);return true;},open:function(){if(this.isOpen()){return false;}this._buildHTML();this._bindEvents();this._open();return true;},setStartingPoint:function(){var el=false;if(this.animateFromElement!==true&&this.animateFromElement){el=this.animateFromElement;w.jconfirm.lastClicked=false;}else{if(w.jconfirm.lastClicked&&this.animateFromElement===true){el=w.jconfirm.lastClicked;w.jconfirm.lastClicked=false;}else{return false;}}if(!el){return false;}var offset=el.offset();var iTop=el.outerHeight()/2;var iLeft=el.outerWidth()/2;iTop-=this.$jconfirmBox.outerHeight()/2;iLeft-=this.$jconfirmBox.outerWidth()/2;var sourceTop=offset.top+iTop;sourceTop=sourceTop-this._scrollTop();var sourceLeft=offset.left+iLeft;var wh=$(window).height()/2;var ww=$(window).width()/2;var targetH=wh-this.$jconfirmBox.outerHeight()/2;var targetW=ww-this.$jconfirmBox.outerWidth()/2;sourceTop-=targetH;sourceLeft-=targetW;if(Math.abs(sourceTop)>wh||Math.abs(sourceLeft)>ww){return false;}this.$jconfirmBoxContainer.css("transform","translate("+sourceLeft+"px, "+sourceTop+"px)");},_open:function(){var that=this;if(typeof that.onOpenBefore==="function"){that.onOpenBefore();}this.$body.removeClass(this.animationParsed);this.$jconfirmBg.removeClass("jconfirm-bg-h");this.$body.focus();that.$jconfirmBoxContainer.css("transform","translate("+0+"px, "+0+"px)");setTimeout(function(){that.$body.css(that._getCSS(that.animationSpeed,1));that.$body.css({"transition-property":that.$body.css("transition-property")+", margin"});that.$jconfirmBoxContainer.addClass("jconfirm-no-transition");that._modalReady.resolve();if(typeof that.onOpen==="function"){that.onOpen();}that.$el.addClass(that.loadedClass);},this.animationSpeed);},loadedClass:"jconfirm-open",isClosed:function(){return !this.$el||this.$el.parent().length===0;},isOpen:function(){return !this.isClosed();},toggle:function(){if(!this.isOpen()){this.open();}else{this.close();}}};w.jconfirm.instances=[];w.jconfirm.lastFocused=false;w.jconfirm.pluginDefaults={template:'<div class="jconfirm"><div class="jconfirm-bg jconfirm-bg-h"></div><div class="jconfirm-scrollpane"><div class="jconfirm-row"><div class="jconfirm-cell"><div class="jconfirm-holder"><div class="jc-bs3-container"><div class="jc-bs3-row"><div class="jconfirm-box-container jconfirm-animated"><div class="jconfirm-box" role="dialog" aria-labelledby="labelled" tabindex="-1"><div class="jconfirm-closeIcon">×</div><div class="jconfirm-title-c"><span class="jconfirm-icon-c"></span><span class="jconfirm-title"></span></div><div class="jconfirm-content-pane"><div class="jconfirm-content"></div></div><div class="jconfirm-buttons"></div><div class="jconfirm-clear"></div></div></div></div></div></div></div></div></div></div>',title:"Hello",titleClass:"",type:"default",typeAnimated:true,draggable:true,dragWindowGap:15,dragWindowBorder:true,animateFromElement:true,alignMiddle:true,smoothContent:true,content:"Are you sure to continue?",buttons:{},defaultButtons:{ok:{action:function(){}},close:{action:function(){}}},contentLoaded:function(){},icon:"",lazyOpen:false,bgOpacity:null,theme:"light",animation:"scale",closeAnimation:"scale",animationSpeed:400,animationBounce:1,escapeKey:true,rtl:false,container:"body",containerFluid:false,backgroundDismiss:false,backgroundDismissAnimation:"shake",autoClose:false,closeIcon:null,closeIconClass:false,watchInterval:100,columnClass:"col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1",boxWidth:"50%",scrollToPreviousElement:true,scrollToPreviousElementAnimate:true,useBootstrap:true,offsetTop:40,offsetBottom:40,bootstrapClasses:{container:"container",containerFluid:"container-fluid",row:"row"},onContentReady:function(){},onOpenBefore:function(){},onOpen:function(){},onClose:function(){},onDestroy:function(){},onAction:function(){}};var keyDown=false;$(window).on("keydown",function(e){if(!keyDown){var $target=$(e.target);var pass=false;if($target.closest(".jconfirm-box").length){pass=true;}if(pass){$(window).trigger("jcKeyDown");}keyDown=true;}});$(window).on("keyup",function(){keyDown=false;});w.jconfirm.lastClicked=false;$(document).on("mousedown","button, a, [jc-source]",function(){w.jconfirm.lastClicked=$(this);});}));
|
1 |
+
/*!
|
2 |
+
* jquery-confirm v3.3.4 (http://craftpip.github.io/jquery-confirm/)
|
3 |
+
* Author: Boniface Pereira
|
4 |
+
* Website: www.craftpip.com
|
5 |
+
* Contact: hey@craftpip.com
|
6 |
+
*
|
7 |
+
* Copyright 2013-2019 jquery-confirm
|
8 |
+
* Licensed under MIT (https://github.com/craftpip/jquery-confirm/blob/master/LICENSE)
|
9 |
+
*/
|
10 |
(function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],factory);}else{if(typeof module==="object"&&module.exports){module.exports=function(root,jQuery){if(jQuery===undefined){if(typeof window!=="undefined"){jQuery=require("jquery");}else{jQuery=require("jquery")(root);}}factory(jQuery);return jQuery;};}else{factory(jQuery);}}}(function($){var w=window;$.fn.confirm=function(options,option2){if(typeof options==="undefined"){options={};}if(typeof options==="string"){options={content:options,title:(option2)?option2:false};}$(this).each(function(){var $this=$(this);if($this.attr("jc-attached")){console.warn("jConfirm has already been attached to this element ",$this[0]);return;}$this.on("click",function(e){e.preventDefault();var jcOption=$.extend({},options);if($this.attr("data-title")){jcOption.title=$this.attr("data-title");}if($this.attr("data-content")){jcOption.content=$this.attr("data-content");}if(typeof jcOption.buttons==="undefined"){jcOption.buttons={};}jcOption["$target"]=$this;if($this.attr("href")&&Object.keys(jcOption.buttons).length===0){var buttons=$.extend(true,{},w.jconfirm.pluginDefaults.defaultButtons,(w.jconfirm.defaults||{}).defaultButtons||{});var firstBtn=Object.keys(buttons)[0];jcOption.buttons=buttons;jcOption.buttons[firstBtn].action=function(){location.href=$this.attr("href");};}jcOption.closeIcon=false;var instance=$.confirm(jcOption);});$this.attr("jc-attached",true);});return $(this);};$.confirm=function(options,option2){if(typeof options==="undefined"){options={};}if(typeof options==="string"){options={content:options,title:(option2)?option2:false};}var putDefaultButtons=!(options.buttons===false);if(typeof options.buttons!=="object"){options.buttons={};}if(Object.keys(options.buttons).length===0&&putDefaultButtons){var buttons=$.extend(true,{},w.jconfirm.pluginDefaults.defaultButtons,(w.jconfirm.defaults||{}).defaultButtons||{});options.buttons=buttons;}return w.jconfirm(options);};$.alert=function(options,option2){if(typeof options==="undefined"){options={};}if(typeof options==="string"){options={content:options,title:(option2)?option2:false};}var putDefaultButtons=!(options.buttons===false);if(typeof options.buttons!=="object"){options.buttons={};}if(Object.keys(options.buttons).length===0&&putDefaultButtons){var buttons=$.extend(true,{},w.jconfirm.pluginDefaults.defaultButtons,(w.jconfirm.defaults||{}).defaultButtons||{});var firstBtn=Object.keys(buttons)[0];options.buttons[firstBtn]=buttons[firstBtn];}return w.jconfirm(options);};$.dialog=function(options,option2){if(typeof options==="undefined"){options={};}if(typeof options==="string"){options={content:options,title:(option2)?option2:false,closeIcon:function(){}};}options.buttons={};if(typeof options.closeIcon==="undefined"){options.closeIcon=function(){};}options.confirmKeys=[13];return w.jconfirm(options);};w.jconfirm=function(options){if(typeof options==="undefined"){options={};}var pluginOptions=$.extend(true,{},w.jconfirm.pluginDefaults);if(w.jconfirm.defaults){pluginOptions=$.extend(true,pluginOptions,w.jconfirm.defaults);}pluginOptions=$.extend(true,{},pluginOptions,options);var instance=new w.Jconfirm(pluginOptions);w.jconfirm.instances.push(instance);return instance;};w.Jconfirm=function(options){$.extend(this,options);this._init();};w.Jconfirm.prototype={_init:function(){var that=this;if(!w.jconfirm.instances.length){w.jconfirm.lastFocused=$("body").find(":focus");}this._id=Math.round(Math.random()*99999);this.contentParsed=$(document.createElement("div"));if(!this.lazyOpen){setTimeout(function(){that.open();},0);}},_buildHTML:function(){var that=this;this._parseAnimation(this.animation,"o");this._parseAnimation(this.closeAnimation,"c");this._parseBgDismissAnimation(this.backgroundDismissAnimation);this._parseColumnClass(this.columnClass);this._parseTheme(this.theme);this._parseType(this.type);var template=$(this.template);template.find(".jconfirm-box").addClass(this.animationParsed).addClass(this.backgroundDismissAnimationParsed).addClass(this.typeParsed);if(this.typeAnimated){template.find(".jconfirm-box").addClass("jconfirm-type-animated");}if(this.useBootstrap){template.find(".jc-bs3-row").addClass(this.bootstrapClasses.row);template.find(".jc-bs3-row").addClass("justify-content-md-center justify-content-sm-center justify-content-xs-center justify-content-lg-center");template.find(".jconfirm-box-container").addClass(this.columnClassParsed);if(this.containerFluid){template.find(".jc-bs3-container").addClass(this.bootstrapClasses.containerFluid);}else{template.find(".jc-bs3-container").addClass(this.bootstrapClasses.container);}}else{template.find(".jconfirm-box").css("width",this.boxWidth);}if(this.titleClass){template.find(".jconfirm-title-c").addClass(this.titleClass);}template.addClass(this.themeParsed);var ariaLabel="jconfirm-box"+this._id;template.find(".jconfirm-box").attr("aria-labelledby",ariaLabel).attr("tabindex",-1);template.find(".jconfirm-content").attr("id",ariaLabel);if(this.bgOpacity!==null){template.find(".jconfirm-bg").css("opacity",this.bgOpacity);}if(this.rtl){template.addClass("jconfirm-rtl");}this.$el=template.appendTo(this.container);this.$jconfirmBoxContainer=this.$el.find(".jconfirm-box-container");this.$jconfirmBox=this.$body=this.$el.find(".jconfirm-box");this.$jconfirmBg=this.$el.find(".jconfirm-bg");this.$title=this.$el.find(".jconfirm-title");this.$titleContainer=this.$el.find(".jconfirm-title-c");this.$content=this.$el.find("div.jconfirm-content");this.$contentPane=this.$el.find(".jconfirm-content-pane");this.$icon=this.$el.find(".jconfirm-icon-c");this.$closeIcon=this.$el.find(".jconfirm-closeIcon");this.$holder=this.$el.find(".jconfirm-holder");this.$btnc=this.$el.find(".jconfirm-buttons");this.$scrollPane=this.$el.find(".jconfirm-scrollpane");that.setStartingPoint();this._contentReady=$.Deferred();this._modalReady=$.Deferred();this.$holder.css({"padding-top":this.offsetTop,"padding-bottom":this.offsetBottom,});this.setTitle();this.setIcon();this._setButtons();this._parseContent();this.initDraggable();if(this.isAjax){this.showLoading(false);}$.when(this._contentReady,this._modalReady).then(function(){if(that.isAjaxLoading){setTimeout(function(){that.isAjaxLoading=false;that.setContent();that.setTitle();that.setIcon();setTimeout(function(){that.hideLoading(false);that._updateContentMaxHeight();},100);if(typeof that.onContentReady==="function"){that.onContentReady();}},50);}else{that._updateContentMaxHeight();that.setTitle();that.setIcon();if(typeof that.onContentReady==="function"){that.onContentReady();}}if(that.autoClose){that._startCountDown();}}).then(function(){that._watchContent();});if(this.animation==="none"){this.animationSpeed=1;this.animationBounce=1;}this.$body.css(this._getCSS(this.animationSpeed,this.animationBounce));this.$contentPane.css(this._getCSS(this.animationSpeed,1));this.$jconfirmBg.css(this._getCSS(this.animationSpeed,1));this.$jconfirmBoxContainer.css(this._getCSS(this.animationSpeed,1));},_typePrefix:"jconfirm-type-",typeParsed:"",_parseType:function(type){this.typeParsed=this._typePrefix+type;},setType:function(type){var oldClass=this.typeParsed;this._parseType(type);this.$jconfirmBox.removeClass(oldClass).addClass(this.typeParsed);},themeParsed:"",_themePrefix:"jconfirm-",setTheme:function(theme){var previous=this.theme;this.theme=theme||this.theme;this._parseTheme(this.theme);if(previous){this.$el.removeClass(previous);}this.$el.addClass(this.themeParsed);this.theme=theme;},_parseTheme:function(theme){var that=this;theme=theme.split(",");$.each(theme,function(k,a){if(a.indexOf(that._themePrefix)===-1){theme[k]=that._themePrefix+$.trim(a);}});this.themeParsed=theme.join(" ").toLowerCase();},backgroundDismissAnimationParsed:"",_bgDismissPrefix:"jconfirm-hilight-",_parseBgDismissAnimation:function(bgDismissAnimation){var animation=bgDismissAnimation.split(",");var that=this;$.each(animation,function(k,a){if(a.indexOf(that._bgDismissPrefix)===-1){animation[k]=that._bgDismissPrefix+$.trim(a);}});this.backgroundDismissAnimationParsed=animation.join(" ").toLowerCase();},animationParsed:"",closeAnimationParsed:"",_animationPrefix:"jconfirm-animation-",setAnimation:function(animation){this.animation=animation||this.animation;this._parseAnimation(this.animation,"o");},_parseAnimation:function(animation,which){which=which||"o";var animations=animation.split(",");var that=this;$.each(animations,function(k,a){if(a.indexOf(that._animationPrefix)===-1){animations[k]=that._animationPrefix+$.trim(a);}});var a_string=animations.join(" ").toLowerCase();if(which==="o"){this.animationParsed=a_string;}else{this.closeAnimationParsed=a_string;}return a_string;},setCloseAnimation:function(closeAnimation){this.closeAnimation=closeAnimation||this.closeAnimation;this._parseAnimation(this.closeAnimation,"c");},setAnimationSpeed:function(speed){this.animationSpeed=speed||this.animationSpeed;},columnClassParsed:"",setColumnClass:function(colClass){if(!this.useBootstrap){console.warn("cannot set columnClass, useBootstrap is set to false");return;}this.columnClass=colClass||this.columnClass;this._parseColumnClass(this.columnClass);this.$jconfirmBoxContainer.addClass(this.columnClassParsed);},_updateContentMaxHeight:function(){var height=$(window).height()-(this.$jconfirmBox.outerHeight()-this.$contentPane.outerHeight())-(this.offsetTop+this.offsetBottom);this.$contentPane.css({"max-height":height+"px"});},setBoxWidth:function(width){if(this.useBootstrap){console.warn("cannot set boxWidth, useBootstrap is set to true");return;}this.boxWidth=width;this.$jconfirmBox.css("width",width);},_parseColumnClass:function(colClass){colClass=colClass.toLowerCase();var p;switch(colClass){case"xl":case"xlarge":p="col-md-12";break;case"l":case"large":p="col-md-8 col-md-offset-2";break;case"m":case"medium":p="col-md-6 col-md-offset-3";break;case"s":case"small":p="col-md-4 col-md-offset-4";break;case"xs":case"xsmall":p="col-md-2 col-md-offset-5";break;default:p=colClass;}this.columnClassParsed=p;},initDraggable:function(){var that=this;var $t=this.$titleContainer;this.resetDrag();if(this.draggable){$t.on("mousedown",function(e){$t.addClass("jconfirm-hand");that.mouseX=e.clientX;that.mouseY=e.clientY;that.isDrag=true;});$(window).on("mousemove."+this._id,function(e){if(that.isDrag){that.movingX=e.clientX-that.mouseX+that.initialX;that.movingY=e.clientY-that.mouseY+that.initialY;that.setDrag();}});$(window).on("mouseup."+this._id,function(){$t.removeClass("jconfirm-hand");if(that.isDrag){that.isDrag=false;that.initialX=that.movingX;that.initialY=that.movingY;}});}},resetDrag:function(){this.isDrag=false;this.initialX=0;this.initialY=0;this.movingX=0;this.movingY=0;this.mouseX=0;this.mouseY=0;this.$jconfirmBoxContainer.css("transform","translate("+0+"px, "+0+"px)");},setDrag:function(){if(!this.draggable){return;}this.alignMiddle=false;var boxWidth=this.$jconfirmBox.outerWidth();var boxHeight=this.$jconfirmBox.outerHeight();var windowWidth=$(window).width();var windowHeight=$(window).height();var that=this;var dragUpdate=1;if(that.movingX%dragUpdate===0||that.movingY%dragUpdate===0){if(that.dragWindowBorder){var leftDistance=(windowWidth/2)-boxWidth/2;var topDistance=(windowHeight/2)-boxHeight/2;topDistance-=that.dragWindowGap;leftDistance-=that.dragWindowGap;if(leftDistance+that.movingX<0){that.movingX=-leftDistance;}else{if(leftDistance-that.movingX<0){that.movingX=leftDistance;}}if(topDistance+that.movingY<0){that.movingY=-topDistance;}else{if(topDistance-that.movingY<0){that.movingY=topDistance;}}}that.$jconfirmBoxContainer.css("transform","translate("+that.movingX+"px, "+that.movingY+"px)");}},_scrollTop:function(){if(typeof pageYOffset!=="undefined"){return pageYOffset;}else{var B=document.body;var D=document.documentElement;D=(D.clientHeight)?D:B;return D.scrollTop;}},_watchContent:function(){var that=this;if(this._timer){clearInterval(this._timer);}var prevContentHeight=0;this._timer=setInterval(function(){if(that.smoothContent){var contentHeight=that.$content.outerHeight()||0;if(contentHeight!==prevContentHeight){prevContentHeight=contentHeight;}var wh=$(window).height();var total=that.offsetTop+that.offsetBottom+that.$jconfirmBox.height()-that.$contentPane.height()+that.$content.height();if(total<wh){that.$contentPane.addClass("no-scroll");}else{that.$contentPane.removeClass("no-scroll");}}},this.watchInterval);},_overflowClass:"jconfirm-overflow",_hilightAnimating:false,highlight:function(){this.hiLightModal();},hiLightModal:function(){var that=this;if(this._hilightAnimating){return;}that.$body.addClass("hilight");var duration=parseFloat(that.$body.css("animation-duration"))||2;this._hilightAnimating=true;setTimeout(function(){that._hilightAnimating=false;that.$body.removeClass("hilight");},duration*1000);},_bindEvents:function(){var that=this;this.boxClicked=false;this.$scrollPane.click(function(e){if(!that.boxClicked){var buttonName=false;var shouldClose=false;var str;if(typeof that.backgroundDismiss==="function"){str=that.backgroundDismiss();}else{str=that.backgroundDismiss;}if(typeof str==="string"&&typeof that.buttons[str]!=="undefined"){buttonName=str;shouldClose=false;}else{if(typeof str==="undefined"||!!(str)===true){shouldClose=true;}else{shouldClose=false;}}if(buttonName){var btnResponse=that.buttons[buttonName].action.apply(that);shouldClose=(typeof btnResponse==="undefined")||!!(btnResponse);}if(shouldClose){that.close();}else{that.hiLightModal();}}that.boxClicked=false;});this.$jconfirmBox.click(function(e){that.boxClicked=true;});var isKeyDown=false;$(window).on("jcKeyDown."+that._id,function(e){if(!isKeyDown){isKeyDown=true;}});$(window).on("keyup."+that._id,function(e){if(isKeyDown){that.reactOnKey(e);isKeyDown=false;}});$(window).on("resize."+this._id,function(){that._updateContentMaxHeight();setTimeout(function(){that.resetDrag();},100);});},_cubic_bezier:"0.36, 0.55, 0.19",_getCSS:function(speed,bounce){return{"-webkit-transition-duration":speed/1000+"s","transition-duration":speed/1000+"s","-webkit-transition-timing-function":"cubic-bezier("+this._cubic_bezier+", "+bounce+")","transition-timing-function":"cubic-bezier("+this._cubic_bezier+", "+bounce+")"};},_setButtons:function(){var that=this;var total_buttons=0;if(typeof this.buttons!=="object"){this.buttons={};}$.each(this.buttons,function(key,button){total_buttons+=1;if(typeof button==="function"){that.buttons[key]=button={action:button};}that.buttons[key].text=button.text||key;that.buttons[key].btnClass=button.btnClass||"btn-default";that.buttons[key].action=button.action||function(){};that.buttons[key].keys=button.keys||[];that.buttons[key].isHidden=button.isHidden||false;that.buttons[key].isDisabled=button.isDisabled||false;$.each(that.buttons[key].keys,function(i,a){that.buttons[key].keys[i]=a.toLowerCase();});var button_element=$('<button type="button" class="btn"></button>').html(that.buttons[key].text).addClass(that.buttons[key].btnClass).prop("disabled",that.buttons[key].isDisabled).css("display",that.buttons[key].isHidden?"none":"").click(function(e){e.preventDefault();var res=that.buttons[key].action.apply(that,[that.buttons[key]]);that.onAction.apply(that,[key,that.buttons[key]]);that._stopCountDown();if(typeof res==="undefined"||res){that.close();}});that.buttons[key].el=button_element;that.buttons[key].setText=function(text){button_element.html(text);};that.buttons[key].addClass=function(className){button_element.addClass(className);};that.buttons[key].removeClass=function(className){button_element.removeClass(className);};that.buttons[key].disable=function(){that.buttons[key].isDisabled=true;button_element.prop("disabled",true);};that.buttons[key].enable=function(){that.buttons[key].isDisabled=false;button_element.prop("disabled",false);};that.buttons[key].show=function(){that.buttons[key].isHidden=false;button_element.css("display","");};that.buttons[key].hide=function(){that.buttons[key].isHidden=true;button_element.css("display","none");};that["$_"+key]=that["$$"+key]=button_element;that.$btnc.append(button_element);});if(total_buttons===0){this.$btnc.hide();}if(this.closeIcon===null&&total_buttons===0){this.closeIcon=true;}if(this.closeIcon){if(this.closeIconClass){var closeHtml='<i class="'+this.closeIconClass+'"></i>';this.$closeIcon.html(closeHtml);}this.$closeIcon.click(function(e){e.preventDefault();var buttonName=false;var shouldClose=false;var str;if(typeof that.closeIcon==="function"){str=that.closeIcon();}else{str=that.closeIcon;}if(typeof str==="string"&&typeof that.buttons[str]!=="undefined"){buttonName=str;shouldClose=false;}else{if(typeof str==="undefined"||!!(str)===true){shouldClose=true;}else{shouldClose=false;}}if(buttonName){var btnResponse=that.buttons[buttonName].action.apply(that);shouldClose=(typeof btnResponse==="undefined")||!!(btnResponse);}if(shouldClose){that.close();}});this.$closeIcon.show();}else{this.$closeIcon.hide();}},setTitle:function(string,force){force=force||false;if(typeof string!=="undefined"){if(typeof string==="string"){this.title=string;}else{if(typeof string==="function"){if(typeof string.promise==="function"){console.error("Promise was returned from title function, this is not supported.");}var response=string();if(typeof response==="string"){this.title=response;}else{this.title=false;}}else{this.title=false;}}}if(this.isAjaxLoading&&!force){return;}this.$title.html(this.title||"");this.updateTitleContainer();},setIcon:function(iconClass,force){force=force||false;if(typeof iconClass!=="undefined"){if(typeof iconClass==="string"){this.icon=iconClass;}else{if(typeof iconClass==="function"){var response=iconClass();if(typeof response==="string"){this.icon=response;}else{this.icon=false;}}else{this.icon=false;}}}if(this.isAjaxLoading&&!force){return;}this.$icon.html(this.icon?'<i class="'+this.icon+'"></i>':"");this.updateTitleContainer();},updateTitleContainer:function(){if(!this.title&&!this.icon){this.$titleContainer.hide();}else{this.$titleContainer.show();}},setContentPrepend:function(content,force){if(!content){return;}this.contentParsed.prepend(content);},setContentAppend:function(content){if(!content){return;}this.contentParsed.append(content);},setContent:function(content,force){force=!!force;var that=this;if(content){this.contentParsed.html("").append(content);}if(this.isAjaxLoading&&!force){return;}this.$content.html("");this.$content.append(this.contentParsed);setTimeout(function(){that.$body.find("input[autofocus]:visible:first").focus();},100);},loadingSpinner:false,showLoading:function(disableButtons){this.loadingSpinner=true;this.$jconfirmBox.addClass("loading");if(disableButtons){this.$btnc.find("button").prop("disabled",true);}},hideLoading:function(enableButtons){this.loadingSpinner=false;this.$jconfirmBox.removeClass("loading");if(enableButtons){this.$btnc.find("button").prop("disabled",false);}},ajaxResponse:false,contentParsed:"",isAjax:false,isAjaxLoading:false,_parseContent:function(){var that=this;var e=" ";if(typeof this.content==="function"){var res=this.content.apply(this);if(typeof res==="string"){this.content=res;}else{if(typeof res==="object"&&typeof res.always==="function"){this.isAjax=true;this.isAjaxLoading=true;res.always(function(data,status,xhr){that.ajaxResponse={data:data,status:status,xhr:xhr};that._contentReady.resolve(data,status,xhr);if(typeof that.contentLoaded==="function"){that.contentLoaded(data,status,xhr);}});this.content=e;}else{this.content=e;}}}if(typeof this.content==="string"&&this.content.substr(0,4).toLowerCase()==="url:"){this.isAjax=true;this.isAjaxLoading=true;var u=this.content.substring(4,this.content.length);$.get(u).done(function(html){that.contentParsed.html(html);}).always(function(data,status,xhr){that.ajaxResponse={data:data,status:status,xhr:xhr};that._contentReady.resolve(data,status,xhr);if(typeof that.contentLoaded==="function"){that.contentLoaded(data,status,xhr);}});}if(!this.content){this.content=e;}if(!this.isAjax){this.contentParsed.html(this.content);this.setContent();that._contentReady.resolve();}},_stopCountDown:function(){clearInterval(this.autoCloseInterval);if(this.$cd){this.$cd.remove();}},_startCountDown:function(){var that=this;var opt=this.autoClose.split("|");if(opt.length!==2){console.error("Invalid option for autoClose. example 'close|10000'");return false;}var button_key=opt[0];var time=parseInt(opt[1]);if(typeof this.buttons[button_key]==="undefined"){console.error("Invalid button key '"+button_key+"' for autoClose");return false;}var seconds=Math.ceil(time/1000);this.$cd=$('<span class="countdown"> ('+seconds+")</span>").appendTo(this["$_"+button_key]);this.autoCloseInterval=setInterval(function(){that.$cd.html(" ("+(seconds-=1)+") ");if(seconds<=0){that["$$"+button_key].trigger("click");that._stopCountDown();}},1000);},_getKey:function(key){switch(key){case 192:return"tilde";case 13:return"enter";case 16:return"shift";case 9:return"tab";case 20:return"capslock";case 17:return"ctrl";case 91:return"win";case 18:return"alt";case 27:return"esc";case 32:return"space";}var initial=String.fromCharCode(key);if(/^[A-z0-9]+$/.test(initial)){return initial.toLowerCase();}else{return false;}},reactOnKey:function(e){var that=this;var a=$(".jconfirm");if(a.eq(a.length-1)[0]!==this.$el[0]){return false;}var key=e.which;if(this.$content.find(":input").is(":focus")&&/13|32/.test(key)){return false;}var keyChar=this._getKey(key);if(keyChar==="esc"&&this.escapeKey){if(this.escapeKey===true){this.$scrollPane.trigger("click");}else{if(typeof this.escapeKey==="string"||typeof this.escapeKey==="function"){var buttonKey;if(typeof this.escapeKey==="function"){buttonKey=this.escapeKey();}else{buttonKey=this.escapeKey;}if(buttonKey){if(typeof this.buttons[buttonKey]==="undefined"){console.warn("Invalid escapeKey, no buttons found with key "+buttonKey);}else{this["$_"+buttonKey].trigger("click");}}}}}$.each(this.buttons,function(key,button){if(button.keys.indexOf(keyChar)!==-1){that["$_"+key].trigger("click");}});},setDialogCenter:function(){console.info("setDialogCenter is deprecated, dialogs are centered with CSS3 tables");},_unwatchContent:function(){clearInterval(this._timer);},close:function(onClosePayload){var that=this;if(typeof this.onClose==="function"){this.onClose(onClosePayload);}this._unwatchContent();$(window).unbind("resize."+this._id);$(window).unbind("keyup."+this._id);$(window).unbind("jcKeyDown."+this._id);if(this.draggable){$(window).unbind("mousemove."+this._id);$(window).unbind("mouseup."+this._id);this.$titleContainer.unbind("mousedown");}that.$el.removeClass(that.loadedClass);$("body").removeClass("jconfirm-no-scroll-"+that._id);that.$jconfirmBoxContainer.removeClass("jconfirm-no-transition");setTimeout(function(){that.$body.addClass(that.closeAnimationParsed);that.$jconfirmBg.addClass("jconfirm-bg-h");var closeTimer=(that.closeAnimation==="none")?1:that.animationSpeed;setTimeout(function(){that.$el.remove();var l=w.jconfirm.instances;var i=w.jconfirm.instances.length-1;for(i;i>=0;i--){if(w.jconfirm.instances[i]._id===that._id){w.jconfirm.instances.splice(i,1);}}if(!w.jconfirm.instances.length){if(that.scrollToPreviousElement&&w.jconfirm.lastFocused&&w.jconfirm.lastFocused.length&&$.contains(document,w.jconfirm.lastFocused[0])){var $lf=w.jconfirm.lastFocused;if(that.scrollToPreviousElementAnimate){var st=$(window).scrollTop();var ot=w.jconfirm.lastFocused.offset().top;var wh=$(window).height();if(!(ot>st&&ot<(st+wh))){var scrollTo=(ot-Math.round((wh/3)));$("html, body").animate({scrollTop:scrollTo},that.animationSpeed,"swing",function(){$lf.focus();});}else{$lf.focus();}}else{$lf.focus();}w.jconfirm.lastFocused=false;}}if(typeof that.onDestroy==="function"){that.onDestroy();}},closeTimer*0.4);},50);return true;},open:function(){if(this.isOpen()){return false;}this._buildHTML();this._bindEvents();this._open();return true;},setStartingPoint:function(){var el=false;if(this.animateFromElement!==true&&this.animateFromElement){el=this.animateFromElement;w.jconfirm.lastClicked=false;}else{if(w.jconfirm.lastClicked&&this.animateFromElement===true){el=w.jconfirm.lastClicked;w.jconfirm.lastClicked=false;}else{return false;}}if(!el){return false;}var offset=el.offset();var iTop=el.outerHeight()/2;var iLeft=el.outerWidth()/2;iTop-=this.$jconfirmBox.outerHeight()/2;iLeft-=this.$jconfirmBox.outerWidth()/2;var sourceTop=offset.top+iTop;sourceTop=sourceTop-this._scrollTop();var sourceLeft=offset.left+iLeft;var wh=$(window).height()/2;var ww=$(window).width()/2;var targetH=wh-this.$jconfirmBox.outerHeight()/2;var targetW=ww-this.$jconfirmBox.outerWidth()/2;sourceTop-=targetH;sourceLeft-=targetW;if(Math.abs(sourceTop)>wh||Math.abs(sourceLeft)>ww){return false;}this.$jconfirmBoxContainer.css("transform","translate("+sourceLeft+"px, "+sourceTop+"px)");},_open:function(){var that=this;if(typeof that.onOpenBefore==="function"){that.onOpenBefore();}this.$body.removeClass(this.animationParsed);this.$jconfirmBg.removeClass("jconfirm-bg-h");this.$body.focus();that.$jconfirmBoxContainer.css("transform","translate("+0+"px, "+0+"px)");setTimeout(function(){that.$body.css(that._getCSS(that.animationSpeed,1));that.$body.css({"transition-property":that.$body.css("transition-property")+", margin"});that.$jconfirmBoxContainer.addClass("jconfirm-no-transition");that._modalReady.resolve();if(typeof that.onOpen==="function"){that.onOpen();}that.$el.addClass(that.loadedClass);},this.animationSpeed);},loadedClass:"jconfirm-open",isClosed:function(){return !this.$el||this.$el.parent().length===0;},isOpen:function(){return !this.isClosed();},toggle:function(){if(!this.isOpen()){this.open();}else{this.close();}}};w.jconfirm.instances=[];w.jconfirm.lastFocused=false;w.jconfirm.pluginDefaults={template:'<div class="jconfirm"><div class="jconfirm-bg jconfirm-bg-h"></div><div class="jconfirm-scrollpane"><div class="jconfirm-row"><div class="jconfirm-cell"><div class="jconfirm-holder"><div class="jc-bs3-container"><div class="jc-bs3-row"><div class="jconfirm-box-container jconfirm-animated"><div class="jconfirm-box" role="dialog" aria-labelledby="labelled" tabindex="-1"><div class="jconfirm-closeIcon">×</div><div class="jconfirm-title-c"><span class="jconfirm-icon-c"></span><span class="jconfirm-title"></span></div><div class="jconfirm-content-pane"><div class="jconfirm-content"></div></div><div class="jconfirm-buttons"></div><div class="jconfirm-clear"></div></div></div></div></div></div></div></div></div></div>',title:"Hello",titleClass:"",type:"default",typeAnimated:true,draggable:true,dragWindowGap:15,dragWindowBorder:true,animateFromElement:true,alignMiddle:true,smoothContent:true,content:"Are you sure to continue?",buttons:{},defaultButtons:{ok:{action:function(){}},close:{action:function(){}}},contentLoaded:function(){},icon:"",lazyOpen:false,bgOpacity:null,theme:"light",animation:"scale",closeAnimation:"scale",animationSpeed:400,animationBounce:1,escapeKey:true,rtl:false,container:"body",containerFluid:false,backgroundDismiss:false,backgroundDismissAnimation:"shake",autoClose:false,closeIcon:null,closeIconClass:false,watchInterval:100,columnClass:"col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1",boxWidth:"50%",scrollToPreviousElement:true,scrollToPreviousElementAnimate:true,useBootstrap:true,offsetTop:40,offsetBottom:40,bootstrapClasses:{container:"container",containerFluid:"container-fluid",row:"row"},onContentReady:function(){},onOpenBefore:function(){},onOpen:function(){},onClose:function(){},onDestroy:function(){},onAction:function(){}};var keyDown=false;$(window).on("keydown",function(e){if(!keyDown){var $target=$(e.target);var pass=false;if($target.closest(".jconfirm-box").length){pass=true;}if(pass){$(window).trigger("jcKeyDown");}keyDown=true;}});$(window).on("keyup",function(){keyDown=false;});w.jconfirm.lastClicked=false;$(document).on("mousedown","button, a, [jc-source]",function(){w.jconfirm.lastClicked=$(this);});}));
|
readme.txt
CHANGED
@@ -3,10 +3,10 @@ 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, sendinblue, wp smtp
|
4 |
Requires at least: 4.9
|
5 |
Tested up to: 5.5
|
6 |
-
Stable tag: 2.
|
7 |
Requires PHP: 5.5.0
|
8 |
|
9 |
-
|
10 |
|
11 |
== Description ==
|
12 |
|
@@ -28,7 +28,7 @@ If the proper authentication isn't there, then emails either go in the SPAM fold
|
|
28 |
|
29 |
This is a problem for a lot of WordPress sites because by default, WordPress uses the PHP mail function to send emails generated by WordPress or any contact form plugin like <a href="https://wpforms.com/" rel="friend">WPForms</a>.
|
30 |
|
31 |
-
The issue is that most <a href"
|
32 |
|
33 |
The combination of two causes your WordPress emails to not get delivered.
|
34 |
|
@@ -43,7 +43,7 @@ This helps you fix all WordPress not sending email issues.
|
|
43 |
WP Mail SMTP plugin includes many different SMTP setup options:
|
44 |
|
45 |
1. SMTP.com <strong>(Recommended)</strong>
|
46 |
-
2. Sendinblue SMTP
|
47 |
3. Mailgun SMTP
|
48 |
4. SendGrid SMTP
|
49 |
5. Gmail SMTP
|
@@ -68,6 +68,8 @@ Read our <a href="https://wpmailsmtp.com/docs/how-to-set-up-the-smtp-com-mailer-
|
|
68 |
|
69 |
= Sendinblue SMTP =
|
70 |
|
|
|
|
|
71 |
They serve 80,000+ growing companies around the world and send over 30 million emails each day.
|
72 |
|
73 |
Their email deliverability experts are constantly at work optimizing the reliability and speed of their SMTP infrastructure. Sendinblue provides users 300 free emails per day.
|
@@ -224,6 +226,18 @@ By all means please contact us to discuss features or options you'd like to see
|
|
224 |
|
225 |
== Changelog ==
|
226 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
= 2.3.1 - 2020-08-20 =
|
228 |
* Added: A WP Mail SMTP admin bar menu if there is an email delivery error or notifications.
|
229 |
* Added: WordPress 5.5 compatibility.
|
3 |
Tags: smtp, wp mail smtp, wordpress smtp, gmail smtp, sendgrid smtp, mailgun smtp, mail, mailer, phpmailer, wp_mail, email, mailgun, sengrid, gmail, sendinblue, wp smtp
|
4 |
Requires at least: 4.9
|
5 |
Tested up to: 5.5
|
6 |
+
Stable tag: 2.4.0
|
7 |
Requires PHP: 5.5.0
|
8 |
|
9 |
+
Make email delivery easy for WordPress. Connect with SMTP, Gmail, Outlook, SendGrid, Mailgun, Zoho, SES, and more.
|
10 |
|
11 |
== Description ==
|
12 |
|
28 |
|
29 |
This is a problem for a lot of WordPress sites because by default, WordPress uses the PHP mail function to send emails generated by WordPress or any contact form plugin like <a href="https://wpforms.com/" rel="friend">WPForms</a>.
|
30 |
|
31 |
+
The issue is that most <a href="https://www.wpbeginner.com/wordpress-hosting/" rel="friend">WordPress hosting companies</a> don't have their servers properly configured for sending PHP emails.
|
32 |
|
33 |
The combination of two causes your WordPress emails to not get delivered.
|
34 |
|
43 |
WP Mail SMTP plugin includes many different SMTP setup options:
|
44 |
|
45 |
1. SMTP.com <strong>(Recommended)</strong>
|
46 |
+
2. Sendinblue SMTP <strong>(Recommended)</strong>
|
47 |
3. Mailgun SMTP
|
48 |
4. SendGrid SMTP
|
49 |
5. Gmail SMTP
|
68 |
|
69 |
= Sendinblue SMTP =
|
70 |
|
71 |
+
Sendinblue is a recommended transactional email service.
|
72 |
+
|
73 |
They serve 80,000+ growing companies around the world and send over 30 million emails each day.
|
74 |
|
75 |
Their email deliverability experts are constantly at work optimizing the reliability and speed of their SMTP infrastructure. Sendinblue provides users 300 free emails per day.
|
226 |
|
227 |
== Changelog ==
|
228 |
|
229 |
+
= 2.4.0 - 2020-09-17 =
|
230 |
+
* Added: Prefix all 3rd-party libraries to avoid compatibility issues with other plugins using different versions of the same libraries.
|
231 |
+
* Changed: Sendinblue SDK library version to 6.4.
|
232 |
+
* Changed: Google apiclient library version to 2.7.
|
233 |
+
* Changed: Improve plugin settings input and toggle focus states.
|
234 |
+
* Fixed: Hide admin bar menu when errors are present and the "Hide Email Delivery Errors" setting is enabled.
|
235 |
+
* Fixed: CSS sourcemaps warning messages in browser dev tools.
|
236 |
+
* Fixed: Action Scheduler tasks being registered too early and not getting assigned to the plugin group.
|
237 |
+
* Fixed: Admin bar CSS asset loading when the admin bar is not showing.
|
238 |
+
* Fixed: Fatal error on plugin uninstall if `ActionScheduler_QueueRunner::unhook_dispatch_async_request` method does not exist.
|
239 |
+
* Fixed: PHP Deprecated notice for `base_convert()` function usage in the Mailgun mailer.
|
240 |
+
|
241 |
= 2.3.1 - 2020-08-20 =
|
242 |
* Added: A WP Mail SMTP admin bar menu if there is an email delivery error or notifications.
|
243 |
* Added: WordPress 5.5 compatibility.
|
src/Admin/AdminBarMenu.php
CHANGED
@@ -3,6 +3,7 @@
|
|
3 |
namespace WPMailSMTP\Admin;
|
4 |
|
5 |
use WPMailSMTP\Debug;
|
|
|
6 |
|
7 |
/**
|
8 |
* WP Mail SMTP admin bar menu.
|
@@ -73,6 +74,10 @@ class AdminBarMenu {
|
|
73 |
*/
|
74 |
public function enqueues() {
|
75 |
|
|
|
|
|
|
|
|
|
76 |
if ( ! $this->has_access() ) {
|
77 |
return;
|
78 |
}
|
@@ -97,7 +102,10 @@ class AdminBarMenu {
|
|
97 |
if (
|
98 |
! $this->has_access() ||
|
99 |
(
|
100 |
-
|
|
|
|
|
|
|
101 |
empty( $this->has_notifications() )
|
102 |
)
|
103 |
) {
|
@@ -128,7 +136,10 @@ class AdminBarMenu {
|
|
128 |
*/
|
129 |
public function main_menu( \WP_Admin_Bar $wp_admin_bar ) {
|
130 |
|
131 |
-
if (
|
|
|
|
|
|
|
132 |
$indicator = ' <span class="wp-mail-smtp-admin-bar-menu-error">!</span>';
|
133 |
} elseif ( ! empty( $this->has_notifications() ) ) {
|
134 |
$count = $this->has_notifications() < 10 ? $this->has_notifications() : '!';
|
3 |
namespace WPMailSMTP\Admin;
|
4 |
|
5 |
use WPMailSMTP\Debug;
|
6 |
+
use WPMailSMTP\Options;
|
7 |
|
8 |
/**
|
9 |
* WP Mail SMTP admin bar menu.
|
74 |
*/
|
75 |
public function enqueues() {
|
76 |
|
77 |
+
if ( ! is_admin_bar_showing() ) {
|
78 |
+
return;
|
79 |
+
}
|
80 |
+
|
81 |
if ( ! $this->has_access() ) {
|
82 |
return;
|
83 |
}
|
102 |
if (
|
103 |
! $this->has_access() ||
|
104 |
(
|
105 |
+
(
|
106 |
+
empty( Debug::get_last() ) ||
|
107 |
+
(bool) Options::init()->get( 'general', 'email_delivery_errors_hidden' )
|
108 |
+
) &&
|
109 |
empty( $this->has_notifications() )
|
110 |
)
|
111 |
) {
|
136 |
*/
|
137 |
public function main_menu( \WP_Admin_Bar $wp_admin_bar ) {
|
138 |
|
139 |
+
if (
|
140 |
+
! empty( Debug::get_last() ) &&
|
141 |
+
! (bool) Options::init()->get( 'general', 'email_delivery_errors_hidden' )
|
142 |
+
) {
|
143 |
$indicator = ' <span class="wp-mail-smtp-admin-bar-menu-error">!</span>';
|
144 |
} elseif ( ! empty( $this->has_notifications() ) ) {
|
145 |
$count = $this->has_notifications() < 10 ? $this->has_notifications() : '!';
|
src/Admin/Notifications.php
CHANGED
@@ -3,6 +3,7 @@
|
|
3 |
namespace WPMailSMTP\Admin;
|
4 |
|
5 |
use WPMailSMTP\Options;
|
|
|
6 |
use WPMailSMTP\WP;
|
7 |
|
8 |
/**
|
@@ -238,7 +239,7 @@ class Notifications {
|
|
238 |
|
239 |
// Update notifications using async task.
|
240 |
if ( empty( $option['update'] ) || time() > $option['update'] + DAY_IN_SECONDS ) {
|
241 |
-
if ( empty(
|
242 |
|
243 |
wp_mail_smtp()->get_tasks()
|
244 |
->create( 'wp_mail_smtp_admin_notifications_update' )
|
3 |
namespace WPMailSMTP\Admin;
|
4 |
|
5 |
use WPMailSMTP\Options;
|
6 |
+
use WPMailSMTP\Tasks\Tasks;
|
7 |
use WPMailSMTP\WP;
|
8 |
|
9 |
/**
|
239 |
|
240 |
// Update notifications using async task.
|
241 |
if ( empty( $option['update'] ) || time() > $option['update'] + DAY_IN_SECONDS ) {
|
242 |
+
if ( empty( Tasks::is_scheduled( 'wp_mail_smtp_admin_notifications_update' ) ) ) {
|
243 |
|
244 |
wp_mail_smtp()->get_tasks()
|
245 |
->create( 'wp_mail_smtp_admin_notifications_update' )
|
src/Admin/PageInterface.php
CHANGED
@@ -1,45 +1,45 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace WPMailSMTP\Admin;
|
4 |
-
|
5 |
-
/**
|
6 |
-
* Class PageInterface defines what should be in each page class.
|
7 |
-
*
|
8 |
-
* @since 1.0.0
|
9 |
-
*/
|
10 |
-
interface PageInterface {
|
11 |
-
|
12 |
-
/**
|
13 |
-
* URL to a tab.
|
14 |
-
*
|
15 |
-
* @since 1.0.0
|
16 |
-
*
|
17 |
-
* @return string
|
18 |
-
*/
|
19 |
-
public function get_link();
|
20 |
-
|
21 |
-
/**
|
22 |
-
* Title of a tab.
|
23 |
-
*
|
24 |
-
* @since 1.0.0
|
25 |
-
*
|
26 |
-
* @return string
|
27 |
-
*/
|
28 |
-
public function get_title();
|
29 |
-
|
30 |
-
/**
|
31 |
-
* Link label of a tab.
|
32 |
-
*
|
33 |
-
* @since 1.0.0
|
34 |
-
*
|
35 |
-
* @return string
|
36 |
-
*/
|
37 |
-
public function get_label();
|
38 |
-
|
39 |
-
/**
|
40 |
-
* Tab content.
|
41 |
-
*
|
42 |
-
* @since 1.0.0
|
43 |
-
*/
|
44 |
-
public function display();
|
45 |
-
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace WPMailSMTP\Admin;
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Class PageInterface defines what should be in each page class.
|
7 |
+
*
|
8 |
+
* @since 1.0.0
|
9 |
+
*/
|
10 |
+
interface PageInterface {
|
11 |
+
|
12 |
+
/**
|
13 |
+
* URL to a tab.
|
14 |
+
*
|
15 |
+
* @since 1.0.0
|
16 |
+
*
|
17 |
+
* @return string
|
18 |
+
*/
|
19 |
+
public function get_link();
|
20 |
+
|
21 |
+
/**
|
22 |
+
* Title of a tab.
|
23 |
+
*
|
24 |
+
* @since 1.0.0
|
25 |
+
*
|
26 |
+
* @return string
|
27 |
+
*/
|
28 |
+
public function get_title();
|
29 |
+
|
30 |
+
/**
|
31 |
+
* Link label of a tab.
|
32 |
+
*
|
33 |
+
* @since 1.0.0
|
34 |
+
*
|
35 |
+
* @return string
|
36 |
+
*/
|
37 |
+
public function get_label();
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Tab content.
|
41 |
+
*
|
42 |
+
* @since 1.0.0
|
43 |
+
*/
|
44 |
+
public function display();
|
45 |
+
}
|
src/Admin/Pages/About.php
CHANGED
@@ -649,12 +649,13 @@ class About extends PageAbstract {
|
|
649 |
*/
|
650 |
private function get_license_features() {
|
651 |
|
652 |
-
return
|
653 |
-
'log'
|
654 |
-
'control'
|
655 |
-
'mailers'
|
656 |
-
'
|
657 |
-
|
|
|
658 |
}
|
659 |
|
660 |
/**
|
@@ -669,64 +670,78 @@ class About extends PageAbstract {
|
|
669 |
*/
|
670 |
private function get_license_data( $feature, $license ) {
|
671 |
|
672 |
-
$data =
|
673 |
-
'log'
|
674 |
-
'lite' =>
|
675 |
'status' => 'none',
|
676 |
-
'text' =>
|
677 |
'<strong>' . esc_html__( 'Emails are not logged', 'wp-mail-smtp' ) . '</strong>',
|
678 |
-
|
679 |
-
|
680 |
-
'pro' =>
|
681 |
'status' => 'full',
|
682 |
-
'text' =>
|
683 |
-
'<strong>' . esc_html__( '
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
'control'
|
688 |
-
'lite' =>
|
689 |
'status' => 'none',
|
690 |
-
'text' =>
|
691 |
'<strong>' . esc_html__( 'No controls over whether default WordPress emails are sent', 'wp-mail-smtp' ) . '</strong>',
|
692 |
-
|
693 |
-
|
694 |
-
'pro' =>
|
695 |
'status' => 'full',
|
696 |
-
'text' =>
|
697 |
'<strong>' . esc_html__( 'Complete Email Controls management for most default WordPress emails', 'wp-mail-smtp' ) . '</strong>',
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
'mailers'
|
702 |
-
'lite' =>
|
703 |
'status' => 'none',
|
704 |
-
'text' =>
|
705 |
-
'<strong>' . esc_html__( '
|
706 |
-
|
707 |
-
|
708 |
-
'pro' =>
|
709 |
'status' => 'full',
|
710 |
-
'text' =>
|
711 |
-
'<strong>' . esc_html__( 'Additional
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
'
|
716 |
-
'lite' =>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
717 |
'status' => 'none',
|
718 |
-
'text' =>
|
719 |
'<strong>' . esc_html__( 'Limited Support', 'wp-mail-smtp' ) . '</strong>',
|
720 |
-
|
721 |
-
|
722 |
-
'pro' =>
|
723 |
'status' => 'full',
|
724 |
-
'text' =>
|
725 |
'<strong>' . esc_html__( 'Priority Support', 'wp-mail-smtp' ) . '</strong>',
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
|
731 |
// Wrong feature?
|
732 |
if ( ! isset( $data[ $feature ] ) ) {
|
649 |
*/
|
650 |
private function get_license_features() {
|
651 |
|
652 |
+
return [
|
653 |
+
'log' => \esc_html__( 'Email Log', 'wp-mail-smtp' ),
|
654 |
+
'control' => \esc_html__( 'Email Controls', 'wp-mail-smtp' ),
|
655 |
+
'mailers' => \esc_html__( 'Mailer Options', 'wp-mail-smtp' ),
|
656 |
+
'multisite' => \esc_html__( 'WordPress Multisite', 'wp-mail-smtp' ),
|
657 |
+
'support' => \esc_html__( 'Customer Support', 'wp-mail-smtp' ),
|
658 |
+
];
|
659 |
}
|
660 |
|
661 |
/**
|
670 |
*/
|
671 |
private function get_license_data( $feature, $license ) {
|
672 |
|
673 |
+
$data = [
|
674 |
+
'log' => [
|
675 |
+
'lite' => [
|
676 |
'status' => 'none',
|
677 |
+
'text' => [
|
678 |
'<strong>' . esc_html__( 'Emails are not logged', 'wp-mail-smtp' ) . '</strong>',
|
679 |
+
],
|
680 |
+
],
|
681 |
+
'pro' => [
|
682 |
'status' => 'full',
|
683 |
+
'text' => [
|
684 |
+
'<strong>' . esc_html__( 'Access to all Email Logging options right inside WordPress', 'wp-mail-smtp' ) . '</strong>',
|
685 |
+
],
|
686 |
+
],
|
687 |
+
],
|
688 |
+
'control' => [
|
689 |
+
'lite' => [
|
690 |
'status' => 'none',
|
691 |
+
'text' => [
|
692 |
'<strong>' . esc_html__( 'No controls over whether default WordPress emails are sent', 'wp-mail-smtp' ) . '</strong>',
|
693 |
+
],
|
694 |
+
],
|
695 |
+
'pro' => [
|
696 |
'status' => 'full',
|
697 |
+
'text' => [
|
698 |
'<strong>' . esc_html__( 'Complete Email Controls management for most default WordPress emails', 'wp-mail-smtp' ) . '</strong>',
|
699 |
+
],
|
700 |
+
],
|
701 |
+
],
|
702 |
+
'mailers' => [
|
703 |
+
'lite' => [
|
704 |
'status' => 'none',
|
705 |
+
'text' => [
|
706 |
+
'<strong>' . esc_html__( 'Limited Mailers', 'wp-mail-smtp' ) . '</strong><br>' . esc_html__( 'Access is limited to standard mailer options only', 'wp-mail-smtp' ),
|
707 |
+
],
|
708 |
+
],
|
709 |
+
'pro' => [
|
710 |
'status' => 'full',
|
711 |
+
'text' => [
|
712 |
+
'<strong>' . esc_html__( 'Additional Mailer Options', 'wp-mail-smtp' ) . '</strong><br>' . esc_html__( 'Microsoft Outlook (with Office365 support), Amazon SES and Zoho Mail', 'wp-mail-smtp' ),
|
713 |
+
],
|
714 |
+
],
|
715 |
+
],
|
716 |
+
'multisite' => [
|
717 |
+
'lite' => [
|
718 |
+
'status' => 'none',
|
719 |
+
'text' => [
|
720 |
+
'<strong>' . esc_html__( 'No Global Network Settings', 'wp-mail-smtp' ) . '</strong>',
|
721 |
+
],
|
722 |
+
],
|
723 |
+
'pro' => [
|
724 |
+
'status' => 'full',
|
725 |
+
'text' => [
|
726 |
+
'<strong>' . esc_html__( 'All Global Network Settings', 'wp-mail-smtp' ) . '</strong><br>' . esc_html__( 'Optionally configure settings at the network level or manage separately for each subsite', 'wp-mail-smtp' ),
|
727 |
+
],
|
728 |
+
],
|
729 |
+
],
|
730 |
+
'support' => [
|
731 |
+
'lite' => [
|
732 |
'status' => 'none',
|
733 |
+
'text' => [
|
734 |
'<strong>' . esc_html__( 'Limited Support', 'wp-mail-smtp' ) . '</strong>',
|
735 |
+
],
|
736 |
+
],
|
737 |
+
'pro' => [
|
738 |
'status' => 'full',
|
739 |
+
'text' => [
|
740 |
'<strong>' . esc_html__( 'Priority Support', 'wp-mail-smtp' ) . '</strong>',
|
741 |
+
],
|
742 |
+
],
|
743 |
+
],
|
744 |
+
];
|
745 |
|
746 |
// Wrong feature?
|
747 |
if ( ! isset( $data[ $feature ] ) ) {
|
src/Admin/Pages/AuthTab.php
CHANGED
@@ -1,63 +1,63 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace WPMailSMTP\Admin\Pages;
|
4 |
-
|
5 |
-
use WPMailSMTP\Options;
|
6 |
-
use WPMailSMTP\Providers\AuthAbstract;
|
7 |
-
|
8 |
-
/**
|
9 |
-
* Class AuthTab.
|
10 |
-
*
|
11 |
-
* @since 1.0.0
|
12 |
-
*/
|
13 |
-
class AuthTab {
|
14 |
-
|
15 |
-
/**
|
16 |
-
* @var string Slug of a tab.
|
17 |
-
*/
|
18 |
-
protected $slug = 'auth';
|
19 |
-
|
20 |
-
/**
|
21 |
-
* Launch mailer specific Auth logic.
|
22 |
-
*
|
23 |
-
* @since 1.0.0
|
24 |
-
*/
|
25 |
-
public function process_auth() {
|
26 |
-
|
27 |
-
$auth = wp_mail_smtp()->get_providers()->get_auth( Options::init()->get( 'mail', 'mailer' ) );
|
28 |
-
|
29 |
-
if (
|
30 |
-
$auth &&
|
31 |
-
$auth instanceof AuthAbstract &&
|
32 |
-
method_exists( $auth, 'process' )
|
33 |
-
) {
|
34 |
-
$auth->process();
|
35 |
-
}
|
36 |
-
}
|
37 |
-
|
38 |
-
/**
|
39 |
-
* Return nothing, as we don't need this functionality.
|
40 |
-
*
|
41 |
-
* @since 1.0.0
|
42 |
-
*/
|
43 |
-
public function get_label() {
|
44 |
-
return '';
|
45 |
-
}
|
46 |
-
|
47 |
-
/**
|
48 |
-
* Return nothing, as we don't need this functionality.
|
49 |
-
*
|
50 |
-
* @since 1.0.0
|
51 |
-
*/
|
52 |
-
public function get_title() {
|
53 |
-
return '';
|
54 |
-
}
|
55 |
-
|
56 |
-
/**
|
57 |
-
* Do nothing, as we don't need this functionality.
|
58 |
-
*
|
59 |
-
* @since 1.0.0
|
60 |
-
*/
|
61 |
-
public function display() {
|
62 |
-
}
|
63 |
-
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace WPMailSMTP\Admin\Pages;
|
4 |
+
|
5 |
+
use WPMailSMTP\Options;
|
6 |
+
use WPMailSMTP\Providers\AuthAbstract;
|
7 |
+
|
8 |
+
/**
|
9 |
+
* Class AuthTab.
|
10 |
+
*
|
11 |
+
* @since 1.0.0
|
12 |
+
*/
|
13 |
+
class AuthTab {
|
14 |
+
|
15 |
+
/**
|
16 |
+
* @var string Slug of a tab.
|
17 |
+
*/
|
18 |
+
protected $slug = 'auth';
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Launch mailer specific Auth logic.
|
22 |
+
*
|
23 |
+
* @since 1.0.0
|
24 |
+
*/
|
25 |
+
public function process_auth() {
|
26 |
+
|
27 |
+
$auth = wp_mail_smtp()->get_providers()->get_auth( Options::init()->get( 'mail', 'mailer' ) );
|
28 |
+
|
29 |
+
if (
|
30 |
+
$auth &&
|
31 |
+
$auth instanceof AuthAbstract &&
|
32 |
+
method_exists( $auth, 'process' )
|
33 |
+
) {
|
34 |
+
$auth->process();
|
35 |
+
}
|
36 |
+
}
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Return nothing, as we don't need this functionality.
|
40 |
+
*
|
41 |
+
* @since 1.0.0
|
42 |
+
*/
|
43 |
+
public function get_label() {
|
44 |
+
return '';
|
45 |
+
}
|
46 |
+
|
47 |
+
/**
|
48 |
+
* Return nothing, as we don't need this functionality.
|
49 |
+
*
|
50 |
+
* @since 1.0.0
|
51 |
+
*/
|
52 |
+
public function get_title() {
|
53 |
+
return '';
|
54 |
+
}
|
55 |
+
|
56 |
+
/**
|
57 |
+
* Do nothing, as we don't need this functionality.
|
58 |
+
*
|
59 |
+
* @since 1.0.0
|
60 |
+
*/
|
61 |
+
public function display() {
|
62 |
+
}
|
63 |
+
}
|
src/Conflicts.php
CHANGED
@@ -1,184 +1,184 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace WPMailSMTP;
|
4 |
-
|
5 |
-
/**
|
6 |
-
* Class Conflicts
|
7 |
-
*
|
8 |
-
* @since 1.5.0
|
9 |
-
*/
|
10 |
-
class Conflicts {
|
11 |
-
|
12 |
-
/**
|
13 |
-
* @since 1.5.0
|
14 |
-
*
|
15 |
-
* @var array List of plugins WP Mail SMTP may be conflicting with.
|
16 |
-
*/
|
17 |
-
public static $plugins = array(
|
18 |
-
'swpsmtp_init_smtp' => array(
|
19 |
-
'name' => 'Easy WP SMTP',
|
20 |
-
),
|
21 |
-
'postman_start' => array(
|
22 |
-
'name' => 'Postman SMTP',
|
23 |
-
),
|
24 |
-
'post_start' => array(
|
25 |
-
'name' => 'Post SMTP Mailer/Email Log',
|
26 |
-
),
|
27 |
-
'mail_bank' => array(
|
28 |
-
'name' => 'WP Mail Bank',
|
29 |
-
),
|
30 |
-
'SMTP_MAILER' => array(
|
31 |
-
'name' => 'SMTP Mailer',
|
32 |
-
'class' => true,
|
33 |
-
),
|
34 |
-
'GMAIL_SMTP' => array(
|
35 |
-
'name' => 'Gmail SMTP',
|
36 |
-
'class' => true,
|
37 |
-
),
|
38 |
-
'WP_Email_Smtp' => array(
|
39 |
-
'name' => 'WP Email SMTP',
|
40 |
-
'class' => true,
|
41 |
-
),
|
42 |
-
'smtpmail_include' => array(
|
43 |
-
'name' => 'SMTP Mail',
|
44 |
-
),
|
45 |
-
'bwssmtp_init' => array(
|
46 |
-
'name' => 'SMTP by BestWebSoft',
|
47 |
-
),
|
48 |
-
'WPSendGrid_SMTP' => array(
|
49 |
-
'name' => 'WP SendGrid SMTP',
|
50 |
-
'class' => true,
|
51 |
-
),
|
52 |
-
'sar_friendly_smtp' => array(
|
53 |
-
'name' => 'SAR Friendly SMTP',
|
54 |
-
),
|
55 |
-
'WPGmail_SMTP' => array(
|
56 |
-
'name' => 'WP Gmail SMTP',
|
57 |
-
'class' => true,
|
58 |
-
),
|
59 |
-
'st_smtp_check_config' => array(
|
60 |
-
'name' => 'Cimy Swift SMTP',
|
61 |
-
),
|
62 |
-
'WP_Easy_SMTP' => array(
|
63 |
-
'name' => 'WP Easy SMTP',
|
64 |
-
'class' => true,
|
65 |
-
),
|
66 |
-
'WPMailgun_SMTP' => array(
|
67 |
-
'name' => 'WP Mailgun SMTP',
|
68 |
-
'class' => true,
|
69 |
-
),
|
70 |
-
'my_smtp_wp' => array(
|
71 |
-
'name' => 'MY SMTP WP',
|
72 |
-
),
|
73 |
-
'mail_booster' => array(
|
74 |
-
'name' => 'WP Mail Booster',
|
75 |
-
),
|
76 |
-
'Sendgrid_Settings' => array(
|
77 |
-
'name' => 'SendGrid',
|
78 |
-
'class' => true,
|
79 |
-
),
|
80 |
-
'WPMS_php_mailer' => array(
|
81 |
-
'name' => 'WP Mail Smtp Mailer',
|
82 |
-
),
|
83 |
-
'WPAmazonSES_SMTP' => array(
|
84 |
-
'name' => 'WP Amazon SES SMTP',
|
85 |
-
'class' => true,
|
86 |
-
),
|
87 |
-
'Postmark_Mail' => array(
|
88 |
-
'name' => 'Postmark for WordPress',
|
89 |
-
'class' => true,
|
90 |
-
),
|
91 |
-
'Mailgun' => array(
|
92 |
-
'name' => 'Mailgun',
|
93 |
-
'class' => true,
|
94 |
-
),
|
95 |
-
'WPSparkPost\SparkPost' => array(
|
96 |
-
'name' => 'SparkPost',
|
97 |
-
'class' => true,
|
98 |
-
),
|
99 |
-
'WPYahoo_SMTP' => array(
|
100 |
-
'name' => 'WP Yahoo SMTP',
|
101 |
-
'class' => true,
|
102 |
-
),
|
103 |
-
'wpses_init' => array(
|
104 |
-
'name' => 'WP SES',
|
105 |
-
'class' => true,
|
106 |
-
),
|
107 |
-
'TSPHPMailer' => array(
|
108 |
-
'name' => 'turboSMTP',
|
109 |
-
),
|
110 |
-
'WP_SMTP' => array(
|
111 |
-
'name' => 'WP SMTP',
|
112 |
-
'class' => true,
|
113 |
-
),
|
114 |
-
);
|
115 |
-
|
116 |
-
/**
|
117 |
-
* @var array Conflict information.
|
118 |
-
*/
|
119 |
-
protected $conflict = array();
|
120 |
-
|
121 |
-
/**
|
122 |
-
* Whether we have a conflict with predefined list of plugins.
|
123 |
-
*
|
124 |
-
* @since 1.5.0
|
125 |
-
*
|
126 |
-
* @return bool
|
127 |
-
*/
|
128 |
-
public function is_detected() {
|
129 |
-
|
130 |
-
foreach ( self::$plugins as $callback => $plugin ) {
|
131 |
-
if ( ! empty( $plugin['class'] ) ) {
|
132 |
-
$detected = \class_exists( $callback, false );
|
133 |
-
} else {
|
134 |
-
$detected = \function_exists( $callback );
|
135 |
-
}
|
136 |
-
|
137 |
-
if ( $detected ) {
|
138 |
-
$this->conflict = $plugin;
|
139 |
-
break;
|
140 |
-
}
|
141 |
-
}
|
142 |
-
|
143 |
-
return ! empty( $this->conflict );
|
144 |
-
}
|
145 |
-
|
146 |
-
/**
|
147 |
-
* Add a warning admin message to a user about the conflicting plugin.
|
148 |
-
*
|
149 |
-
* @since 1.5.0
|
150 |
-
*/
|
151 |
-
public function notify() {
|
152 |
-
|
153 |
-
if ( empty( $this->conflict ) ) {
|
154 |
-
return;
|
155 |
-
}
|
156 |
-
|
157 |
-
WP::add_admin_notice(
|
158 |
-
\sprintf( /* translators: %1$s - Plugin name causing conflict; %2$s - Plugin name causing conflict. */
|
159 |
-
\esc_html__( 'Heads up! WP Mail SMTP has detected %1$s is activated. Please deactivate %2$s to prevent conflicts.', 'wp-mail-smtp' ),
|
160 |
-
$this->get_conflict_name(),
|
161 |
-
$this->get_conflict_name()
|
162 |
-
),
|
163 |
-
WP::ADMIN_NOTICE_WARNING
|
164 |
-
);
|
165 |
-
}
|
166 |
-
|
167 |
-
/**
|
168 |
-
* Get the conflicting plugin name is any.
|
169 |
-
*
|
170 |
-
* @since 1.5.0
|
171 |
-
*
|
172 |
-
* @return null|string
|
173 |
-
*/
|
174 |
-
public function get_conflict_name() {
|
175 |
-
|
176 |
-
$name = null;
|
177 |
-
|
178 |
-
if ( ! empty( $this->conflict['name'] ) ) {
|
179 |
-
$name = $this->conflict['name'];
|
180 |
-
}
|
181 |
-
|
182 |
-
return $name;
|
183 |
-
}
|
184 |
-
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace WPMailSMTP;
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Class Conflicts
|
7 |
+
*
|
8 |
+
* @since 1.5.0
|
9 |
+
*/
|
10 |
+
class Conflicts {
|
11 |
+
|
12 |
+
/**
|
13 |
+
* @since 1.5.0
|
14 |
+
*
|
15 |
+
* @var array List of plugins WP Mail SMTP may be conflicting with.
|
16 |
+
*/
|
17 |
+
public static $plugins = array(
|
18 |
+
'swpsmtp_init_smtp' => array(
|
19 |
+
'name' => 'Easy WP SMTP',
|
20 |
+
),
|
21 |
+
'postman_start' => array(
|
22 |
+
'name' => 'Postman SMTP',
|
23 |
+
),
|
24 |
+
'post_start' => array(
|
25 |
+
'name' => 'Post SMTP Mailer/Email Log',
|
26 |
+
),
|
27 |
+
'mail_bank' => array(
|
28 |
+
'name' => 'WP Mail Bank',
|
29 |
+
),
|
30 |
+
'SMTP_MAILER' => array(
|
31 |
+
'name' => 'SMTP Mailer',
|
32 |
+
'class' => true,
|
33 |
+
),
|
34 |
+
'GMAIL_SMTP' => array(
|
35 |
+
'name' => 'Gmail SMTP',
|
36 |
+
'class' => true,
|
37 |
+
),
|
38 |
+
'WP_Email_Smtp' => array(
|
39 |
+
'name' => 'WP Email SMTP',
|
40 |
+
'class' => true,
|
41 |
+
),
|
42 |
+
'smtpmail_include' => array(
|
43 |
+
'name' => 'SMTP Mail',
|
44 |
+
),
|
45 |
+
'bwssmtp_init' => array(
|
46 |
+
'name' => 'SMTP by BestWebSoft',
|
47 |
+
),
|
48 |
+
'WPSendGrid_SMTP' => array(
|
49 |
+
'name' => 'WP SendGrid SMTP',
|
50 |
+
'class' => true,
|
51 |
+
),
|
52 |
+
'sar_friendly_smtp' => array(
|
53 |
+
'name' => 'SAR Friendly SMTP',
|
54 |
+
),
|
55 |
+
'WPGmail_SMTP' => array(
|
56 |
+
'name' => 'WP Gmail SMTP',
|
57 |
+
'class' => true,
|
58 |
+
),
|
59 |
+
'st_smtp_check_config' => array(
|
60 |
+
'name' => 'Cimy Swift SMTP',
|
61 |
+
),
|
62 |
+
'WP_Easy_SMTP' => array(
|
63 |
+
'name' => 'WP Easy SMTP',
|
64 |
+
'class' => true,
|
65 |
+
),
|
66 |
+
'WPMailgun_SMTP' => array(
|
67 |
+
'name' => 'WP Mailgun SMTP',
|
68 |
+
'class' => true,
|
69 |
+
),
|
70 |
+
'my_smtp_wp' => array(
|
71 |
+
'name' => 'MY SMTP WP',
|
72 |
+
),
|
73 |
+
'mail_booster' => array(
|
74 |
+
'name' => 'WP Mail Booster',
|
75 |
+
),
|
76 |
+
'Sendgrid_Settings' => array(
|
77 |
+
'name' => 'SendGrid',
|
78 |
+
'class' => true,
|
79 |
+
),
|
80 |
+
'WPMS_php_mailer' => array(
|
81 |
+
'name' => 'WP Mail Smtp Mailer',
|
82 |
+
),
|
83 |
+
'WPAmazonSES_SMTP' => array(
|
84 |
+
'name' => 'WP Amazon SES SMTP',
|
85 |
+
'class' => true,
|
86 |
+
),
|
87 |
+
'Postmark_Mail' => array(
|
88 |
+
'name' => 'Postmark for WordPress',
|
89 |
+
'class' => true,
|
90 |
+
),
|
91 |
+
'Mailgun' => array(
|
92 |
+
'name' => 'Mailgun',
|
93 |
+
'class' => true,
|
94 |
+
),
|
95 |
+
'WPSparkPost\SparkPost' => array(
|
96 |
+
'name' => 'SparkPost',
|
97 |
+
'class' => true,
|
98 |
+
),
|
99 |
+
'WPYahoo_SMTP' => array(
|
100 |
+
'name' => 'WP Yahoo SMTP',
|
101 |
+
'class' => true,
|
102 |
+
),
|
103 |
+
'wpses_init' => array(
|
104 |
+
'name' => 'WP SES',
|
105 |
+
'class' => true,
|
106 |
+
),
|
107 |
+
'TSPHPMailer' => array(
|
108 |
+
'name' => 'turboSMTP',
|
109 |
+
),
|
110 |
+
'WP_SMTP' => array(
|
111 |
+
'name' => 'WP SMTP',
|
112 |
+
'class' => true,
|
113 |
+
),
|
114 |
+
);
|
115 |
+
|
116 |
+
/**
|
117 |
+
* @var array Conflict information.
|
118 |
+
*/
|
119 |
+
protected $conflict = array();
|
120 |
+
|
121 |
+
/**
|
122 |
+
* Whether we have a conflict with predefined list of plugins.
|
123 |
+
*
|
124 |
+
* @since 1.5.0
|
125 |
+
*
|
126 |
+
* @return bool
|
127 |
+
*/
|
128 |
+
public function is_detected() {
|
129 |
+
|
130 |
+
foreach ( self::$plugins as $callback => $plugin ) {
|
131 |
+
if ( ! empty( $plugin['class'] ) ) {
|
132 |
+
$detected = \class_exists( $callback, false );
|
133 |
+
} else {
|
134 |
+
$detected = \function_exists( $callback );
|
135 |
+
}
|
136 |
+
|
137 |
+
if ( $detected ) {
|
138 |
+
$this->conflict = $plugin;
|
139 |
+
break;
|
140 |
+
}
|
141 |
+
}
|
142 |
+
|
143 |
+
return ! empty( $this->conflict );
|
144 |
+
}
|
145 |
+
|
146 |
+
/**
|
147 |
+
* Add a warning admin message to a user about the conflicting plugin.
|
148 |
+
*
|
149 |
+
* @since 1.5.0
|
150 |
+
*/
|
151 |
+
public function notify() {
|
152 |
+
|
153 |
+
if ( empty( $this->conflict ) ) {
|
154 |
+
return;
|
155 |
+
}
|
156 |
+
|
157 |
+
WP::add_admin_notice(
|
158 |
+
\sprintf( /* translators: %1$s - Plugin name causing conflict; %2$s - Plugin name causing conflict. */
|
159 |
+
\esc_html__( 'Heads up! WP Mail SMTP has detected %1$s is activated. Please deactivate %2$s to prevent conflicts.', 'wp-mail-smtp' ),
|
160 |
+
$this->get_conflict_name(),
|
161 |
+
$this->get_conflict_name()
|
162 |
+
),
|
163 |
+
WP::ADMIN_NOTICE_WARNING
|
164 |
+
);
|
165 |
+
}
|
166 |
+
|
167 |
+
/**
|
168 |
+
* Get the conflicting plugin name is any.
|
169 |
+
*
|
170 |
+
* @since 1.5.0
|
171 |
+
*
|
172 |
+
* @return null|string
|
173 |
+
*/
|
174 |
+
public function get_conflict_name() {
|
175 |
+
|
176 |
+
$name = null;
|
177 |
+
|
178 |
+
if ( ! empty( $this->conflict['name'] ) ) {
|
179 |
+
$name = $this->conflict['name'];
|
180 |
+
}
|
181 |
+
|
182 |
+
return $name;
|
183 |
+
}
|
184 |
+
}
|
src/Core.php
CHANGED
@@ -953,4 +953,29 @@ class Core {
|
|
953 |
|
954 |
return $notifications;
|
955 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
956 |
}
|
953 |
|
954 |
return $notifications;
|
955 |
}
|
956 |
+
|
957 |
+
/**
|
958 |
+
* Prepare the HTML output for a plugin loader/spinner.
|
959 |
+
*
|
960 |
+
* @since 2.4.0
|
961 |
+
*
|
962 |
+
* @param string $color The color of the loader ('', 'blue' or 'white'), where '' is default orange.
|
963 |
+
* @param string $size The size of the loader ('lg', 'md', 'sm').
|
964 |
+
*
|
965 |
+
* @return string
|
966 |
+
*/
|
967 |
+
public function prepare_loader( $color = '', $size = 'md' ) {
|
968 |
+
|
969 |
+
$svg_name = 'loading';
|
970 |
+
|
971 |
+
if ( in_array( $color, [ 'blue', 'white' ], true ) ) {
|
972 |
+
$svg_name .= '-' . $color;
|
973 |
+
}
|
974 |
+
|
975 |
+
if ( ! in_array( $size, [ 'lg', 'md', 'sm' ], true ) ) {
|
976 |
+
$size = 'md';
|
977 |
+
}
|
978 |
+
|
979 |
+
return '<img src="' . esc_url( $this->plugin_url . '/assets/images/loaders/' . $svg_name . '.svg' ) . '" alt="' . esc_html__( 'Loading', 'wp-mail-smtp' ) . '" class="wp-mail-smtp-loading wp-mail-smtp-loading-' . $size . '">';
|
980 |
+
}
|
981 |
}
|
src/Geo.php
CHANGED
@@ -50,15 +50,15 @@ class Geo {
|
|
50 |
* @since 1.6.0 Added new geo API endpoint, provided by WPForms.
|
51 |
* @since 2.0.0 Updated the WPForms geo API endpoint to v3.
|
52 |
*
|
53 |
-
* @param string $ip
|
54 |
*
|
55 |
* @return array Empty array for localhost.
|
56 |
*/
|
57 |
public static function get_location_by_ip( $ip ) {
|
58 |
|
59 |
// Check for a non-local IP.
|
60 |
-
if ( empty( $ip ) || in_array( $ip,
|
61 |
-
return
|
62 |
}
|
63 |
|
64 |
$request = wp_remote_get( 'https://geo.wpforms.com/v3/geolocate/json/' . $ip );
|
@@ -66,14 +66,14 @@ class Geo {
|
|
66 |
if ( ! is_wp_error( $request ) ) {
|
67 |
$request = json_decode( wp_remote_retrieve_body( $request ), true );
|
68 |
if ( ! empty( $request['latitude'] ) && ! empty( $request['longitude'] ) ) {
|
69 |
-
$data =
|
70 |
'latitude' => sanitize_text_field( $request['latitude'] ),
|
71 |
'longitude' => sanitize_text_field( $request['longitude'] ),
|
72 |
-
'city' => sanitize_text_field( $request['city'] ),
|
73 |
-
'region' => sanitize_text_field( $request['region_name'] ),
|
74 |
-
'country' => sanitize_text_field( $request['country_iso'] ),
|
75 |
-
'postal' => sanitize_text_field( $request['zip_code'] ),
|
76 |
-
|
77 |
|
78 |
return $data;
|
79 |
}
|
@@ -87,14 +87,14 @@ class Geo {
|
|
87 |
|
88 |
if ( ! empty( $request['latitude'] ) && ! empty( $request['longitude'] ) ) {
|
89 |
|
90 |
-
$data =
|
91 |
'latitude' => sanitize_text_field( $request['latitude'] ),
|
92 |
'longitude' => sanitize_text_field( $request['longitude'] ),
|
93 |
-
'city' => sanitize_text_field( $request['city'] ),
|
94 |
-
'region' => sanitize_text_field( $request['region'] ),
|
95 |
-
'country' => sanitize_text_field( $request['country'] ),
|
96 |
-
'postal' => sanitize_text_field( $request['postal'] ),
|
97 |
-
|
98 |
|
99 |
return $data;
|
100 |
}
|
@@ -108,20 +108,20 @@ class Geo {
|
|
108 |
|
109 |
if ( ! empty( $request['data']['geo']['latitude'] ) && ! empty( $request['data']['geo']['longitude'] ) ) {
|
110 |
|
111 |
-
$data =
|
112 |
'latitude' => sanitize_text_field( $request['data']['geo']['latitude'] ),
|
113 |
'longitude' => sanitize_text_field( $request['data']['geo']['longitude'] ),
|
114 |
-
'city' => sanitize_text_field( $request['data']['geo']['city'] ),
|
115 |
-
'region' => sanitize_text_field( $request['data']['geo']['region_name'] ),
|
116 |
-
'country' => sanitize_text_field( $request['data']['geo']['country_code'] ),
|
117 |
-
'postal' => sanitize_text_field( $request['data']['geo']['postal_code'] ),
|
118 |
-
|
119 |
|
120 |
return $data;
|
121 |
}
|
122 |
}
|
123 |
|
124 |
-
return
|
125 |
}
|
126 |
|
127 |
/**
|
50 |
* @since 1.6.0 Added new geo API endpoint, provided by WPForms.
|
51 |
* @since 2.0.0 Updated the WPForms geo API endpoint to v3.
|
52 |
*
|
53 |
+
* @param string $ip The IP address.
|
54 |
*
|
55 |
* @return array Empty array for localhost.
|
56 |
*/
|
57 |
public static function get_location_by_ip( $ip ) {
|
58 |
|
59 |
// Check for a non-local IP.
|
60 |
+
if ( empty( $ip ) || in_array( $ip, [ '127.0.0.1', '::1' ], true ) ) {
|
61 |
+
return [];
|
62 |
}
|
63 |
|
64 |
$request = wp_remote_get( 'https://geo.wpforms.com/v3/geolocate/json/' . $ip );
|
66 |
if ( ! is_wp_error( $request ) ) {
|
67 |
$request = json_decode( wp_remote_retrieve_body( $request ), true );
|
68 |
if ( ! empty( $request['latitude'] ) && ! empty( $request['longitude'] ) ) {
|
69 |
+
$data = [
|
70 |
'latitude' => sanitize_text_field( $request['latitude'] ),
|
71 |
'longitude' => sanitize_text_field( $request['longitude'] ),
|
72 |
+
'city' => isset( $request['city'] ) ? sanitize_text_field( $request['city'] ) : '',
|
73 |
+
'region' => isset( $request['region_name'] ) ? sanitize_text_field( $request['region_name'] ) : '',
|
74 |
+
'country' => isset( $request['country_iso'] ) ? sanitize_text_field( $request['country_iso'] ) : '',
|
75 |
+
'postal' => isset( $request['zip_code'] ) ? sanitize_text_field( $request['zip_code'] ) : '',
|
76 |
+
];
|
77 |
|
78 |
return $data;
|
79 |
}
|
87 |
|
88 |
if ( ! empty( $request['latitude'] ) && ! empty( $request['longitude'] ) ) {
|
89 |
|
90 |
+
$data = [
|
91 |
'latitude' => sanitize_text_field( $request['latitude'] ),
|
92 |
'longitude' => sanitize_text_field( $request['longitude'] ),
|
93 |
+
'city' => isset( $request['city'] ) ? sanitize_text_field( $request['city'] ) : '',
|
94 |
+
'region' => isset( $request['region'] ) ? sanitize_text_field( $request['region'] ) : '',
|
95 |
+
'country' => isset( $request['country'] ) ? sanitize_text_field( $request['country'] ) : '',
|
96 |
+
'postal' => isset( $request['postal'] ) ? sanitize_text_field( $request['postal'] ) : '',
|
97 |
+
];
|
98 |
|
99 |
return $data;
|
100 |
}
|
108 |
|
109 |
if ( ! empty( $request['data']['geo']['latitude'] ) && ! empty( $request['data']['geo']['longitude'] ) ) {
|
110 |
|
111 |
+
$data = [
|
112 |
'latitude' => sanitize_text_field( $request['data']['geo']['latitude'] ),
|
113 |
'longitude' => sanitize_text_field( $request['data']['geo']['longitude'] ),
|
114 |
+
'city' => isset( $request['data']['geo']['city'] ) ? sanitize_text_field( $request['data']['geo']['city'] ) : '',
|
115 |
+
'region' => isset( $request['data']['geo']['region_name'] ) ? sanitize_text_field( $request['data']['geo']['region_name'] ) : '',
|
116 |
+
'country' => isset( $request['data']['geo']['country_code'] ) ? sanitize_text_field( $request['data']['geo']['country_code'] ) : '',
|
117 |
+
'postal' => isset( $request['data']['geo']['postal_code'] ) ? sanitize_text_field( $request['data']['geo']['postal_code'] ) : '',
|
118 |
+
];
|
119 |
|
120 |
return $data;
|
121 |
}
|
122 |
}
|
123 |
|
124 |
+
return [];
|
125 |
}
|
126 |
|
127 |
/**
|
src/MailCatcher.php
CHANGED
@@ -166,4 +166,16 @@ class MailCatcher extends \PHPMailer implements MailCatcherInterface {
|
|
166 |
|
167 |
return $this->LE; // phpcs:ignore
|
168 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
}
|
166 |
|
167 |
return $this->LE; // phpcs:ignore
|
168 |
}
|
169 |
+
|
170 |
+
/**
|
171 |
+
* Create a unique ID to use for multipart email boundaries.
|
172 |
+
*
|
173 |
+
* @since 2.4.0
|
174 |
+
*
|
175 |
+
* @return string
|
176 |
+
*/
|
177 |
+
public function generate_id() {
|
178 |
+
|
179 |
+
return $this->generateId();
|
180 |
+
}
|
181 |
}
|
src/MailCatcherInterface.php
CHANGED
@@ -30,4 +30,13 @@ interface MailCatcherInterface {
|
|
30 |
* @return string
|
31 |
*/
|
32 |
public function get_line_ending();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
}
|
30 |
* @return string
|
31 |
*/
|
32 |
public function get_line_ending();
|
33 |
+
|
34 |
+
/**
|
35 |
+
* Create a unique ID to use for multipart email boundaries.
|
36 |
+
*
|
37 |
+
* @since 2.4.0
|
38 |
+
*
|
39 |
+
* @return string
|
40 |
+
*/
|
41 |
+
public function generate_id();
|
42 |
}
|
src/MailCatcherV6.php
CHANGED
@@ -146,4 +146,16 @@ class MailCatcherV6 extends \PHPMailer\PHPMailer\PHPMailer implements MailCatche
|
|
146 |
|
147 |
return static::$LE; // phpcs:ignore
|
148 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
}
|
146 |
|
147 |
return static::$LE; // phpcs:ignore
|
148 |
}
|
149 |
+
|
150 |
+
/**
|
151 |
+
* Create a unique ID to use for multipart email boundaries.
|
152 |
+
*
|
153 |
+
* @since 2.4.0
|
154 |
+
*
|
155 |
+
* @return string
|
156 |
+
*/
|
157 |
+
public function generate_id() {
|
158 |
+
|
159 |
+
return $this->generateId();
|
160 |
+
}
|
161 |
}
|
src/Options.php
CHANGED
@@ -23,8 +23,6 @@ class Options {
|
|
23 |
* @since 1.8.0 Added Pepipost API.
|
24 |
* @since 2.0.0 Added SMTP.com API.
|
25 |
*
|
26 |
-
* @since
|
27 |
-
*
|
28 |
* @var array Map of all the default options of the plugin.
|
29 |
*/
|
30 |
private static $map = [
|
@@ -62,7 +60,6 @@ class Options {
|
|
62 |
'client_id',
|
63 |
'client_secret',
|
64 |
'region',
|
65 |
-
'emails_pending',
|
66 |
],
|
67 |
'mailgun' => [
|
68 |
'api_key',
|
@@ -99,6 +96,8 @@ class Options {
|
|
99 |
* That's where plugin options are saved in wp_options table.
|
100 |
*
|
101 |
* @since 1.0.0
|
|
|
|
|
102 |
*/
|
103 |
const META_KEY = 'wp_mail_smtp';
|
104 |
|
@@ -126,7 +125,7 @@ class Options {
|
|
126 |
*
|
127 |
* One-liner:
|
128 |
* Options::init()->get('smtp', 'host');
|
129 |
-
* Options::init()->
|
130 |
*
|
131 |
* Or multiple-usage:
|
132 |
* $options = new Options();
|
@@ -329,10 +328,6 @@ class Options {
|
|
329 |
$value = $group === 'mailgun' ? 'US' : $value;
|
330 |
break;
|
331 |
|
332 |
-
case 'emails_pending':
|
333 |
-
$value = array();
|
334 |
-
break;
|
335 |
-
|
336 |
case 'auth':
|
337 |
case 'autotls':
|
338 |
$value = in_array( $group, array( 'smtp', 'pepipost' ), true ) ? false : true;
|
@@ -921,7 +916,6 @@ class Options {
|
|
921 |
|
922 |
case 'access_token': // gmail/outlook/zoho, is an array.
|
923 |
case 'user_details': // outlook/zoho, is an array.
|
924 |
-
case 'emails_pending': // amazonses, array().
|
925 |
// These options don't support constants.
|
926 |
$options[ $mailer ][ $option_name ] = $option_value;
|
927 |
break;
|
@@ -996,12 +990,21 @@ class Options {
|
|
996 |
/**
|
997 |
* Check whether the site is using Pepipost SMTP or not.
|
998 |
*
|
|
|
|
|
999 |
* @since 1.0.0
|
1000 |
*
|
1001 |
* @return bool
|
1002 |
*/
|
1003 |
public function is_pepipost_active() {
|
1004 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1005 |
}
|
1006 |
|
1007 |
/**
|
23 |
* @since 1.8.0 Added Pepipost API.
|
24 |
* @since 2.0.0 Added SMTP.com API.
|
25 |
*
|
|
|
|
|
26 |
* @var array Map of all the default options of the plugin.
|
27 |
*/
|
28 |
private static $map = [
|
60 |
'client_id',
|
61 |
'client_secret',
|
62 |
'region',
|
|
|
63 |
],
|
64 |
'mailgun' => [
|
65 |
'api_key',
|
96 |
* That's where plugin options are saved in wp_options table.
|
97 |
*
|
98 |
* @since 1.0.0
|
99 |
+
*
|
100 |
+
* @var string
|
101 |
*/
|
102 |
const META_KEY = 'wp_mail_smtp';
|
103 |
|
125 |
*
|
126 |
* One-liner:
|
127 |
* Options::init()->get('smtp', 'host');
|
128 |
+
* Options::init()->is_mailer_active( 'pepipost' );
|
129 |
*
|
130 |
* Or multiple-usage:
|
131 |
* $options = new Options();
|
328 |
$value = $group === 'mailgun' ? 'US' : $value;
|
329 |
break;
|
330 |
|
|
|
|
|
|
|
|
|
331 |
case 'auth':
|
332 |
case 'autotls':
|
333 |
$value = in_array( $group, array( 'smtp', 'pepipost' ), true ) ? false : true;
|
916 |
|
917 |
case 'access_token': // gmail/outlook/zoho, is an array.
|
918 |
case 'user_details': // outlook/zoho, is an array.
|
|
|
919 |
// These options don't support constants.
|
920 |
$options[ $mailer ][ $option_name ] = $option_value;
|
921 |
break;
|
990 |
/**
|
991 |
* Check whether the site is using Pepipost SMTP or not.
|
992 |
*
|
993 |
+
* @deprecated 2.4.0
|
994 |
+
*
|
995 |
* @since 1.0.0
|
996 |
*
|
997 |
* @return bool
|
998 |
*/
|
999 |
public function is_pepipost_active() {
|
1000 |
+
|
1001 |
+
_deprecated_function(
|
1002 |
+
__METHOD__,
|
1003 |
+
'2.4.0',
|
1004 |
+
'WPMailSMTP\Options::is_mailer_active()'
|
1005 |
+
);
|
1006 |
+
|
1007 |
+
return apply_filters( 'wp_mail_smtp_options_is_pepipost_active', $this->is_mailer_active( 'pepipost' ) );
|
1008 |
}
|
1009 |
|
1010 |
/**
|
src/Providers/AmazonSES/Options.php
CHANGED
@@ -1,44 +1,44 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace WPMailSMTP\Providers\AmazonSES;
|
4 |
-
|
5 |
-
use WPMailSMTP\Providers\OptionsAbstract;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class Options.
|
9 |
-
*
|
10 |
-
* @since 1.7.0
|
11 |
-
*/
|
12 |
-
class Options extends OptionsAbstract {
|
13 |
-
|
14 |
-
/**
|
15 |
-
* AmazonSES Options constructor.
|
16 |
-
*
|
17 |
-
* @since 1.7.0
|
18 |
-
*/
|
19 |
-
public function __construct() {
|
20 |
-
|
21 |
-
parent::__construct(
|
22 |
-
array(
|
23 |
-
'logo_url' => wp_mail_smtp()->assets_url . '/images/providers/aws.svg',
|
24 |
-
'slug' => 'amazonses',
|
25 |
-
'title' => esc_html__( 'Amazon SES', 'wp-mail-smtp' ),
|
26 |
-
'disabled' => true,
|
27 |
-
)
|
28 |
-
);
|
29 |
-
}
|
30 |
-
|
31 |
-
/**
|
32 |
-
* @inheritdoc
|
33 |
-
*/
|
34 |
-
public function display_options() {
|
35 |
-
|
36 |
-
?>
|
37 |
-
|
38 |
-
<p>
|
39 |
-
<?php esc_html_e( 'We\'re sorry, the Amazon SES mailer is not available on your plan. Please upgrade to the PRO plan to unlock all these awesome features.', 'wp-mail-smtp' ); ?>
|
40 |
-
</p>
|
41 |
-
|
42 |
-
<?php
|
43 |
-
}
|
44 |
-
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace WPMailSMTP\Providers\AmazonSES;
|
4 |
+
|
5 |
+
use WPMailSMTP\Providers\OptionsAbstract;
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Class Options.
|
9 |
+
*
|
10 |
+
* @since 1.7.0
|
11 |
+
*/
|
12 |
+
class Options extends OptionsAbstract {
|
13 |
+
|
14 |
+
/**
|
15 |
+
* AmazonSES Options constructor.
|
16 |
+
*
|
17 |
+
* @since 1.7.0
|
18 |
+
*/
|
19 |
+
public function __construct() {
|
20 |
+
|
21 |
+
parent::__construct(
|
22 |
+
array(
|
23 |
+
'logo_url' => wp_mail_smtp()->assets_url . '/images/providers/aws.svg',
|
24 |
+
'slug' => 'amazonses',
|
25 |
+
'title' => esc_html__( 'Amazon SES', 'wp-mail-smtp' ),
|
26 |
+
'disabled' => true,
|
27 |
+
)
|
28 |
+
);
|
29 |
+
}
|
30 |
+
|
31 |
+
/**
|
32 |
+
* @inheritdoc
|
33 |
+
*/
|
34 |
+
public function display_options() {
|
35 |
+
|
36 |
+
?>
|
37 |
+
|
38 |
+
<p>
|
39 |
+
<?php esc_html_e( 'We\'re sorry, the Amazon SES mailer is not available on your plan. Please upgrade to the PRO plan to unlock all these awesome features.', 'wp-mail-smtp' ); ?>
|
40 |
+
</p>
|
41 |
+
|
42 |
+
<?php
|
43 |
+
}
|
44 |
+
}
|
src/Providers/AuthAbstract.php
CHANGED
@@ -1,148 +1,148 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace WPMailSMTP\Providers;
|
4 |
-
|
5 |
-
use WPMailSMTP\Options as PluginOptions;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class AuthAbstract.
|
9 |
-
*
|
10 |
-
* @since 1.0.0
|
11 |
-
*/
|
12 |
-
abstract class AuthAbstract implements AuthInterface {
|
13 |
-
|
14 |
-
/**
|
15 |
-
* Mailer DB options.
|
16 |
-
*
|
17 |
-
* @since 1.0.0
|
18 |
-
*
|
19 |
-
* @var array
|
20 |
-
*/
|
21 |
-
protected $options = array();
|
22 |
-
|
23 |
-
/**
|
24 |
-
* @since 1.0.0
|
25 |
-
*
|
26 |
-
* @var mixed
|
27 |
-
*/
|
28 |
-
protected $client;
|
29 |
-
|
30 |
-
/**
|
31 |
-
* Mailer slug.
|
32 |
-
*
|
33 |
-
* @since 1.0.0
|
34 |
-
*
|
35 |
-
* @var string
|
36 |
-
*/
|
37 |
-
protected $mailer_slug = '';
|
38 |
-
|
39 |
-
/**
|
40 |
-
* Key for a stored unique state value.
|
41 |
-
*
|
42 |
-
* @since 1.5.0
|
43 |
-
*
|
44 |
-
* @var string
|
45 |
-
*/
|
46 |
-
public $state_key = 'wp_mail_smtp_provider_client_state';
|
47 |
-
|
48 |
-
/**
|
49 |
-
* Use the composer autoloader to include the auth library and all dependencies.
|
50 |
-
*
|
51 |
-
* @since 1.0.0
|
52 |
-
*/
|
53 |
-
protected function include_vendor_lib() {
|
54 |
-
|
55 |
-
require_once wp_mail_smtp()->plugin_path . '/vendor/autoload.php';
|
56 |
-
}
|
57 |
-
|
58 |
-
/**
|
59 |
-
* Get the url, that users will be redirected back to finish the OAuth process.
|
60 |
-
*
|
61 |
-
* @since 1.0.0
|
62 |
-
*
|
63 |
-
* @return string
|
64 |
-
*/
|
65 |
-
public static function get_plugin_auth_url() {
|
66 |
-
|
67 |
-
return add_query_arg( 'tab', 'auth', wp_mail_smtp()->get_admin()->get_admin_page_url() );
|
68 |
-
}
|
69 |
-
|
70 |
-
/**
|
71 |
-
* Update auth code in our DB.
|
72 |
-
*
|
73 |
-
* @since 1.0.0
|
74 |
-
*
|
75 |
-
* @param string $code
|
76 |
-
*/
|
77 |
-
protected function update_auth_code( $code ) {
|
78 |
-
|
79 |
-
$options = new PluginOptions();
|
80 |
-
$all = $options->get_all();
|
81 |
-
|
82 |
-
// To save in DB.
|
83 |
-
$all[ $this->mailer_slug ]['auth_code'] = $code;
|
84 |
-
|
85 |
-
// To save in currently retrieved options array.
|
86 |
-
$this->options['auth_code'] = $code;
|
87 |
-
|
88 |
-
$options->set( $all );
|
89 |
-
}
|
90 |
-
|
91 |
-
/**
|
92 |
-
* Update access token in our DB.
|
93 |
-
*
|
94 |
-
* @since 1.0.0
|
95 |
-
*
|
96 |
-
* @param mixed $token
|
97 |
-
*/
|
98 |
-
protected function update_access_token( $token ) {
|
99 |
-
|
100 |
-
$options = new PluginOptions();
|
101 |
-
$all = $options->get_all();
|
102 |
-
|
103 |
-
// To save in DB.
|
104 |
-
$all[ $this->mailer_slug ]['access_token'] = $token;
|
105 |
-
|
106 |
-
// To save in currently retrieved options array.
|
107 |
-
$this->options['access_token'] = $token;
|
108 |
-
|
109 |
-
$options->set( $all );
|
110 |
-
}
|
111 |
-
|
112 |
-
/**
|
113 |
-
* Update refresh token in our DB.
|
114 |
-
*
|
115 |
-
* @since 1.0.0
|
116 |
-
*
|
117 |
-
* @param mixed $token
|
118 |
-
*/
|
119 |
-
protected function update_refresh_token( $token ) {
|
120 |
-
|
121 |
-
$options = new PluginOptions();
|
122 |
-
$all = $options->get_all();
|
123 |
-
|
124 |
-
// To save in DB.
|
125 |
-
$all[ $this->mailer_slug ]['refresh_token'] = $token;
|
126 |
-
|
127 |
-
// To save in currently retrieved options array.
|
128 |
-
$this->options['refresh_token'] = $token;
|
129 |
-
|
130 |
-
$options->set( $all );
|
131 |
-
}
|
132 |
-
|
133 |
-
/**
|
134 |
-
* @inheritdoc
|
135 |
-
*/
|
136 |
-
public function is_clients_saved() {
|
137 |
-
|
138 |
-
return ! empty( $this->options['client_id'] ) && ! empty( $this->options['client_secret'] );
|
139 |
-
}
|
140 |
-
|
141 |
-
/**
|
142 |
-
* @inheritdoc
|
143 |
-
*/
|
144 |
-
public function is_auth_required() {
|
145 |
-
|
146 |
-
return empty( $this->options['access_token'] ) || empty( $this->options['refresh_token'] );
|
147 |
-
}
|
148 |
-
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace WPMailSMTP\Providers;
|
4 |
+
|
5 |
+
use WPMailSMTP\Options as PluginOptions;
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Class AuthAbstract.
|
9 |
+
*
|
10 |
+
* @since 1.0.0
|
11 |
+
*/
|
12 |
+
abstract class AuthAbstract implements AuthInterface {
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Mailer DB options.
|
16 |
+
*
|
17 |
+
* @since 1.0.0
|
18 |
+
*
|
19 |
+
* @var array
|
20 |
+
*/
|
21 |
+
protected $options = array();
|
22 |
+
|
23 |
+
/**
|
24 |
+
* @since 1.0.0
|
25 |
+
*
|
26 |
+
* @var mixed
|
27 |
+
*/
|
28 |
+
protected $client;
|
29 |
+
|
30 |
+
/**
|
31 |
+
* Mailer slug.
|
32 |
+
*
|
33 |
+
* @since 1.0.0
|
34 |
+
*
|
35 |
+
* @var string
|
36 |
+
*/
|
37 |
+
protected $mailer_slug = '';
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Key for a stored unique state value.
|
41 |
+
*
|
42 |
+
* @since 1.5.0
|
43 |
+
*
|
44 |
+
* @var string
|
45 |
+
*/
|
46 |
+
public $state_key = 'wp_mail_smtp_provider_client_state';
|
47 |
+
|
48 |
+
/**
|
49 |
+
* Use the composer autoloader to include the auth library and all dependencies.
|
50 |
+
*
|
51 |
+
* @since 1.0.0
|
52 |
+
*/
|
53 |
+
protected function include_vendor_lib() {
|
54 |
+
|
55 |
+
require_once wp_mail_smtp()->plugin_path . '/vendor/autoload.php';
|
56 |
+
}
|
57 |
+
|
58 |
+
/**
|
59 |
+
* Get the url, that users will be redirected back to finish the OAuth process.
|
60 |
+
*
|
61 |
+
* @since 1.0.0
|
62 |
+
*
|
63 |
+
* @return string
|
64 |
+
*/
|
65 |
+
public static function get_plugin_auth_url() {
|
66 |
+
|
67 |
+
return add_query_arg( 'tab', 'auth', wp_mail_smtp()->get_admin()->get_admin_page_url() );
|
68 |
+
}
|
69 |
+
|
70 |
+
/**
|
71 |
+
* Update auth code in our DB.
|
72 |
+
*
|
73 |
+
* @since 1.0.0
|
74 |
+
*
|
75 |
+
* @param string $code
|
76 |
+
*/
|
77 |
+
protected function update_auth_code( $code ) {
|
78 |
+
|
79 |
+
$options = new PluginOptions();
|
80 |
+
$all = $options->get_all();
|
81 |
+
|
82 |
+
// To save in DB.
|
83 |
+
$all[ $this->mailer_slug ]['auth_code'] = $code;
|
84 |
+
|
85 |
+
// To save in currently retrieved options array.
|
86 |
+
$this->options['auth_code'] = $code;
|
87 |
+
|
88 |
+
$options->set( $all );
|
89 |
+
}
|
90 |
+
|
91 |
+
/**
|
92 |
+
* Update access token in our DB.
|
93 |
+
*
|
94 |
+
* @since 1.0.0
|
95 |
+
*
|
96 |
+
* @param mixed $token
|
97 |
+
*/
|
98 |
+
protected function update_access_token( $token ) {
|
99 |
+
|
100 |
+
$options = new PluginOptions();
|
101 |
+
$all = $options->get_all();
|
102 |
+
|
103 |
+
// To save in DB.
|
104 |
+
$all[ $this->mailer_slug ]['access_token'] = $token;
|
105 |
+
|
106 |
+
// To save in currently retrieved options array.
|
107 |
+
$this->options['access_token'] = $token;
|
108 |
+
|
109 |
+
$options->set( $all );
|
110 |
+
}
|
111 |
+
|
112 |
+
/**
|
113 |
+
* Update refresh token in our DB.
|
114 |
+
*
|
115 |
+
* @since 1.0.0
|
116 |
+
*
|
117 |
+
* @param mixed $token
|
118 |
+
*/
|
119 |
+
protected function update_refresh_token( $token ) {
|
120 |
+
|
121 |
+
$options = new PluginOptions();
|
122 |
+
$all = $options->get_all();
|
123 |
+
|
124 |
+
// To save in DB.
|
125 |
+
$all[ $this->mailer_slug ]['refresh_token'] = $token;
|
126 |
+
|
127 |
+
// To save in currently retrieved options array.
|
128 |
+
$this->options['refresh_token'] = $token;
|
129 |
+
|
130 |
+
$options->set( $all );
|
131 |
+
}
|
132 |
+
|
133 |
+
/**
|
134 |
+
* @inheritdoc
|
135 |
+
*/
|
136 |
+
public function is_clients_saved() {
|
137 |
+
|
138 |
+
return ! empty( $this->options['client_id'] ) && ! empty( $this->options['client_secret'] );
|
139 |
+
}
|
140 |
+
|
141 |
+
/**
|
142 |
+
* @inheritdoc
|
143 |
+
*/
|
144 |
+
public function is_auth_required() {
|
145 |
+
|
146 |
+
return empty( $this->options['access_token'] ) || empty( $this->options['refresh_token'] );
|
147 |
+
}
|
148 |
+
}
|
src/Providers/AuthInterface.php
CHANGED
@@ -1,30 +1,30 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace WPMailSMTP\Providers;
|
4 |
-
|
5 |
-
/**
|
6 |
-
* Interface AuthInterface.
|
7 |
-
*
|
8 |
-
* @since 1.0.0
|
9 |
-
*/
|
10 |
-
interface AuthInterface {
|
11 |
-
|
12 |
-
/**
|
13 |
-
* Whether user saved Client ID/App ID and Client Secret/App Password or not.
|
14 |
-
* Both options are required.
|
15 |
-
*
|
16 |
-
* @since 1.0.0
|
17 |
-
*
|
18 |
-
* @return bool
|
19 |
-
*/
|
20 |
-
public function is_clients_saved();
|
21 |
-
|
22 |
-
/**
|
23 |
-
* Whether we have an access and refresh tokens or not.
|
24 |
-
*
|
25 |
-
* @since 1.0.0
|
26 |
-
*
|
27 |
-
* @return bool
|
28 |
-
*/
|
29 |
-
public function is_auth_required();
|
30 |
-
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace WPMailSMTP\Providers;
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Interface AuthInterface.
|
7 |
+
*
|
8 |
+
* @since 1.0.0
|
9 |
+
*/
|
10 |
+
interface AuthInterface {
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Whether user saved Client ID/App ID and Client Secret/App Password or not.
|
14 |
+
* Both options are required.
|
15 |
+
*
|
16 |
+
* @since 1.0.0
|
17 |
+
*
|
18 |
+
* @return bool
|
19 |
+
*/
|
20 |
+
public function is_clients_saved();
|
21 |
+
|
22 |
+
/**
|
23 |
+
* Whether we have an access and refresh tokens or not.
|
24 |
+
*
|
25 |
+
* @since 1.0.0
|
26 |
+
*
|
27 |
+
* @return bool
|
28 |
+
*/
|
29 |
+
public function is_auth_required();
|
30 |
+
}
|
src/Providers/Gmail/Auth.php
CHANGED
@@ -6,6 +6,8 @@ use WPMailSMTP\Admin\Area;
|
|
6 |
use WPMailSMTP\Debug;
|
7 |
use WPMailSMTP\Options as PluginOptions;
|
8 |
use WPMailSMTP\Providers\AuthAbstract;
|
|
|
|
|
9 |
|
10 |
/**
|
11 |
* Class Auth to request access and refresh tokens.
|
@@ -74,7 +76,7 @@ class Auth extends AuthAbstract {
|
|
74 |
* @since 1.0.0
|
75 |
* @since 1.5.0 Add ability to apply custom options to the client via a filter.
|
76 |
*
|
77 |
-
* @return
|
78 |
*/
|
79 |
public function get_client() {
|
80 |
|
@@ -85,7 +87,7 @@ class Auth extends AuthAbstract {
|
|
85 |
|
86 |
$this->include_vendor_lib();
|
87 |
|
88 |
-
$client = new
|
89 |
array(
|
90 |
'client_id' => $this->options['client_id'],
|
91 |
'client_secret' => $this->options['client_secret'],
|
@@ -99,7 +101,7 @@ class Auth extends AuthAbstract {
|
|
99 |
$client->setApprovalPrompt( 'force' );
|
100 |
$client->setIncludeGrantedScopes( true );
|
101 |
// We request only the sending capability, as it's what we only need to do.
|
102 |
-
$client->setScopes( array(
|
103 |
$client->setRedirectUri( self::get_plugin_auth_url() );
|
104 |
|
105 |
// Apply custom options to the client.
|
@@ -224,13 +226,13 @@ class Auth extends AuthAbstract {
|
|
224 |
if (
|
225 |
! empty( $code ) &&
|
226 |
(
|
227 |
-
$scope ===
|
228 |
-
$scope ===
|
229 |
-
$scope ===
|
230 |
-
$scope ===
|
231 |
)
|
232 |
) {
|
233 |
-
// Save the auth code. So
|
234 |
$this->update_auth_code( $code );
|
235 |
} else {
|
236 |
wp_safe_redirect(
|
@@ -264,8 +266,8 @@ class Auth extends AuthAbstract {
|
|
264 |
|
265 |
if (
|
266 |
! empty( $this->client ) &&
|
267 |
-
class_exists( 'Google_Client', false ) &&
|
268 |
-
$this->client instanceof
|
269 |
) {
|
270 |
return filter_var( $this->client->createAuthUrl(), FILTER_SANITIZE_URL );
|
271 |
}
|
@@ -282,7 +284,7 @@ class Auth extends AuthAbstract {
|
|
282 |
*/
|
283 |
public function get_user_info() {
|
284 |
|
285 |
-
$gmail = new
|
286 |
|
287 |
try {
|
288 |
$email = $gmail->users->getProfile( 'me' )->getEmailAddress();
|
@@ -306,20 +308,18 @@ class Auth extends AuthAbstract {
|
|
306 |
return $this->aliases;
|
307 |
}
|
308 |
|
309 |
-
$gmail = new
|
310 |
|
311 |
try {
|
312 |
$response = $gmail->users_settings_sendAs->listUsersSettingsSendAs( 'me' ); // phpcs:ignore
|
313 |
|
314 |
// phpcs:disable
|
315 |
-
|
316 |
-
$
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
);
|
322 |
-
}
|
323 |
// phpcs:enable
|
324 |
|
325 |
} catch ( \Exception $exception ) {
|
6 |
use WPMailSMTP\Debug;
|
7 |
use WPMailSMTP\Options as PluginOptions;
|
8 |
use WPMailSMTP\Providers\AuthAbstract;
|
9 |
+
use WPMailSMTP\Vendor\Google_Client;
|
10 |
+
use WPMailSMTP\Vendor\Google_Service_Gmail;
|
11 |
|
12 |
/**
|
13 |
* Class Auth to request access and refresh tokens.
|
76 |
* @since 1.0.0
|
77 |
* @since 1.5.0 Add ability to apply custom options to the client via a filter.
|
78 |
*
|
79 |
+
* @return Google_Client
|
80 |
*/
|
81 |
public function get_client() {
|
82 |
|
87 |
|
88 |
$this->include_vendor_lib();
|
89 |
|
90 |
+
$client = new Google_Client(
|
91 |
array(
|
92 |
'client_id' => $this->options['client_id'],
|
93 |
'client_secret' => $this->options['client_secret'],
|
101 |
$client->setApprovalPrompt( 'force' );
|
102 |
$client->setIncludeGrantedScopes( true );
|
103 |
// We request only the sending capability, as it's what we only need to do.
|
104 |
+
$client->setScopes( array( Google_Service_Gmail::MAIL_GOOGLE_COM ) );
|
105 |
$client->setRedirectUri( self::get_plugin_auth_url() );
|
106 |
|
107 |
// Apply custom options to the client.
|
226 |
if (
|
227 |
! empty( $code ) &&
|
228 |
(
|
229 |
+
$scope === Google_Service_Gmail::MAIL_GOOGLE_COM . ' ' . Google_Service_Gmail::GMAIL_SEND ||
|
230 |
+
$scope === Google_Service_Gmail::GMAIL_SEND . ' ' . Google_Service_Gmail::MAIL_GOOGLE_COM ||
|
231 |
+
$scope === Google_Service_Gmail::GMAIL_SEND ||
|
232 |
+
$scope === Google_Service_Gmail::MAIL_GOOGLE_COM
|
233 |
)
|
234 |
) {
|
235 |
+
// Save the auth code. So Google_Client can reuse it to retrieve the access token.
|
236 |
$this->update_auth_code( $code );
|
237 |
} else {
|
238 |
wp_safe_redirect(
|
266 |
|
267 |
if (
|
268 |
! empty( $this->client ) &&
|
269 |
+
class_exists( 'WPMailSMTP\Vendor\Google_Client', false ) &&
|
270 |
+
$this->client instanceof Google_Client
|
271 |
) {
|
272 |
return filter_var( $this->client->createAuthUrl(), FILTER_SANITIZE_URL );
|
273 |
}
|
284 |
*/
|
285 |
public function get_user_info() {
|
286 |
|
287 |
+
$gmail = new Google_Service_Gmail( $this->get_client() );
|
288 |
|
289 |
try {
|
290 |
$email = $gmail->users->getProfile( 'me' )->getEmailAddress();
|
308 |
return $this->aliases;
|
309 |
}
|
310 |
|
311 |
+
$gmail = new Google_Service_Gmail( $this->get_client() );
|
312 |
|
313 |
try {
|
314 |
$response = $gmail->users_settings_sendAs->listUsersSettingsSendAs( 'me' ); // phpcs:ignore
|
315 |
|
316 |
// phpcs:disable
|
317 |
+
$this->aliases = array_map(
|
318 |
+
function( $sendAsObject ) {
|
319 |
+
return $sendAsObject['sendAsEmail'];
|
320 |
+
},
|
321 |
+
(array) $response->getSendAs()
|
322 |
+
);
|
|
|
|
|
323 |
// phpcs:enable
|
324 |
|
325 |
} catch ( \Exception $exception ) {
|
src/Providers/Gmail/Mailer.php
CHANGED
@@ -5,6 +5,8 @@ namespace WPMailSMTP\Providers\Gmail;
|
|
5 |
use WPMailSMTP\Debug;
|
6 |
use WPMailSMTP\MailCatcherInterface;
|
7 |
use WPMailSMTP\Providers\MailerAbstract;
|
|
|
|
|
8 |
|
9 |
/**
|
10 |
* Class Mailer.
|
@@ -28,7 +30,7 @@ class Mailer extends MailerAbstract {
|
|
28 |
*
|
29 |
* @since 1.0.0
|
30 |
*
|
31 |
-
* @var
|
32 |
*/
|
33 |
protected $message;
|
34 |
|
@@ -76,7 +78,7 @@ class Mailer extends MailerAbstract {
|
|
76 |
require_once wp_mail_smtp()->plugin_path . '/vendor/autoload.php';
|
77 |
|
78 |
$auth = new Auth();
|
79 |
-
$message = new
|
80 |
|
81 |
// Set the authorized Gmail email address as the "from email" if the set email is not on the list of aliases.
|
82 |
$possible_from_emails = $auth->get_user_possible_send_from_addresses();
|
@@ -103,7 +105,7 @@ class Mailer extends MailerAbstract {
|
|
103 |
|
104 |
$message->setRaw( $base64 );
|
105 |
|
106 |
-
$service = new
|
107 |
$response = $service->users_messages->send( 'me', $message );
|
108 |
|
109 |
$this->process_response( $response );
|
@@ -123,7 +125,7 @@ class Mailer extends MailerAbstract {
|
|
123 |
* @since 1.0.0
|
124 |
* @since 1.5.0 Added action "wp_mail_smtp_providers_gmail_mailer_process_response" with $response.
|
125 |
*
|
126 |
-
* @param
|
127 |
*/
|
128 |
protected function process_response( $response ) {
|
129 |
|
5 |
use WPMailSMTP\Debug;
|
6 |
use WPMailSMTP\MailCatcherInterface;
|
7 |
use WPMailSMTP\Providers\MailerAbstract;
|
8 |
+
use WPMailSMTP\Vendor\Google_Service_Gmail;
|
9 |
+
use WPMailSMTP\Vendor\Google_Service_Gmail_Message;
|
10 |
|
11 |
/**
|
12 |
* Class Mailer.
|
30 |
*
|
31 |
* @since 1.0.0
|
32 |
*
|
33 |
+
* @var Google_Service_Gmail_Message
|
34 |
*/
|
35 |
protected $message;
|
36 |
|
78 |
require_once wp_mail_smtp()->plugin_path . '/vendor/autoload.php';
|
79 |
|
80 |
$auth = new Auth();
|
81 |
+
$message = new Google_Service_Gmail_Message();
|
82 |
|
83 |
// Set the authorized Gmail email address as the "from email" if the set email is not on the list of aliases.
|
84 |
$possible_from_emails = $auth->get_user_possible_send_from_addresses();
|
105 |
|
106 |
$message->setRaw( $base64 );
|
107 |
|
108 |
+
$service = new Google_Service_Gmail( $auth->get_client() );
|
109 |
$response = $service->users_messages->send( 'me', $message );
|
110 |
|
111 |
$this->process_response( $response );
|
125 |
* @since 1.0.0
|
126 |
* @since 1.5.0 Added action "wp_mail_smtp_providers_gmail_mailer_process_response" with $response.
|
127 |
*
|
128 |
+
* @param Google_Service_Gmail_Message $response Instance of Gmail response.
|
129 |
*/
|
130 |
protected function process_response( $response ) {
|
131 |
|
src/Providers/Loader.php
CHANGED
@@ -25,8 +25,8 @@ class Loader {
|
|
25 |
protected $providers = array(
|
26 |
'mail' => 'WPMailSMTP\Providers\Mail\\',
|
27 |
'smtpcom' => 'WPMailSMTP\Providers\SMTPcom\\',
|
28 |
-
'pepipostapi' => 'WPMailSMTP\Providers\PepipostAPI\\',
|
29 |
'sendinblue' => 'WPMailSMTP\Providers\Sendinblue\\',
|
|
|
30 |
'mailgun' => 'WPMailSMTP\Providers\Mailgun\\',
|
31 |
'sendgrid' => 'WPMailSMTP\Providers\Sendgrid\\',
|
32 |
'amazonses' => 'WPMailSMTP\Providers\AmazonSES\\',
|
@@ -53,7 +53,7 @@ class Loader {
|
|
53 |
*/
|
54 |
public function get_providers() {
|
55 |
|
56 |
-
if ( ! Options::init()->
|
57 |
unset( $this->providers['pepipost'] );
|
58 |
}
|
59 |
|
25 |
protected $providers = array(
|
26 |
'mail' => 'WPMailSMTP\Providers\Mail\\',
|
27 |
'smtpcom' => 'WPMailSMTP\Providers\SMTPcom\\',
|
|
|
28 |
'sendinblue' => 'WPMailSMTP\Providers\Sendinblue\\',
|
29 |
+
'pepipostapi' => 'WPMailSMTP\Providers\PepipostAPI\\',
|
30 |
'mailgun' => 'WPMailSMTP\Providers\Mailgun\\',
|
31 |
'sendgrid' => 'WPMailSMTP\Providers\Sendgrid\\',
|
32 |
'amazonses' => 'WPMailSMTP\Providers\AmazonSES\\',
|
53 |
*/
|
54 |
public function get_providers() {
|
55 |
|
56 |
+
if ( ! Options::init()->is_mailer_active( 'pepipost' ) ) {
|
57 |
unset( $this->providers['pepipost'] );
|
58 |
}
|
59 |
|
src/Providers/Mail/Mailer.php
CHANGED
@@ -1,49 +1,49 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace WPMailSMTP\Providers\Mail;
|
4 |
-
|
5 |
-
use WPMailSMTP\Providers\MailerAbstract;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class Mailer inherits everything from parent abstract class.
|
9 |
-
* This file is required for a proper work of Loader and \ReflectionClass.
|
10 |
-
*
|
11 |
-
* @package WPMailSMTP\Providers\Mail
|
12 |
-
*/
|
13 |
-
class Mailer extends MailerAbstract {
|
14 |
-
|
15 |
-
/**
|
16 |
-
* @inheritdoc
|
17 |
-
*/
|
18 |
-
public function get_debug_info() {
|
19 |
-
|
20 |
-
$mail_text = array();
|
21 |
-
|
22 |
-
$mail_text[] = '<br><strong>Server:</strong>';
|
23 |
-
|
24 |
-
$disabled_functions = ini_get( 'disable_functions' );
|
25 |
-
$disabled = (array) explode( ',', trim( $disabled_functions ) );
|
26 |
-
|
27 |
-
$mail_text[] = '<strong>PHP.mail():</strong> ' . ( in_array( 'mail', $disabled, true ) || ! function_exists( 'mail' ) ? 'No' : 'Yes' );
|
28 |
-
if ( function_exists( 'apache_get_modules' ) ) {
|
29 |
-
$modules = apache_get_modules();
|
30 |
-
$mail_text[] = '<strong>Apache.mod_security:</strong> ' . ( in_array( 'mod_security', $modules, true ) || in_array( 'mod_security2', $modules, true ) ? 'Yes' : 'No' );
|
31 |
-
}
|
32 |
-
if ( function_exists( 'selinux_is_enabled' ) ) {
|
33 |
-
$mail_text[] = '<strong>OS.SELinux:</strong> ' . ( selinux_is_enabled() ? 'Yes' : 'No' );
|
34 |
-
}
|
35 |
-
if ( function_exists( 'grsecurity_is_enabled' ) ) {
|
36 |
-
$mail_text[] = '<strong>OS.grsecurity:</strong> ' . ( grsecurity_is_enabled() ? 'Yes' : 'No' );
|
37 |
-
}
|
38 |
-
|
39 |
-
return implode( '<br>', $mail_text );
|
40 |
-
}
|
41 |
-
|
42 |
-
/**
|
43 |
-
* @inheritdoc
|
44 |
-
*/
|
45 |
-
public function is_mailer_complete() {
|
46 |
-
|
47 |
-
return true;
|
48 |
-
}
|
49 |
-
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace WPMailSMTP\Providers\Mail;
|
4 |
+
|
5 |
+
use WPMailSMTP\Providers\MailerAbstract;
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Class Mailer inherits everything from parent abstract class.
|
9 |
+
* This file is required for a proper work of Loader and \ReflectionClass.
|
10 |
+
*
|
11 |
+
* @package WPMailSMTP\Providers\Mail
|
12 |
+
*/
|
13 |
+
class Mailer extends MailerAbstract {
|
14 |
+
|
15 |
+
/**
|
16 |
+
* @inheritdoc
|
17 |
+
*/
|
18 |
+
public function get_debug_info() {
|
19 |
+
|
20 |
+
$mail_text = array();
|
21 |
+
|
22 |
+
$mail_text[] = '<br><strong>Server:</strong>';
|
23 |
+
|
24 |
+
$disabled_functions = ini_get( 'disable_functions' );
|
25 |
+
$disabled = (array) explode( ',', trim( $disabled_functions ) );
|
26 |
+
|
27 |
+
$mail_text[] = '<strong>PHP.mail():</strong> ' . ( in_array( 'mail', $disabled, true ) || ! function_exists( 'mail' ) ? 'No' : 'Yes' );
|
28 |
+
if ( function_exists( 'apache_get_modules' ) ) {
|
29 |
+
$modules = apache_get_modules();
|
30 |
+
$mail_text[] = '<strong>Apache.mod_security:</strong> ' . ( in_array( 'mod_security', $modules, true ) || in_array( 'mod_security2', $modules, true ) ? 'Yes' : 'No' );
|
31 |
+
}
|
32 |
+
if ( function_exists( 'selinux_is_enabled' ) ) {
|
33 |
+
$mail_text[] = '<strong>OS.SELinux:</strong> ' . ( selinux_is_enabled() ? 'Yes' : 'No' );
|
34 |
+
}
|
35 |
+
if ( function_exists( 'grsecurity_is_enabled' ) ) {
|
36 |
+
$mail_text[] = '<strong>OS.grsecurity:</strong> ' . ( grsecurity_is_enabled() ? 'Yes' : 'No' );
|
37 |
+
}
|
38 |
+
|
39 |
+
return implode( '<br>', $mail_text );
|
40 |
+
}
|
41 |
+
|
42 |
+
/**
|
43 |
+
* @inheritdoc
|
44 |
+
*/
|
45 |
+
public function is_mailer_complete() {
|
46 |
+
|
47 |
+
return true;
|
48 |
+
}
|
49 |
+
}
|
src/Providers/Mail/Options.php
CHANGED
@@ -1,42 +1,42 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace WPMailSMTP\Providers\Mail;
|
4 |
-
|
5 |
-
use WPMailSMTP\Providers\OptionsAbstract;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class Option.
|
9 |
-
*
|
10 |
-
* @since 1.0.0
|
11 |
-
*/
|
12 |
-
class Options extends OptionsAbstract {
|
13 |
-
|
14 |
-
/**
|
15 |
-
* Mail constructor.
|
16 |
-
*
|
17 |
-
* @since 1.0.0
|
18 |
-
*/
|
19 |
-
public function __construct() {
|
20 |
-
|
21 |
-
parent::__construct(
|
22 |
-
array(
|
23 |
-
'logo_url' => wp_mail_smtp()->assets_url . '/images/providers/php.svg',
|
24 |
-
'slug' => 'mail',
|
25 |
-
'title' => esc_html__( 'Default (none)', 'wp-mail-smtp' ),
|
26 |
-
)
|
27 |
-
);
|
28 |
-
}
|
29 |
-
|
30 |
-
/**
|
31 |
-
* @inheritdoc
|
32 |
-
*/
|
33 |
-
public function display_options() {
|
34 |
-
?>
|
35 |
-
|
36 |
-
<blockquote>
|
37 |
-
<?php esc_html_e( 'You currently have the native WordPress option selected. Please select any other Mailer option above to continue the setup.', 'wp-mail-smtp' ); ?>
|
38 |
-
</blockquote>
|
39 |
-
|
40 |
-
<?php
|
41 |
-
}
|
42 |
-
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace WPMailSMTP\Providers\Mail;
|
4 |
+
|
5 |
+
use WPMailSMTP\Providers\OptionsAbstract;
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Class Option.
|
9 |
+
*
|
10 |
+
* @since 1.0.0
|
11 |
+
*/
|
12 |
+
class Options extends OptionsAbstract {
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Mail constructor.
|
16 |
+
*
|
17 |
+
* @since 1.0.0
|
18 |
+
*/
|
19 |
+
public function __construct() {
|
20 |
+
|
21 |
+
parent::__construct(
|
22 |
+
array(
|
23 |
+
'logo_url' => wp_mail_smtp()->assets_url . '/images/providers/php.svg',
|
24 |
+
'slug' => 'mail',
|
25 |
+
'title' => esc_html__( 'Default (none)', 'wp-mail-smtp' ),
|
26 |
+
)
|
27 |
+
);
|
28 |
+
}
|
29 |
+
|
30 |
+
/**
|
31 |
+
* @inheritdoc
|
32 |
+
*/
|
33 |
+
public function display_options() {
|
34 |
+
?>
|
35 |
+
|
36 |
+
<blockquote>
|
37 |
+
<?php esc_html_e( 'You currently have the native WordPress option selected. Please select any other Mailer option above to continue the setup.', 'wp-mail-smtp' ); ?>
|
38 |
+
</blockquote>
|
39 |
+
|
40 |
+
<?php
|
41 |
+
}
|
42 |
+
}
|
src/Providers/Mailgun/Mailer.php
CHANGED
@@ -227,7 +227,7 @@ class Mailer extends MailerAbstract {
|
|
227 |
*
|
228 |
* @since 1.0.0
|
229 |
*
|
230 |
-
* @param array $attachments
|
231 |
*/
|
232 |
public function set_attachments( $attachments ) {
|
233 |
|
@@ -249,8 +249,7 @@ class Mailer extends MailerAbstract {
|
|
249 |
if ( is_file( $attachment[0] ) && is_readable( $attachment[0] ) ) {
|
250 |
$file = file_get_contents( $attachment[0] );
|
251 |
}
|
252 |
-
}
|
253 |
-
catch ( \Exception $e ) {
|
254 |
$file = false;
|
255 |
}
|
256 |
|
@@ -267,7 +266,7 @@ class Mailer extends MailerAbstract {
|
|
267 |
if ( ! empty( $data ) ) {
|
268 |
|
269 |
// First, generate a boundary for the multipart message.
|
270 |
-
$boundary =
|
271 |
|
272 |
// Iterate through pre-built params and build a payload.
|
273 |
foreach ( $this->body as $key => $value ) {
|
227 |
*
|
228 |
* @since 1.0.0
|
229 |
*
|
230 |
+
* @param array $attachments The array of attachments data.
|
231 |
*/
|
232 |
public function set_attachments( $attachments ) {
|
233 |
|
249 |
if ( is_file( $attachment[0] ) && is_readable( $attachment[0] ) ) {
|
250 |
$file = file_get_contents( $attachment[0] );
|
251 |
}
|
252 |
+
} catch ( \Exception $e ) {
|
|
|
253 |
$file = false;
|
254 |
}
|
255 |
|
266 |
if ( ! empty( $data ) ) {
|
267 |
|
268 |
// First, generate a boundary for the multipart message.
|
269 |
+
$boundary = $this->phpmailer->generate_id();
|
270 |
|
271 |
// Iterate through pre-built params and build a payload.
|
272 |
foreach ( $this->body as $key => $value ) {
|
src/Providers/Outlook/Options.php
CHANGED
@@ -1,44 +1,44 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace WPMailSMTP\Providers\Outlook;
|
4 |
-
|
5 |
-
use WPMailSMTP\Providers\OptionsAbstract;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class Options.
|
9 |
-
*
|
10 |
-
* @since 1.7.0
|
11 |
-
*/
|
12 |
-
class Options extends OptionsAbstract {
|
13 |
-
|
14 |
-
/**
|
15 |
-
* Outlook Options constructor.
|
16 |
-
*
|
17 |
-
* @since 1.7.0
|
18 |
-
*/
|
19 |
-
public function __construct() {
|
20 |
-
|
21 |
-
parent::__construct(
|
22 |
-
array(
|
23 |
-
'logo_url' => wp_mail_smtp()->assets_url . '/images/providers/microsoft.svg',
|
24 |
-
'slug' => 'outlook',
|
25 |
-
'title' => esc_html__( 'Outlook', 'wp-mail-smtp' ),
|
26 |
-
'disabled' => true,
|
27 |
-
)
|
28 |
-
);
|
29 |
-
}
|
30 |
-
|
31 |
-
/**
|
32 |
-
* @inheritdoc
|
33 |
-
*/
|
34 |
-
public function display_options() {
|
35 |
-
|
36 |
-
?>
|
37 |
-
|
38 |
-
<p>
|
39 |
-
<?php esc_html_e( 'We\'re sorry, the Microsoft Outlook mailer is not available on your plan. Please upgrade to the PRO plan to unlock all these awesome features.', 'wp-mail-smtp' ); ?>
|
40 |
-
</p>
|
41 |
-
|
42 |
-
<?php
|
43 |
-
}
|
44 |
-
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace WPMailSMTP\Providers\Outlook;
|
4 |
+
|
5 |
+
use WPMailSMTP\Providers\OptionsAbstract;
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Class Options.
|
9 |
+
*
|
10 |
+
* @since 1.7.0
|
11 |
+
*/
|
12 |
+
class Options extends OptionsAbstract {
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Outlook Options constructor.
|
16 |
+
*
|
17 |
+
* @since 1.7.0
|
18 |
+
*/
|
19 |
+
public function __construct() {
|
20 |
+
|
21 |
+
parent::__construct(
|
22 |
+
array(
|
23 |
+
'logo_url' => wp_mail_smtp()->assets_url . '/images/providers/microsoft.svg',
|
24 |
+
'slug' => 'outlook',
|
25 |
+
'title' => esc_html__( 'Outlook', 'wp-mail-smtp' ),
|
26 |
+
'disabled' => true,
|
27 |
+
)
|
28 |
+
);
|
29 |
+
}
|
30 |
+
|
31 |
+
/**
|
32 |
+
* @inheritdoc
|
33 |
+
*/
|
34 |
+
public function display_options() {
|
35 |
+
|
36 |
+
?>
|
37 |
+
|
38 |
+
<p>
|
39 |
+
<?php esc_html_e( 'We\'re sorry, the Microsoft Outlook mailer is not available on your plan. Please upgrade to the PRO plan to unlock all these awesome features.', 'wp-mail-smtp' ); ?>
|
40 |
+
</p>
|
41 |
+
|
42 |
+
<?php
|
43 |
+
}
|
44 |
+
}
|
src/Providers/Pepipost/Mailer.php
CHANGED
@@ -1,32 +1,32 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace WPMailSMTP\Providers\Pepipost;
|
4 |
-
|
5 |
-
use WPMailSMTP\Providers\MailerAbstract;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class Mailer inherits everything from parent abstract class.
|
9 |
-
* This file is required for a proper work of Loader and \ReflectionClass.
|
10 |
-
*
|
11 |
-
* @package WPMailSMTP\Providers\Pepipost
|
12 |
-
*/
|
13 |
-
class Mailer extends MailerAbstract {
|
14 |
-
|
15 |
-
/**
|
16 |
-
* @inheritdoc
|
17 |
-
*/
|
18 |
-
public function is_mailer_complete() {
|
19 |
-
|
20 |
-
$options = $this->options->get_group( $this->mailer );
|
21 |
-
|
22 |
-
// Host and Port are the only really required options.
|
23 |
-
if (
|
24 |
-
! empty( $options['host'] ) &&
|
25 |
-
! empty( $options['port'] )
|
26 |
-
) {
|
27 |
-
return true;
|
28 |
-
}
|
29 |
-
|
30 |
-
return false;
|
31 |
-
}
|
32 |
-
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace WPMailSMTP\Providers\Pepipost;
|
4 |
+
|
5 |
+
use WPMailSMTP\Providers\MailerAbstract;
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Class Mailer inherits everything from parent abstract class.
|
9 |
+
* This file is required for a proper work of Loader and \ReflectionClass.
|
10 |
+
*
|
11 |
+
* @package WPMailSMTP\Providers\Pepipost
|
12 |
+
*/
|
13 |
+
class Mailer extends MailerAbstract {
|
14 |
+
|
15 |
+
/**
|
16 |
+
* @inheritdoc
|
17 |
+
*/
|
18 |
+
public function is_mailer_complete() {
|
19 |
+
|
20 |
+
$options = $this->options->get_group( $this->mailer );
|
21 |
+
|
22 |
+
// Host and Port are the only really required options.
|
23 |
+
if (
|
24 |
+
! empty( $options['host'] ) &&
|
25 |
+
! empty( $options['port'] )
|
26 |
+
) {
|
27 |
+
return true;
|
28 |
+
}
|
29 |
+
|
30 |
+
return false;
|
31 |
+
}
|
32 |
+
}
|
src/Providers/SMTP/Mailer.php
CHANGED
@@ -1,32 +1,32 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace WPMailSMTP\Providers\SMTP;
|
4 |
-
|
5 |
-
use WPMailSMTP\Providers\MailerAbstract;
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class Mailer inherits everything from parent abstract class.
|
9 |
-
* This file is required for a proper work of Loader and \ReflectionClass.
|
10 |
-
*
|
11 |
-
* @package WPMailSMTP\Providers\SMTP
|
12 |
-
*/
|
13 |
-
class Mailer extends MailerAbstract {
|
14 |
-
|
15 |
-
/**
|
16 |
-
* @inheritdoc
|
17 |
-
*/
|
18 |
-
public function is_mailer_complete() {
|
19 |
-
|
20 |
-
$options = $this->options->get_group( $this->mailer );
|
21 |
-
|
22 |
-
// Host and Port are the only really required options.
|
23 |
-
if (
|
24 |
-
! empty( $options['host'] ) &&
|
25 |
-
! empty( $options['port'] )
|
26 |
-
) {
|
27 |
-
return true;
|
28 |
-
}
|
29 |
-
|
30 |
-
return false;
|
31 |
-
}
|
32 |
-
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace WPMailSMTP\Providers\SMTP;
|
4 |
+
|
5 |
+
use WPMailSMTP\Providers\MailerAbstract;
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Class Mailer inherits everything from parent abstract class.
|
9 |
+
* This file is required for a proper work of Loader and \ReflectionClass.
|
10 |
+
*
|
11 |
+
* @package WPMailSMTP\Providers\SMTP
|
12 |
+
*/
|
13 |
+
class Mailer extends MailerAbstract {
|
14 |
+
|
15 |
+
/**
|
16 |
+
* @inheritdoc
|
17 |
+
*/
|
18 |
+
public function is_mailer_complete() {
|
19 |
+
|
20 |
+
$options = $this->options->get_group( $this->mailer );
|
21 |
+
|
22 |
+
// Host and Port are the only really required options.
|
23 |
+
if (
|
24 |
+
! empty( $options['host'] ) &&
|
25 |
+
! empty( $options['port'] )
|
26 |
+
) {
|
27 |
+
return true;
|
28 |
+
}
|
29 |
+
|
30 |
+
return false;
|
31 |
+
}
|
32 |
+
}
|
src/Providers/Sendinblue/Api.php
CHANGED
@@ -1,93 +1,98 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace WPMailSMTP\Providers\Sendinblue;
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
*
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace WPMailSMTP\Providers\Sendinblue;
|
4 |
+
|
5 |
+
use WPMailSMTP\Vendor\SendinBlue\Client\Api\AccountApi;
|
6 |
+
use WPMailSMTP\Vendor\SendinBlue\Client\Api\SendersApi;
|
7 |
+
use WPMailSMTP\Vendor\SendinBlue\Client\Api\SMTPApi;
|
8 |
+
use WPMailSMTP\Vendor\SendinBlue\Client\Configuration;
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Class Api is a wrapper for Sendinblue library with handy methods.
|
12 |
+
*
|
13 |
+
* @since 1.6.0
|
14 |
+
*/
|
15 |
+
class Api {
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Contains mailer options, constants + DB values.
|
19 |
+
*
|
20 |
+
* @since 1.6.0
|
21 |
+
*
|
22 |
+
* @var array
|
23 |
+
*/
|
24 |
+
private $options;
|
25 |
+
|
26 |
+
/**
|
27 |
+
* API constructor that inits defaults and retrieves options.
|
28 |
+
*
|
29 |
+
* @since 1.6.0
|
30 |
+
*/
|
31 |
+
public function __construct() {
|
32 |
+
|
33 |
+
$this->options = \WPMailSMTP\Options::init()->get_group( Options::SLUG );
|
34 |
+
}
|
35 |
+
|
36 |
+
/**
|
37 |
+
* Configure API key authorization: api-key.
|
38 |
+
*
|
39 |
+
* @since 1.6.0
|
40 |
+
*
|
41 |
+
* @return Configuration
|
42 |
+
*/
|
43 |
+
protected function get_api_config() {
|
44 |
+
|
45 |
+
return Configuration::getDefaultConfiguration()->setApiKey( 'api-key', isset( $this->options['api_key'] ) ? $this->options['api_key'] : '' );
|
46 |
+
}
|
47 |
+
|
48 |
+
/**
|
49 |
+
* Get the mailer client instance for Account API.
|
50 |
+
*
|
51 |
+
* @since 1.6.0
|
52 |
+
*/
|
53 |
+
public function get_account_client() {
|
54 |
+
|
55 |
+
// Include the library.
|
56 |
+
require_once wp_mail_smtp()->plugin_path . '/vendor/autoload.php';
|
57 |
+
|
58 |
+
return new AccountApi( null, $this->get_api_config() );
|
59 |
+
}
|
60 |
+
|
61 |
+
/**
|
62 |
+
* Get the mailer client instance for Sender API.
|
63 |
+
*
|
64 |
+
* @since 1.6.0
|
65 |
+
*/
|
66 |
+
public function get_sender_client() {
|
67 |
+
|
68 |
+
// Include the library.
|
69 |
+
require_once wp_mail_smtp()->plugin_path . '/vendor/autoload.php';
|
70 |
+
|
71 |
+
return new SendersApi( null, $this->get_api_config() );
|
72 |
+
}
|
73 |
+
|
74 |
+
/**
|
75 |
+
* Get the mailer client instance for SMTP API.
|
76 |
+
*
|
77 |
+
* @since 1.6.0
|
78 |
+
*/
|
79 |
+
public function get_smtp_client() {
|
80 |
+
|
81 |
+
// Include the library.
|
82 |
+
require_once wp_mail_smtp()->plugin_path . '/vendor/autoload.php';
|
83 |
+
|
84 |
+
return new SMTPApi( null, $this->get_api_config() );
|
85 |
+
}
|
86 |
+
|
87 |
+
/**
|
88 |
+
* Whether the mailer is ready to be used in API calls.
|
89 |
+
*
|
90 |
+
* @since 1.6.0
|
91 |
+
*
|
92 |
+
* @return bool
|
93 |
+
*/
|
94 |
+
public function is_ready() {
|
95 |
+
|
96 |
+
return ! empty( $this->options['api_key'] );
|
97 |
+
}
|
98 |
+
}
|
src/Providers/Sendinblue/Mailer.php
CHANGED
@@ -5,6 +5,9 @@ namespace WPMailSMTP\Providers\Sendinblue;
|
|
5 |
use WPMailSMTP\Debug;
|
6 |
use WPMailSMTP\MailCatcherInterface;
|
7 |
use WPMailSMTP\Providers\MailerAbstract;
|
|
|
|
|
|
|
8 |
use WPMailSMTP\WP;
|
9 |
|
10 |
/**
|
@@ -286,11 +289,11 @@ class Mailer extends MailerAbstract {
|
|
286 |
*
|
287 |
* @since 1.6.0
|
288 |
*
|
289 |
-
* @return
|
290 |
*/
|
291 |
public function get_body() {
|
292 |
|
293 |
-
return new
|
294 |
}
|
295 |
|
296 |
/**
|
@@ -306,7 +309,7 @@ class Mailer extends MailerAbstract {
|
|
306 |
$response = $api->get_smtp_client()->sendTransacEmail( $this->get_body() );
|
307 |
|
308 |
$this->process_response( $response );
|
309 |
-
} catch (
|
310 |
$error = json_decode( $e->getResponseBody() );
|
311 |
|
312 |
if ( json_last_error() === JSON_ERROR_NONE && ! empty( $error ) ) {
|
@@ -330,7 +333,7 @@ class Mailer extends MailerAbstract {
|
|
330 |
*
|
331 |
* @since 1.6.0
|
332 |
*
|
333 |
-
* @param
|
334 |
*/
|
335 |
protected function process_response( $response ) {
|
336 |
|
@@ -348,7 +351,7 @@ class Mailer extends MailerAbstract {
|
|
348 |
|
349 |
$is_sent = false;
|
350 |
|
351 |
-
if ( $this->response instanceof
|
352 |
$is_sent = $this->response->valid();
|
353 |
}
|
354 |
|
5 |
use WPMailSMTP\Debug;
|
6 |
use WPMailSMTP\MailCatcherInterface;
|
7 |
use WPMailSMTP\Providers\MailerAbstract;
|
8 |
+
use WPMailSMTP\Vendor\SendinBlue\Client\ApiException;
|
9 |
+
use WPMailSMTP\Vendor\SendinBlue\Client\Model\CreateSmtpEmail;
|
10 |
+
use WPMailSMTP\Vendor\SendinBlue\Client\Model\SendSmtpEmail;
|
11 |
use WPMailSMTP\WP;
|
12 |
|
13 |
/**
|
289 |
*
|
290 |
* @since 1.6.0
|
291 |
*
|
292 |
+
* @return SendSmtpEmail
|
293 |
*/
|
294 |
public function get_body() {
|
295 |
|
296 |
+
return new SendSmtpEmail( $this->body );
|
297 |
}
|
298 |
|
299 |
/**
|
309 |
$response = $api->get_smtp_client()->sendTransacEmail( $this->get_body() );
|
310 |
|
311 |
$this->process_response( $response );
|
312 |
+
} catch ( ApiException $e ) {
|
313 |
$error = json_decode( $e->getResponseBody() );
|
314 |
|
315 |
if ( json_last_error() === JSON_ERROR_NONE && ! empty( $error ) ) {
|
333 |
*
|
334 |
* @since 1.6.0
|
335 |
*
|
336 |
+
* @param CreateSmtpEmail $response The Sendinblue Email object.
|
337 |
*/
|
338 |
protected function process_response( $response ) {
|
339 |
|
351 |
|
352 |
$is_sent = false;
|
353 |
|
354 |
+
if ( $this->response instanceof CreateSmtpEmail ) {
|
355 |
$is_sent = $this->response->valid();
|
356 |
}
|
357 |
|
src/Providers/Sendinblue/Options.php
CHANGED
@@ -27,30 +27,41 @@ class Options extends OptionsAbstract {
|
|
27 |
*/
|
28 |
public function __construct() {
|
29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
parent::__construct(
|
31 |
[
|
32 |
'logo_url' => wp_mail_smtp()->assets_url . '/images/providers/sendinblue.svg',
|
33 |
'slug' => self::SLUG,
|
34 |
'title' => esc_html__( 'Sendinblue', 'wp-mail-smtp' ),
|
35 |
'php' => '5.6',
|
36 |
-
'description' =>
|
37 |
-
wp_kses( /* translators: %1$s - URL to sendinblue.com site. */
|
38 |
-
__( '<a href="%1$s" target="_blank" rel="noopener noreferrer">Sendinblue</a> serves 80,000+ growing companies around the world and sends over 30 million emails each day. They provide users 300 free emails per day.', 'wp-mail-smtp' ) .
|
39 |
-
'<br><br>' .
|
40 |
-
/* translators: %2$s - URL to wpmailsmtp.com doc. */
|
41 |
-
__( 'Read our <a href="%2$s" target="_blank" rel="noopener noreferrer">Sendinblue documentation</a> to learn how to configure Sendinblue and improve your email deliverability.', 'wp-mail-smtp' ),
|
42 |
-
[
|
43 |
-
'br' => true,
|
44 |
-
'a' => [
|
45 |
-
'href' => true,
|
46 |
-
'rel' => true,
|
47 |
-
'target' => true,
|
48 |
-
],
|
49 |
-
]
|
50 |
-
),
|
51 |
-
'https://wpmailsmtp.com/go/sendinblue/',
|
52 |
-
'https://wpmailsmtp.com/docs/how-to-set-up-the-sendinblue-mailer-in-wp-mail-smtp'
|
53 |
-
),
|
54 |
'supports' => [
|
55 |
'from_email' => true,
|
56 |
'from_name' => true,
|
@@ -58,6 +69,7 @@ class Options extends OptionsAbstract {
|
|
58 |
'from_email_force' => true,
|
59 |
'from_name_force' => true,
|
60 |
],
|
|
|
61 |
]
|
62 |
);
|
63 |
}
|
27 |
*/
|
28 |
public function __construct() {
|
29 |
|
30 |
+
$description = sprintf(
|
31 |
+
wp_kses( /* translators: %1$s - URL to sendinblue.com site. */
|
32 |
+
__( '<strong><a href="%1$s" target="_blank" rel="noopener noreferrer">Sendinblue</a> is our recommended transactional email service.</strong> Founded in 2012, they serve 80,000+ growing companies around the world and send over 30 million emails each day. They understand that transactional emails are the heart of your customer relationships. Their email deliverability experts are constantly at work optimizing the reliability and speed of their SMTP infrastructure. Sendinblue provides users 300 free emails per day.', 'wp-mail-smtp' ) .
|
33 |
+
'<br><br>' .
|
34 |
+
/* translators: %2$s - URL to wpmailsmtp.com doc. */
|
35 |
+
__( 'Read our <a href="%2$s" target="_blank" rel="noopener noreferrer">Sendinblue documentation</a> to learn how to configure Sendinblue and improve your email deliverability.', 'wp-mail-smtp' ),
|
36 |
+
[
|
37 |
+
'strong' => true,
|
38 |
+
'br' => true,
|
39 |
+
'a' => [
|
40 |
+
'href' => true,
|
41 |
+
'rel' => true,
|
42 |
+
'target' => true,
|
43 |
+
],
|
44 |
+
]
|
45 |
+
),
|
46 |
+
'https://wpmailsmtp.com/go/sendinblue/',
|
47 |
+
'https://wpmailsmtp.com/docs/how-to-set-up-the-sendinblue-mailer-in-wp-mail-smtp'
|
48 |
+
);
|
49 |
+
|
50 |
+
$api_key = PluginOptions::init()->get( self::SLUG, 'api_key' );
|
51 |
+
|
52 |
+
if ( empty( $api_key ) ) {
|
53 |
+
$description .= '</p><p class="buttonned"><a href="https://wpmailsmtp.com/go/sendinblue/" target="_blank" rel="noopener noreferrer" class="wp-mail-smtp-btn wp-mail-smtp-btn-md wp-mail-smtp-btn-blueish">' .
|
54 |
+
esc_html__( 'Get Sendinblue Now (Free)', 'wp-mail-smtp' ) .
|
55 |
+
'</a></p>';
|
56 |
+
}
|
57 |
+
|
58 |
parent::__construct(
|
59 |
[
|
60 |
'logo_url' => wp_mail_smtp()->assets_url . '/images/providers/sendinblue.svg',
|
61 |
'slug' => self::SLUG,
|
62 |
'title' => esc_html__( 'Sendinblue', 'wp-mail-smtp' ),
|
63 |
'php' => '5.6',
|
64 |
+
'description' => $description,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
'supports' => [
|
66 |
'from_email' => true,
|
67 |
'from_name' => true,
|
69 |
'from_email_force' => true,
|
70 |
'from_name_force' => true,
|
71 |
],
|
72 |
+
'recommended' => true,
|
73 |
]
|
74 |
);
|
75 |
}
|
src/Tasks/Task.php
CHANGED
@@ -186,7 +186,7 @@ class Task {
|
|
186 |
$action_id = null;
|
187 |
|
188 |
// No processing if ActionScheduler is not usable.
|
189 |
-
if ( !
|
190 |
return $action_id;
|
191 |
}
|
192 |
|
186 |
$action_id = null;
|
187 |
|
188 |
// No processing if ActionScheduler is not usable.
|
189 |
+
if ( ! Tasks::is_usable() ) {
|
190 |
return $action_id;
|
191 |
}
|
192 |
|
src/Tasks/Tasks.php
CHANGED
@@ -27,7 +27,7 @@ class Tasks {
|
|
27 |
add_action( 'admin_menu', array( $this, 'admin_hide_as_menu' ), PHP_INT_MAX );
|
28 |
|
29 |
// Skip tasks registration if Action Scheduler is not usable yet.
|
30 |
-
if ( !
|
31 |
return;
|
32 |
}
|
33 |
|
@@ -126,7 +126,7 @@ class Tasks {
|
|
126 |
*
|
127 |
* @return bool
|
128 |
*/
|
129 |
-
public function is_usable() {
|
130 |
|
131 |
// No tasks if ActionScheduler wasn't loaded.
|
132 |
if ( ! class_exists( 'ActionScheduler_DataController' ) ) {
|
@@ -145,7 +145,7 @@ class Tasks {
|
|
145 |
*
|
146 |
* @return bool
|
147 |
*/
|
148 |
-
public function is_scheduled( $hook ) {
|
149 |
|
150 |
if ( ! function_exists( 'as_next_scheduled_action' ) ) {
|
151 |
return false;
|
27 |
add_action( 'admin_menu', array( $this, 'admin_hide_as_menu' ), PHP_INT_MAX );
|
28 |
|
29 |
// Skip tasks registration if Action Scheduler is not usable yet.
|
30 |
+
if ( ! self::is_usable() ) {
|
31 |
return;
|
32 |
}
|
33 |
|
126 |
*
|
127 |
* @return bool
|
128 |
*/
|
129 |
+
public static function is_usable() {
|
130 |
|
131 |
// No tasks if ActionScheduler wasn't loaded.
|
132 |
if ( ! class_exists( 'ActionScheduler_DataController' ) ) {
|
145 |
*
|
146 |
* @return bool
|
147 |
*/
|
148 |
+
public static function is_scheduled( $hook ) {
|
149 |
|
150 |
if ( ! function_exists( 'as_next_scheduled_action' ) ) {
|
151 |
return false;
|
src/Upgrade.php
CHANGED
@@ -1,71 +1,71 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace WPMailSMTP;
|
4 |
-
|
5 |
-
/**
|
6 |
-
* Class Upgrade helps upgrade plugin options and similar tasks when the
|
7 |
-
* occasion arises.
|
8 |
-
*
|
9 |
-
* @since 1.1.0
|
10 |
-
*/
|
11 |
-
class Upgrade {
|
12 |
-
|
13 |
-
/**
|
14 |
-
* Upgrade constructor.
|
15 |
-
*
|
16 |
-
* @since 1.1.0
|
17 |
-
*/
|
18 |
-
public function __construct() {
|
19 |
-
|
20 |
-
$upgrades = $this->upgrades();
|
21 |
-
|
22 |
-
if ( empty( $upgrades ) ) {
|
23 |
-
return;
|
24 |
-
}
|
25 |
-
|
26 |
-
// Run any available upgrades.
|
27 |
-
foreach ( $upgrades as $upgrade ) {
|
28 |
-
$this->{$upgrade}();
|
29 |
-
}
|
30 |
-
|
31 |
-
// Update version post upgrade(s).
|
32 |
-
update_option( 'wp_mail_smtp_version', WPMS_PLUGIN_VER );
|
33 |
-
}
|
34 |
-
|
35 |
-
/**
|
36 |
-
* Whether we need to perform an upgrade.
|
37 |
-
*
|
38 |
-
* @since 1.1.0
|
39 |
-
*
|
40 |
-
* @return array
|
41 |
-
*/
|
42 |
-
protected function upgrades() {
|
43 |
-
|
44 |
-
$version = get_option( 'wp_mail_smtp_version' );
|
45 |
-
$upgrades = array();
|
46 |
-
|
47 |
-
// Version 1.1.0 upgrade; prior to this the option was not available.
|
48 |
-
if ( empty( $version ) ) {
|
49 |
-
$upgrades[] = 'v110_upgrade';
|
50 |
-
}
|
51 |
-
|
52 |
-
return $upgrades;
|
53 |
-
}
|
54 |
-
|
55 |
-
/**
|
56 |
-
* Upgrade routine for v1.1.0.
|
57 |
-
*
|
58 |
-
* Set SMTPAutoTLS to true.
|
59 |
-
*
|
60 |
-
* @since 1.1.0
|
61 |
-
*/
|
62 |
-
public function v110_upgrade() {
|
63 |
-
|
64 |
-
$values = Options::init()->get_all();
|
65 |
-
|
66 |
-
// Enable SMTPAutoTLS option.
|
67 |
-
$values['smtp']['autotls'] = true;
|
68 |
-
|
69 |
-
Options::init()->set( $values );
|
70 |
-
}
|
71 |
-
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace WPMailSMTP;
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Class Upgrade helps upgrade plugin options and similar tasks when the
|
7 |
+
* occasion arises.
|
8 |
+
*
|
9 |
+
* @since 1.1.0
|
10 |
+
*/
|
11 |
+
class Upgrade {
|
12 |
+
|
13 |
+
/**
|
14 |
+
* Upgrade constructor.
|
15 |
+
*
|
16 |
+
* @since 1.1.0
|
17 |
+
*/
|
18 |
+
public function __construct() {
|
19 |
+
|
20 |
+
$upgrades = $this->upgrades();
|
21 |
+
|
22 |
+
if ( empty( $upgrades ) ) {
|
23 |
+
return;
|
24 |
+
}
|
25 |
+
|
26 |
+
// Run any available upgrades.
|
27 |
+
foreach ( $upgrades as $upgrade ) {
|
28 |
+
$this->{$upgrade}();
|
29 |
+
}
|
30 |
+
|
31 |
+
// Update version post upgrade(s).
|
32 |
+
update_option( 'wp_mail_smtp_version', WPMS_PLUGIN_VER );
|
33 |
+
}
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Whether we need to perform an upgrade.
|
37 |
+
*
|
38 |
+
* @since 1.1.0
|
39 |
+
*
|
40 |
+
* @return array
|
41 |
+
*/
|
42 |
+
protected function upgrades() {
|
43 |
+
|
44 |
+
$version = get_option( 'wp_mail_smtp_version' );
|
45 |
+
$upgrades = array();
|
46 |
+
|
47 |
+
// Version 1.1.0 upgrade; prior to this the option was not available.
|
48 |
+
if ( empty( $version ) ) {
|
49 |
+
$upgrades[] = 'v110_upgrade';
|
50 |
+
}
|
51 |
+
|
52 |
+
return $upgrades;
|
53 |
+
}
|
54 |
+
|
55 |
+
/**
|
56 |
+
* Upgrade routine for v1.1.0.
|
57 |
+
*
|
58 |
+
* Set SMTPAutoTLS to true.
|
59 |
+
*
|
60 |
+
* @since 1.1.0
|
61 |
+
*/
|
62 |
+
public function v110_upgrade() {
|
63 |
+
|
64 |
+
$values = Options::init()->get_all();
|
65 |
+
|
66 |
+
// Enable SMTPAutoTLS option.
|
67 |
+
$values['smtp']['autotls'] = true;
|
68 |
+
|
69 |
+
Options::init()->set( $values );
|
70 |
+
}
|
71 |
+
}
|
src/UsageTracking/SendUsageTask.php
CHANGED
@@ -25,7 +25,7 @@ class SendUsageTask extends Task {
|
|
25 |
*
|
26 |
* @var string
|
27 |
*/
|
28 |
-
const TRACK_URL = 'https://
|
29 |
|
30 |
/**
|
31 |
* Class constructor.
|
25 |
*
|
26 |
* @var string
|
27 |
*/
|
28 |
+
const TRACK_URL = 'https://wpmailsmtpusage.com/v1/smtptrack';
|
29 |
|
30 |
/**
|
31 |
* Class constructor.
|
uninstall.php
CHANGED
@@ -51,7 +51,11 @@ $am_announcement_params = [
|
|
51 |
* Disable Action Schedule Queue Runner, to prevent a fatal error on the shutdown WP hook.
|
52 |
*/
|
53 |
if ( class_exists( 'ActionScheduler_QueueRunner' ) ) {
|
54 |
-
ActionScheduler_QueueRunner::instance()
|
|
|
|
|
|
|
|
|
55 |
}
|
56 |
|
57 |
// WP MS uninstall process.
|
51 |
* Disable Action Schedule Queue Runner, to prevent a fatal error on the shutdown WP hook.
|
52 |
*/
|
53 |
if ( class_exists( 'ActionScheduler_QueueRunner' ) ) {
|
54 |
+
$as_queue_runner = \ActionScheduler_QueueRunner::instance();
|
55 |
+
|
56 |
+
if ( method_exists( $as_queue_runner, 'unhook_dispatch_async_request' ) ) {
|
57 |
+
$as_queue_runner->unhook_dispatch_async_request();
|
58 |
+
}
|
59 |
}
|
60 |
|
61 |
// WP MS uninstall process.
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit4505233c9771255f4bcd3288908993ad::getLoader();
|
vendor/composer/ClassLoader.php
CHANGED
@@ -60,7 +60,7 @@ class ClassLoader
|
|
60 |
public function getPrefixes()
|
61 |
{
|
62 |
if (!empty($this->prefixesPsr0)) {
|
63 |
-
return call_user_func_array('array_merge', $this->prefixesPsr0);
|
64 |
}
|
65 |
|
66 |
return array();
|
60 |
public function getPrefixes()
|
61 |
{
|
62 |
if (!empty($this->prefixesPsr0)) {
|
63 |
+
return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
|
64 |
}
|
65 |
|
66 |
return array();
|
vendor/composer/autoload_classmap.php
CHANGED
@@ -6,6 +6,524 @@ $vendorDir = dirname(dirname(__FILE__));
|
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
9 |
-
'
|
10 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
);
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
9 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\AccessToken' => $baseDir . '/vendor_prefixed/google/auth/src/AccessToken.php',
|
10 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\ApplicationDefaultCredentials' => $baseDir . '/vendor_prefixed/google/auth/src/ApplicationDefaultCredentials.php',
|
11 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\CacheTrait' => $baseDir . '/vendor_prefixed/google/auth/src/CacheTrait.php',
|
12 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Cache\\InvalidArgumentException' => $baseDir . '/vendor_prefixed/google/auth/src/Cache/InvalidArgumentException.php',
|
13 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Cache\\Item' => $baseDir . '/vendor_prefixed/google/auth/src/Cache/Item.php',
|
14 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Cache\\MemoryCacheItemPool' => $baseDir . '/vendor_prefixed/google/auth/src/Cache/MemoryCacheItemPool.php',
|
15 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Cache\\SysVCacheItemPool' => $baseDir . '/vendor_prefixed/google/auth/src/Cache/SysVCacheItemPool.php',
|
16 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\CredentialsLoader' => $baseDir . '/vendor_prefixed/google/auth/src/CredentialsLoader.php',
|
17 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\AppIdentityCredentials' => $baseDir . '/vendor_prefixed/google/auth/src/Credentials/AppIdentityCredentials.php',
|
18 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\GCECredentials' => $baseDir . '/vendor_prefixed/google/auth/src/Credentials/GCECredentials.php',
|
19 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\IAMCredentials' => $baseDir . '/vendor_prefixed/google/auth/src/Credentials/IAMCredentials.php',
|
20 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\InsecureCredentials' => $baseDir . '/vendor_prefixed/google/auth/src/Credentials/InsecureCredentials.php',
|
21 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\ServiceAccountCredentials' => $baseDir . '/vendor_prefixed/google/auth/src/Credentials/ServiceAccountCredentials.php',
|
22 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\ServiceAccountJwtAccessCredentials' => $baseDir . '/vendor_prefixed/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php',
|
23 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\UserRefreshCredentials' => $baseDir . '/vendor_prefixed/google/auth/src/Credentials/UserRefreshCredentials.php',
|
24 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\FetchAuthTokenCache' => $baseDir . '/vendor_prefixed/google/auth/src/FetchAuthTokenCache.php',
|
25 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\FetchAuthTokenInterface' => $baseDir . '/vendor_prefixed/google/auth/src/FetchAuthTokenInterface.php',
|
26 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\GCECache' => $baseDir . '/vendor_prefixed/google/auth/src/GCECache.php',
|
27 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\GetQuotaProjectInterface' => $baseDir . '/vendor_prefixed/google/auth/src/GetQuotaProjectInterface.php',
|
28 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\HttpHandler\\Guzzle5HttpHandler' => $baseDir . '/vendor_prefixed/google/auth/src/HttpHandler/Guzzle5HttpHandler.php',
|
29 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\HttpHandler\\Guzzle6HttpHandler' => $baseDir . '/vendor_prefixed/google/auth/src/HttpHandler/Guzzle6HttpHandler.php',
|
30 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\HttpHandler\\Guzzle7HttpHandler' => $baseDir . '/vendor_prefixed/google/auth/src/HttpHandler/Guzzle7HttpHandler.php',
|
31 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\HttpHandler\\HttpClientCache' => $baseDir . '/vendor_prefixed/google/auth/src/HttpHandler/HttpClientCache.php',
|
32 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\HttpHandler\\HttpHandlerFactory' => $baseDir . '/vendor_prefixed/google/auth/src/HttpHandler/HttpHandlerFactory.php',
|
33 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Iam' => $baseDir . '/vendor_prefixed/google/auth/src/Iam.php',
|
34 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Middleware\\AuthTokenMiddleware' => $baseDir . '/vendor_prefixed/google/auth/src/Middleware/AuthTokenMiddleware.php',
|
35 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Middleware\\ScopedAccessTokenMiddleware' => $baseDir . '/vendor_prefixed/google/auth/src/Middleware/ScopedAccessTokenMiddleware.php',
|
36 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Middleware\\SimpleMiddleware' => $baseDir . '/vendor_prefixed/google/auth/src/Middleware/SimpleMiddleware.php',
|
37 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\OAuth2' => $baseDir . '/vendor_prefixed/google/auth/src/OAuth2.php',
|
38 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\ProjectIdProviderInterface' => $baseDir . '/vendor_prefixed/google/auth/src/ProjectIdProviderInterface.php',
|
39 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\ServiceAccountSignerTrait' => $baseDir . '/vendor_prefixed/google/auth/src/ServiceAccountSignerTrait.php',
|
40 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\SignBlobInterface' => $baseDir . '/vendor_prefixed/google/auth/src/SignBlobInterface.php',
|
41 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Subscriber\\AuthTokenSubscriber' => $baseDir . '/vendor_prefixed/google/auth/src/Subscriber/AuthTokenSubscriber.php',
|
42 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Subscriber\\ScopedAccessTokenSubscriber' => $baseDir . '/vendor_prefixed/google/auth/src/Subscriber/ScopedAccessTokenSubscriber.php',
|
43 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Subscriber\\SimpleSubscriber' => $baseDir . '/vendor_prefixed/google/auth/src/Subscriber/SimpleSubscriber.php',
|
44 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\UpdateMetadataInterface' => $baseDir . '/vendor_prefixed/google/auth/src/UpdateMetadataInterface.php',
|
45 |
+
'WPMailSMTP\\Vendor\\Google_AccessToken_Revoke' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/AccessToken/Revoke.php',
|
46 |
+
'WPMailSMTP\\Vendor\\Google_AccessToken_Verify' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/AccessToken/Verify.php',
|
47 |
+
'WPMailSMTP\\Vendor\\Google_AuthHandler_AuthHandlerFactory' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/AuthHandler/AuthHandlerFactory.php',
|
48 |
+
'WPMailSMTP\\Vendor\\Google_AuthHandler_Guzzle5AuthHandler' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle5AuthHandler.php',
|
49 |
+
'WPMailSMTP\\Vendor\\Google_AuthHandler_Guzzle6AuthHandler' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle6AuthHandler.php',
|
50 |
+
'WPMailSMTP\\Vendor\\Google_AuthHandler_Guzzle7AuthHandler' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle7AuthHandler.php',
|
51 |
+
'WPMailSMTP\\Vendor\\Google_Client' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Client.php',
|
52 |
+
'WPMailSMTP\\Vendor\\Google_Collection' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Collection.php',
|
53 |
+
'WPMailSMTP\\Vendor\\Google_Exception' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Exception.php',
|
54 |
+
'WPMailSMTP\\Vendor\\Google_Http_Batch' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Http/Batch.php',
|
55 |
+
'WPMailSMTP\\Vendor\\Google_Http_MediaFileUpload' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Http/MediaFileUpload.php',
|
56 |
+
'WPMailSMTP\\Vendor\\Google_Http_REST' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Http/REST.php',
|
57 |
+
'WPMailSMTP\\Vendor\\Google_Model' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Model.php',
|
58 |
+
'WPMailSMTP\\Vendor\\Google_Service' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Service.php',
|
59 |
+
'WPMailSMTP\\Vendor\\Google_Service_Exception' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Service/Exception.php',
|
60 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail.php',
|
61 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_AutoForwarding' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/AutoForwarding.php',
|
62 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_BatchDeleteMessagesRequest' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/BatchDeleteMessagesRequest.php',
|
63 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_BatchModifyMessagesRequest' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/BatchModifyMessagesRequest.php',
|
64 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Delegate' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Delegate.php',
|
65 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Draft' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Draft.php',
|
66 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Filter' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Filter.php',
|
67 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_FilterAction' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/FilterAction.php',
|
68 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_FilterCriteria' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/FilterCriteria.php',
|
69 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ForwardingAddress' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ForwardingAddress.php',
|
70 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_History' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/History.php',
|
71 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_HistoryLabelAdded' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelAdded.php',
|
72 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_HistoryLabelRemoved' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelRemoved.php',
|
73 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_HistoryMessageAdded' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageAdded.php',
|
74 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_HistoryMessageDeleted' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageDeleted.php',
|
75 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ImapSettings' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ImapSettings.php',
|
76 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Label' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Label.php',
|
77 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_LabelColor' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/LabelColor.php',
|
78 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_LanguageSettings' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/LanguageSettings.php',
|
79 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListDelegatesResponse' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListDelegatesResponse.php',
|
80 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListDraftsResponse' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListDraftsResponse.php',
|
81 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListFiltersResponse' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListFiltersResponse.php',
|
82 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListForwardingAddressesResponse' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListForwardingAddressesResponse.php',
|
83 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListHistoryResponse' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListHistoryResponse.php',
|
84 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListLabelsResponse' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListLabelsResponse.php',
|
85 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListMessagesResponse' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListMessagesResponse.php',
|
86 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListSendAsResponse' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListSendAsResponse.php',
|
87 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListSmimeInfoResponse' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListSmimeInfoResponse.php',
|
88 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListThreadsResponse' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListThreadsResponse.php',
|
89 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Message' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Message.php',
|
90 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_MessagePart' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePart.php',
|
91 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_MessagePartBody' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePartBody.php',
|
92 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_MessagePartHeader' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePartHeader.php',
|
93 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ModifyMessageRequest' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ModifyMessageRequest.php',
|
94 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ModifyThreadRequest' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ModifyThreadRequest.php',
|
95 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_PopSettings' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/PopSettings.php',
|
96 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Profile' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Profile.php',
|
97 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_Users' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php',
|
98 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersDrafts' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php',
|
99 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersHistory' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php',
|
100 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersLabels' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php',
|
101 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersMessages' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php',
|
102 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersMessagesAttachments' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessagesAttachments.php',
|
103 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersSettings' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php',
|
104 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersSettingsDelegates' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsDelegates.php',
|
105 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersSettingsFilters' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsFilters.php',
|
106 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersSettingsForwardingAddresses' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php',
|
107 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersSettingsSendAs' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php',
|
108 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersSettingsSendAsSmimeInfo' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAsSmimeInfo.php',
|
109 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersThreads' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php',
|
110 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_SendAs' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SendAs.php',
|
111 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_SmimeInfo' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SmimeInfo.php',
|
112 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_SmtpMsa' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SmtpMsa.php',
|
113 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Thread' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Thread.php',
|
114 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_VacationSettings' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/VacationSettings.php',
|
115 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_WatchRequest' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/WatchRequest.php',
|
116 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_WatchResponse' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/WatchResponse.php',
|
117 |
+
'WPMailSMTP\\Vendor\\Google_Service_Resource' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Service/Resource.php',
|
118 |
+
'WPMailSMTP\\Vendor\\Google_Task_Composer' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Task/Composer.php',
|
119 |
+
'WPMailSMTP\\Vendor\\Google_Task_Exception' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Task/Exception.php',
|
120 |
+
'WPMailSMTP\\Vendor\\Google_Task_Retryable' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Task/Retryable.php',
|
121 |
+
'WPMailSMTP\\Vendor\\Google_Task_Runner' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Task/Runner.php',
|
122 |
+
'WPMailSMTP\\Vendor\\Google_Utils_UriTemplate' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Utils/UriTemplate.php',
|
123 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Client' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Client.php',
|
124 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\ClientInterface' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/ClientInterface.php',
|
125 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Cookie\\CookieJar' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/CookieJar.php',
|
126 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Cookie\\CookieJarInterface' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php',
|
127 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Cookie\\FileCookieJar' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php',
|
128 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Cookie\\SessionCookieJar' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php',
|
129 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Cookie\\SetCookie' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/SetCookie.php',
|
130 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\BadResponseException' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/BadResponseException.php',
|
131 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\ClientException' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/ClientException.php',
|
132 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\ConnectException' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/ConnectException.php',
|
133 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\GuzzleException' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/GuzzleException.php',
|
134 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\InvalidArgumentException' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php',
|
135 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\RequestException' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/RequestException.php',
|
136 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\SeekException' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/SeekException.php',
|
137 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\ServerException' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/ServerException.php',
|
138 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\TooManyRedirectsException' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php',
|
139 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\TransferException' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/TransferException.php',
|
140 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\HandlerStack' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/HandlerStack.php',
|
141 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\CurlFactory' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/CurlFactory.php',
|
142 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\CurlFactoryInterface' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php',
|
143 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\CurlHandler' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/CurlHandler.php',
|
144 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\CurlMultiHandler' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php',
|
145 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\EasyHandle' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/EasyHandle.php',
|
146 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\MockHandler' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/MockHandler.php',
|
147 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\Proxy' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/Proxy.php',
|
148 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\StreamHandler' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/StreamHandler.php',
|
149 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\MessageFormatter' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/MessageFormatter.php',
|
150 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Middleware' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Middleware.php',
|
151 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Pool' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Pool.php',
|
152 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\PrepareBodyMiddleware' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php',
|
153 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\AggregateException' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/AggregateException.php',
|
154 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\CancellationException' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/CancellationException.php',
|
155 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\Coroutine' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/Coroutine.php',
|
156 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\EachPromise' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/EachPromise.php',
|
157 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\FulfilledPromise' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/FulfilledPromise.php',
|
158 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\Promise' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/Promise.php',
|
159 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\PromiseInterface' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/PromiseInterface.php',
|
160 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\PromisorInterface' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/PromisorInterface.php',
|
161 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\RejectedPromise' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/RejectedPromise.php',
|
162 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\RejectionException' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/RejectionException.php',
|
163 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\TaskQueue' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/TaskQueue.php',
|
164 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\TaskQueueInterface' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/TaskQueueInterface.php',
|
165 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\AppendStream' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/AppendStream.php',
|
166 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\BufferStream' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/BufferStream.php',
|
167 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\CachingStream' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/CachingStream.php',
|
168 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\DroppingStream' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/DroppingStream.php',
|
169 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\FnStream' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/FnStream.php',
|
170 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\InflateStream' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/InflateStream.php',
|
171 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\LazyOpenStream' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/LazyOpenStream.php',
|
172 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\LimitStream' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/LimitStream.php',
|
173 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\MessageTrait' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/MessageTrait.php',
|
174 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\MultipartStream' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/MultipartStream.php',
|
175 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\NoSeekStream' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/NoSeekStream.php',
|
176 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\PumpStream' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/PumpStream.php',
|
177 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\Request' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/Request.php',
|
178 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\Response' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/Response.php',
|
179 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\Rfc7230' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/Rfc7230.php',
|
180 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\ServerRequest' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/ServerRequest.php',
|
181 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\Stream' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/Stream.php',
|
182 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\StreamDecoratorTrait' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/StreamDecoratorTrait.php',
|
183 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\StreamWrapper' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/StreamWrapper.php',
|
184 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\UploadedFile' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/UploadedFile.php',
|
185 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\Uri' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/Uri.php',
|
186 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\UriNormalizer' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/UriNormalizer.php',
|
187 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\UriResolver' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/UriResolver.php',
|
188 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\RedirectMiddleware' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/RedirectMiddleware.php',
|
189 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\RequestOptions' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/RequestOptions.php',
|
190 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\RetryMiddleware' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/RetryMiddleware.php',
|
191 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\TransferStats' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/TransferStats.php',
|
192 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\UriTemplate' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/UriTemplate.php',
|
193 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Utils' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Utils.php',
|
194 |
+
'WPMailSMTP\\Vendor\\Monolog\\ErrorHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/ErrorHandler.php',
|
195 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\ChromePHPFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php',
|
196 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\ElasticaFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php',
|
197 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\FlowdockFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php',
|
198 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\FluentdFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php',
|
199 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\FormatterInterface' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php',
|
200 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\GelfMessageFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php',
|
201 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\HtmlFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php',
|
202 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\JsonFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php',
|
203 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\LineFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LineFormatter.php',
|
204 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\LogglyFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php',
|
205 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\LogstashFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php',
|
206 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\MongoDBFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php',
|
207 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\NormalizerFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php',
|
208 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\ScalarFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php',
|
209 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\WildfireFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php',
|
210 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\AbstractHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AbstractHandler.php',
|
211 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\AbstractProcessingHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php',
|
212 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\AbstractSyslogHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php',
|
213 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\AmqpHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AmqpHandler.php',
|
214 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\BrowserConsoleHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php',
|
215 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\BufferHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/BufferHandler.php',
|
216 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\ChromePHPHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php',
|
217 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\CouchDBHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php',
|
218 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\CubeHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/CubeHandler.php',
|
219 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\Curl\\Util' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/Curl/Util.php',
|
220 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\DeduplicationHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php',
|
221 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\DoctrineCouchDBHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php',
|
222 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\DynamoDbHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php',
|
223 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\ElasticSearchHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php',
|
224 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\ErrorLogHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php',
|
225 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\FilterHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FilterHandler.php',
|
226 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\FingersCrossedHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php',
|
227 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\FingersCrossed\\ActivationStrategyInterface' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php',
|
228 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\FingersCrossed\\ChannelLevelActivationStrategy' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php',
|
229 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\FingersCrossed\\ErrorLevelActivationStrategy' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php',
|
230 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\FirePHPHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php',
|
231 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\FleepHookHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php',
|
232 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\FlowdockHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php',
|
233 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\FormattableHandlerInterface' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FormattableHandlerInterface.php',
|
234 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\FormattableHandlerTrait' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FormattableHandlerTrait.php',
|
235 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\GelfHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/GelfHandler.php',
|
236 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\GroupHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/GroupHandler.php',
|
237 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\HandlerInterface' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/HandlerInterface.php',
|
238 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\HandlerWrapper' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php',
|
239 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\HipChatHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/HipChatHandler.php',
|
240 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\IFTTTHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php',
|
241 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\InsightOpsHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php',
|
242 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\LogEntriesHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php',
|
243 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\LogglyHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/LogglyHandler.php',
|
244 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\MailHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MailHandler.php',
|
245 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\MandrillHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MandrillHandler.php',
|
246 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\MissingExtensionException' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php',
|
247 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\MongoDBHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php',
|
248 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\NativeMailerHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php',
|
249 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\NewRelicHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php',
|
250 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\NullHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NullHandler.php',
|
251 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\PHPConsoleHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php',
|
252 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\ProcessableHandlerInterface' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ProcessableHandlerInterface.php',
|
253 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\ProcessableHandlerTrait' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ProcessableHandlerTrait.php',
|
254 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\PsrHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/PsrHandler.php',
|
255 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\PushoverHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/PushoverHandler.php',
|
256 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\RavenHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RavenHandler.php',
|
257 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\RedisHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RedisHandler.php',
|
258 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\RollbarHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RollbarHandler.php',
|
259 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\RotatingFileHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php',
|
260 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\SamplingHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SamplingHandler.php',
|
261 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\SlackHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackHandler.php',
|
262 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\SlackWebhookHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php',
|
263 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\Slack\\SlackRecord' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php',
|
264 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\SlackbotHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php',
|
265 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\SocketHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SocketHandler.php',
|
266 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\StreamHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/StreamHandler.php',
|
267 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\SwiftMailerHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php',
|
268 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\SyslogHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SyslogHandler.php',
|
269 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\SyslogUdpHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php',
|
270 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\SyslogUdp\\UdpSocket' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php',
|
271 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\TestHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/TestHandler.php',
|
272 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\WhatFailureGroupHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php',
|
273 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\ZendMonitorHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php',
|
274 |
+
'WPMailSMTP\\Vendor\\Monolog\\Logger' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Logger.php',
|
275 |
+
'WPMailSMTP\\Vendor\\Monolog\\Processor\\GitProcessor' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/GitProcessor.php',
|
276 |
+
'WPMailSMTP\\Vendor\\Monolog\\Processor\\IntrospectionProcessor' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php',
|
277 |
+
'WPMailSMTP\\Vendor\\Monolog\\Processor\\MemoryPeakUsageProcessor' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php',
|
278 |
+
'WPMailSMTP\\Vendor\\Monolog\\Processor\\MemoryProcessor' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php',
|
279 |
+
'WPMailSMTP\\Vendor\\Monolog\\Processor\\MemoryUsageProcessor' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php',
|
280 |
+
'WPMailSMTP\\Vendor\\Monolog\\Processor\\MercurialProcessor' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php',
|
281 |
+
'WPMailSMTP\\Vendor\\Monolog\\Processor\\ProcessIdProcessor' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php',
|
282 |
+
'WPMailSMTP\\Vendor\\Monolog\\Processor\\ProcessorInterface' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/ProcessorInterface.php',
|
283 |
+
'WPMailSMTP\\Vendor\\Monolog\\Processor\\PsrLogMessageProcessor' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php',
|
284 |
+
'WPMailSMTP\\Vendor\\Monolog\\Processor\\TagProcessor' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/TagProcessor.php',
|
285 |
+
'WPMailSMTP\\Vendor\\Monolog\\Processor\\UidProcessor' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/UidProcessor.php',
|
286 |
+
'WPMailSMTP\\Vendor\\Monolog\\Processor\\WebProcessor' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/WebProcessor.php',
|
287 |
+
'WPMailSMTP\\Vendor\\Monolog\\Registry' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Registry.php',
|
288 |
+
'WPMailSMTP\\Vendor\\Monolog\\ResettableInterface' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/ResettableInterface.php',
|
289 |
+
'WPMailSMTP\\Vendor\\Monolog\\SignalHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/SignalHandler.php',
|
290 |
+
'WPMailSMTP\\Vendor\\Monolog\\Utils' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Utils.php',
|
291 |
+
'WPMailSMTP\\Vendor\\Psr\\Cache\\CacheException' => $baseDir . '/vendor_prefixed/psr/cache/src/CacheException.php',
|
292 |
+
'WPMailSMTP\\Vendor\\Psr\\Cache\\CacheItemInterface' => $baseDir . '/vendor_prefixed/psr/cache/src/CacheItemInterface.php',
|
293 |
+
'WPMailSMTP\\Vendor\\Psr\\Cache\\CacheItemPoolInterface' => $baseDir . '/vendor_prefixed/psr/cache/src/CacheItemPoolInterface.php',
|
294 |
+
'WPMailSMTP\\Vendor\\Psr\\Cache\\InvalidArgumentException' => $baseDir . '/vendor_prefixed/psr/cache/src/InvalidArgumentException.php',
|
295 |
+
'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\MessageInterface' => $baseDir . '/vendor_prefixed/psr/http-message/src/MessageInterface.php',
|
296 |
+
'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\RequestInterface' => $baseDir . '/vendor_prefixed/psr/http-message/src/RequestInterface.php',
|
297 |
+
'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\ResponseInterface' => $baseDir . '/vendor_prefixed/psr/http-message/src/ResponseInterface.php',
|
298 |
+
'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\ServerRequestInterface' => $baseDir . '/vendor_prefixed/psr/http-message/src/ServerRequestInterface.php',
|
299 |
+
'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\StreamInterface' => $baseDir . '/vendor_prefixed/psr/http-message/src/StreamInterface.php',
|
300 |
+
'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\UploadedFileInterface' => $baseDir . '/vendor_prefixed/psr/http-message/src/UploadedFileInterface.php',
|
301 |
+
'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\UriInterface' => $baseDir . '/vendor_prefixed/psr/http-message/src/UriInterface.php',
|
302 |
+
'WPMailSMTP\\Vendor\\Psr\\Log\\AbstractLogger' => $baseDir . '/vendor_prefixed/psr/log/Psr/Log/AbstractLogger.php',
|
303 |
+
'WPMailSMTP\\Vendor\\Psr\\Log\\InvalidArgumentException' => $baseDir . '/vendor_prefixed/psr/log/Psr/Log/InvalidArgumentException.php',
|
304 |
+
'WPMailSMTP\\Vendor\\Psr\\Log\\LogLevel' => $baseDir . '/vendor_prefixed/psr/log/Psr/Log/LogLevel.php',
|
305 |
+
'WPMailSMTP\\Vendor\\Psr\\Log\\LoggerAwareInterface' => $baseDir . '/vendor_prefixed/psr/log/Psr/Log/LoggerAwareInterface.php',
|
306 |
+
'WPMailSMTP\\Vendor\\Psr\\Log\\LoggerAwareTrait' => $baseDir . '/vendor_prefixed/psr/log/Psr/Log/LoggerAwareTrait.php',
|
307 |
+
'WPMailSMTP\\Vendor\\Psr\\Log\\LoggerInterface' => $baseDir . '/vendor_prefixed/psr/log/Psr/Log/LoggerInterface.php',
|
308 |
+
'WPMailSMTP\\Vendor\\Psr\\Log\\LoggerTrait' => $baseDir . '/vendor_prefixed/psr/log/Psr/Log/LoggerTrait.php',
|
309 |
+
'WPMailSMTP\\Vendor\\Psr\\Log\\NullLogger' => $baseDir . '/vendor_prefixed/psr/log/Psr/Log/NullLogger.php',
|
310 |
+
'WPMailSMTP\\Vendor\\Psr\\Log\\Test\\DummyTest' => $baseDir . '/vendor_prefixed/psr/log/Psr/Log/Test/DummyTest.php',
|
311 |
+
'WPMailSMTP\\Vendor\\Psr\\Log\\Test\\LoggerInterfaceTest' => $baseDir . '/vendor_prefixed/psr/log/Psr/Log/Test/LoggerInterfaceTest.php',
|
312 |
+
'WPMailSMTP\\Vendor\\Psr\\Log\\Test\\TestLogger' => $baseDir . '/vendor_prefixed/psr/log/Psr/Log/Test/TestLogger.php',
|
313 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\ApiException' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/ApiException.php',
|
314 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\AccountApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/AccountApi.php',
|
315 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\AttributesApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/AttributesApi.php',
|
316 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\ContactsApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ContactsApi.php',
|
317 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\EmailCampaignsApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/EmailCampaignsApi.php',
|
318 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\FoldersApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/FoldersApi.php',
|
319 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\ListsApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ListsApi.php',
|
320 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\ProcessApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ProcessApi.php',
|
321 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\ResellerApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ResellerApi.php',
|
322 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\SMSCampaignsApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/SMSCampaignsApi.php',
|
323 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\SMTPApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/SMTPApi.php',
|
324 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\SendersApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/SendersApi.php',
|
325 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\TransactionalSMSApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/TransactionalSMSApi.php',
|
326 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\WebhooksApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/WebhooksApi.php',
|
327 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Configuration' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Configuration.php',
|
328 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\HeaderSelector' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/HeaderSelector.php',
|
329 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\AbTestCampaignResult' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AbTestCampaignResult.php',
|
330 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\AddChildDomain' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AddChildDomain.php',
|
331 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\AddContactToList' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AddContactToList.php',
|
332 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\AddCredits' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AddCredits.php',
|
333 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateAttribute' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateAttribute.php',
|
334 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateAttributeEnumeration' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateAttributeEnumeration.php',
|
335 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateChild' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateChild.php',
|
336 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateContact' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateContact.php',
|
337 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateDoiContact' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateDoiContact.php',
|
338 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateEmailCampaign' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaign.php',
|
339 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateEmailCampaignRecipients' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignRecipients.php',
|
340 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateEmailCampaignSender' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignSender.php',
|
341 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateList' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateList.php',
|
342 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateModel.php',
|
343 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateReseller' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateReseller.php',
|
344 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSender' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSender.php',
|
345 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSenderIps' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSenderIps.php',
|
346 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSenderModel' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSenderModel.php',
|
347 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmsCampaign' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaign.php',
|
348 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmsCampaignRecipients' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaignRecipients.php',
|
349 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmtpEmail' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmtpEmail.php',
|
350 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmtpTemplate' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplate.php',
|
351 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmtpTemplateSender' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplateSender.php',
|
352 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateUpdateContactModel' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateUpdateContactModel.php',
|
353 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateUpdateFolder' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateUpdateFolder.php',
|
354 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateWebhook' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateWebhook.php',
|
355 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreatedProcessId' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreatedProcessId.php',
|
356 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\DeleteHardbounces' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/DeleteHardbounces.php',
|
357 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\EmailExportRecipients' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/EmailExportRecipients.php',
|
358 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/ErrorModel.php',
|
359 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccount' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccount.php',
|
360 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccountMarketingAutomation' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountMarketingAutomation.php',
|
361 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccountPlan' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountPlan.php',
|
362 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccountRelay' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountRelay.php',
|
363 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccountRelayData' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountRelayData.php',
|
364 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAggregatedReport' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAggregatedReport.php',
|
365 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAttributes' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAttributes.php',
|
366 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAttributesAttributes' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAttributesAttributes.php',
|
367 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAttributesEnumeration' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAttributesEnumeration.php',
|
368 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetCampaignOverview' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetCampaignOverview.php',
|
369 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetCampaignRecipients' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetCampaignRecipients.php',
|
370 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetCampaignStats' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetCampaignStats.php',
|
371 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildAccountCreationStatus' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildAccountCreationStatus.php',
|
372 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildDomain' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildDomain.php',
|
373 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildDomains' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildDomains.php',
|
374 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfo' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfo.php',
|
375 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfoApiKeys' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeys.php',
|
376 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfoApiKeysV2' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV2.php',
|
377 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfoApiKeysV3' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV3.php',
|
378 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfoCredits' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoCredits.php',
|
379 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfoStatistics' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoStatistics.php',
|
380 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildrenList' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildrenList.php',
|
381 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetClient' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetClient.php',
|
382 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStats' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStats.php',
|
383 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStatsClicked' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsClicked.php',
|
384 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStatsOpened' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsOpened.php',
|
385 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStatsTransacAttributes' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsTransacAttributes.php',
|
386 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStatsUnsubscriptions' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsUnsubscriptions.php',
|
387 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactDetails' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactDetails.php',
|
388 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContacts' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContacts.php',
|
389 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetDeviceBrowserStats' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetDeviceBrowserStats.php',
|
390 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailCampaign' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaign.php',
|
391 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailCampaigns' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaigns.php',
|
392 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailEventReport' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReport.php',
|
393 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailEventReportEvents' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReportEvents.php',
|
394 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedCampaignOverview' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverview.php',
|
395 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedCampaignOverviewSender' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverviewSender.php',
|
396 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedCampaignStats' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignStats.php',
|
397 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedClient' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedClient.php',
|
398 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedClientAddress' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedClientAddress.php',
|
399 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetails' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetails.php',
|
400 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatistics' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatistics.php',
|
401 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsClicked' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsClicked.php',
|
402 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsLinks' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsLinks.php',
|
403 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsMessagesSent' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsMessagesSent.php',
|
404 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsOpened' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsOpened.php',
|
405 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsUnsubscriptions' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptions.php',
|
406 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.php',
|
407 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.php',
|
408 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedList' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedList.php',
|
409 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedListCampaignStats' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedListCampaignStats.php',
|
410 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolder' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetFolder.php',
|
411 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolderLists' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetFolderLists.php',
|
412 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolders' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetFolders.php',
|
413 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetIp' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIp.php',
|
414 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetIpFromSender' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIpFromSender.php',
|
415 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetIps' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIps.php',
|
416 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetIpsFromSender' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIpsFromSender.php',
|
417 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetList' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetList.php',
|
418 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetLists' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetLists.php',
|
419 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetProcess' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetProcess.php',
|
420 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetProcesses' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetProcesses.php',
|
421 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetReports' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetReports.php',
|
422 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetReportsReports' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetReportsReports.php',
|
423 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSendersList' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSendersList.php',
|
424 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSendersListIps' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSendersListIps.php',
|
425 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSendersListSenders' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSendersListSenders.php',
|
426 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSharedTemplateUrl' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSharedTemplateUrl.php',
|
427 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsCampaign' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaign.php',
|
428 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsCampaignOverview' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignOverview.php',
|
429 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsCampaignStats' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignStats.php',
|
430 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsCampaigns' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaigns.php',
|
431 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsEventReport' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReport.php',
|
432 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsEventReportEvents' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReportEvents.php',
|
433 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmtpTemplateOverview' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverview.php',
|
434 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmtpTemplateOverviewSender' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverviewSender.php',
|
435 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmtpTemplates' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplates.php',
|
436 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSsoToken' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSsoToken.php',
|
437 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetStatsByBrowser' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetStatsByBrowser.php',
|
438 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetStatsByDevice' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetStatsByDevice.php',
|
439 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetStatsByDomain' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetStatsByDomain.php',
|
440 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacAggregatedSmsReport' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacAggregatedSmsReport.php',
|
441 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacBlockedContacts' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContacts.php',
|
442 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacBlockedContactsContacts' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsContacts.php',
|
443 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacBlockedContactsReason' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsReason.php',
|
444 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacEmailContent' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContent.php',
|
445 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacEmailContentEvents' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContentEvents.php',
|
446 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacEmailsList' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsList.php',
|
447 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacEmailsListTransactionalEmails' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsListTransactionalEmails.php',
|
448 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacSmsReport' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReport.php',
|
449 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacSmsReportReports' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReportReports.php',
|
450 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetWebhook' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetWebhook.php',
|
451 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetWebhooks' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetWebhooks.php',
|
452 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ManageIp' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/ManageIp.php',
|
453 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ModelInterface' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/ModelInterface.php',
|
454 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostContactInfo' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/PostContactInfo.php',
|
455 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostContactInfoContacts' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/PostContactInfoContacts.php',
|
456 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostSendFailed' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/PostSendFailed.php',
|
457 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostSendSmsTestFailed' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/PostSendSmsTestFailed.php',
|
458 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemainingCreditModel' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModel.php',
|
459 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemainingCreditModelChild' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelChild.php',
|
460 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemainingCreditModelReseller' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelReseller.php',
|
461 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemoveContactFromList' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemoveContactFromList.php',
|
462 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemoveCredits' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemoveCredits.php',
|
463 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RequestContactExport' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactExport.php',
|
464 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RequestContactExportCustomContactFilter' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactExportCustomContactFilter.php',
|
465 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RequestContactImport' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactImport.php',
|
466 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RequestContactImportNewList' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactImportNewList.php',
|
467 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RequestSMSRecipientExport' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestSMSRecipientExport.php',
|
468 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendEmail' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendEmail.php',
|
469 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendEmailAttachment' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendEmailAttachment.php',
|
470 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendReport' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendReport.php',
|
471 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendReportEmail' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendReportEmail.php',
|
472 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSms' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSms.php',
|
473 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmail' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmail.php',
|
474 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailAttachment' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailAttachment.php',
|
475 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailBcc' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailBcc.php',
|
476 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailCc' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailCc.php',
|
477 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailReplyTo' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailReplyTo.php',
|
478 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailSender' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailSender.php',
|
479 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailTo' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailTo.php',
|
480 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendTemplateEmail' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTemplateEmail.php',
|
481 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendTestEmail' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTestEmail.php',
|
482 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendTestSms' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTestSms.php',
|
483 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendTransacSms' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTransacSms.php',
|
484 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateAttribute' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateAttribute.php',
|
485 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateAttributeEnumeration' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateAttributeEnumeration.php',
|
486 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateCampaignStatus' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateCampaignStatus.php',
|
487 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateChild' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateChild.php',
|
488 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateChildAccountStatus' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateChildAccountStatus.php',
|
489 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateChildDomain' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateChildDomain.php',
|
490 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateContact' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateContact.php',
|
491 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateEmailCampaign' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaign.php',
|
492 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateEmailCampaignRecipients' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignRecipients.php',
|
493 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateEmailCampaignSender' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignSender.php',
|
494 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateList' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateList.php',
|
495 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateSender' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSender.php',
|
496 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateSmsCampaign' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSmsCampaign.php',
|
497 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateSmtpTemplate' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplate.php',
|
498 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateSmtpTemplateSender' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplateSender.php',
|
499 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateWebhook' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateWebhook.php',
|
500 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UploadImageToGallery' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UploadImageToGallery.php',
|
501 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\ObjectSerializer' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/ObjectSerializer.php',
|
502 |
+
'WPMailSMTP\\Vendor\\Symfony\\Polyfill\\Intl\\Idn\\Idn' => $baseDir . '/vendor_prefixed/symfony/polyfill-intl-idn/Idn.php',
|
503 |
+
'WPMailSMTP\\Vendor\\Symfony\\Polyfill\\Mbstring\\Mbstring' => $baseDir . '/vendor_prefixed/symfony/polyfill-mbstring/Mbstring.php',
|
504 |
+
'WPMailSMTP\\Vendor\\Symfony\\Polyfill\\Php72\\Php72' => $baseDir . '/vendor_prefixed/symfony/polyfill-php72/Php72.php',
|
505 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\AES' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/AES.php',
|
506 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Base' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Base.php',
|
507 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Blowfish' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Blowfish.php',
|
508 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\DES' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/DES.php',
|
509 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Hash' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Hash.php',
|
510 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\RC2' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/RC2.php',
|
511 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\RC4' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/RC4.php',
|
512 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\RSA' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/RSA.php',
|
513 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Random' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Random.php',
|
514 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Rijndael' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php',
|
515 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\TripleDES' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/TripleDES.php',
|
516 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Twofish' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php',
|
517 |
+
'WPMailSMTP\\Vendor\\phpseclib\\File\\ANSI' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/File/ANSI.php',
|
518 |
+
'WPMailSMTP\\Vendor\\phpseclib\\File\\ASN1' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/File/ASN1.php',
|
519 |
+
'WPMailSMTP\\Vendor\\phpseclib\\File\\ASN1\\Element' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/File/ASN1/Element.php',
|
520 |
+
'WPMailSMTP\\Vendor\\phpseclib\\File\\X509' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/File/X509.php',
|
521 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Math\\BigInteger' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Math/BigInteger.php',
|
522 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Net\\SCP' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Net/SCP.php',
|
523 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Net\\SFTP' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Net/SFTP.php',
|
524 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Net\\SFTP\\Stream' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Net/SFTP/Stream.php',
|
525 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Net\\SSH1' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Net/SSH1.php',
|
526 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Net\\SSH2' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Net/SSH2.php',
|
527 |
+
'WPMailSMTP\\Vendor\\phpseclib\\System\\SSH\\Agent' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/System/SSH/Agent.php',
|
528 |
+
'WPMailSMTP\\Vendor\\phpseclib\\System\\SSH\\Agent\\Identity' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/System/SSH/Agent/Identity.php',
|
529 |
);
|
vendor/composer/autoload_files.php
CHANGED
@@ -7,11 +7,11 @@ $baseDir = dirname($vendorDir);
|
|
7 |
|
8 |
return array(
|
9 |
'7b11c4dc42b3b3023073cb14e519683c' => $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php',
|
10 |
-
'
|
11 |
-
'
|
12 |
-
'
|
13 |
-
'
|
14 |
-
'
|
15 |
-
'
|
16 |
-
'
|
17 |
);
|
7 |
|
8 |
return array(
|
9 |
'7b11c4dc42b3b3023073cb14e519683c' => $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php',
|
10 |
+
'840b8504e40a63aaa679ca25c0b2a1cc' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/functions_include.php',
|
11 |
+
'e3e111437f37e10e6bcab5eacc08fb6f' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/functions_include.php',
|
12 |
+
'2bb094e40611cb5eccea789f32aff634' => $baseDir . '/vendor_prefixed/symfony/polyfill-mbstring/bootstrap.php',
|
13 |
+
'1fd84176824b5a44e7bd8da85eca7e14' => $baseDir . '/vendor_prefixed/symfony/polyfill-php72/bootstrap.php',
|
14 |
+
'606299e0d90ec13f1e6b53164b8387df' => $baseDir . '/vendor_prefixed/symfony/polyfill-intl-idn/bootstrap.php',
|
15 |
+
'6fe0d6ea1deb6acc74bbe64573a83e1c' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/functions_include.php',
|
16 |
+
'3ed0dcebed83aa26dfe4c549d730cf2e' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/bootstrap.php',
|
17 |
);
|
vendor/composer/autoload_namespaces.php
CHANGED
@@ -6,6 +6,4 @@ $vendorDir = dirname(dirname(__FILE__));
|
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
9 |
-
'Google_Service_' => array($vendorDir . '/google/apiclient-services/src'),
|
10 |
-
'Google_' => array($vendorDir . '/google/apiclient/src'),
|
11 |
);
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
|
|
|
|
9 |
);
|
vendor/composer/autoload_psr4.php
CHANGED
@@ -6,21 +6,9 @@ $vendorDir = dirname(dirname(__FILE__));
|
|
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 |
-
'
|
13 |
-
'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'),
|
14 |
-
'Symfony\\Polyfill\\Intl\\Idn\\' => array($vendorDir . '/symfony/polyfill-intl-idn'),
|
15 |
-
'SendinBlue\\Client\\' => array($vendorDir . '/sendinblue/api-v3-sdk/lib'),
|
16 |
-
'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'),
|
17 |
-
'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src'),
|
18 |
-
'Psr\\Cache\\' => array($vendorDir . '/psr/cache/src'),
|
19 |
-
'Monolog\\' => array($vendorDir . '/monolog/monolog/src/Monolog'),
|
20 |
-
'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'),
|
21 |
-
'GuzzleHttp\\Promise\\' => array($vendorDir . '/guzzlehttp/promises/src'),
|
22 |
-
'GuzzleHttp\\' => array($vendorDir . '/guzzlehttp/guzzle/src'),
|
23 |
-
'Google\\Auth\\' => array($vendorDir . '/google/auth/src'),
|
24 |
'Firebase\\JWT\\' => array($vendorDir . '/firebase/php-jwt/src'),
|
25 |
'Composer\\Installers\\' => array($vendorDir . '/composer/installers/src/Composer/Installers'),
|
26 |
);
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
|
|
9 |
'Wikimedia\\Composer\\' => array($vendorDir . '/wikimedia/composer-merge-plugin/src'),
|
10 |
'WPMailSMTP\\' => array($baseDir . '/src'),
|
11 |
+
'InstituteWeb\\ComposerScripts\\' => array($vendorDir . '/instituteweb/composer-scripts/src'),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
'Firebase\\JWT\\' => array($vendorDir . '/firebase/php-jwt/src'),
|
13 |
'Composer\\Installers\\' => array($vendorDir . '/composer/installers/src/Composer/Installers'),
|
14 |
);
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -22,15 +22,15 @@ class ComposerAutoloaderInitecc5aee58cbc7fae6cdc39ef5e9f1f73
|
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
-
spl_autoload_register(array('
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
-
spl_autoload_unregister(array('
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
-
call_user_func(\Composer\Autoload\
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
@@ -51,19 +51,19 @@ class ComposerAutoloaderInitecc5aee58cbc7fae6cdc39ef5e9f1f73
|
|
51 |
$loader->register(true);
|
52 |
|
53 |
if ($useStaticLoader) {
|
54 |
-
$includeFiles = Composer\Autoload\
|
55 |
} else {
|
56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
57 |
}
|
58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
59 |
-
|
60 |
}
|
61 |
|
62 |
return $loader;
|
63 |
}
|
64 |
}
|
65 |
|
66 |
-
function
|
67 |
{
|
68 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
69 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit4505233c9771255f4bcd3288908993ad
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInit4505233c9771255f4bcd3288908993ad', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit4505233c9771255f4bcd3288908993ad', 'loadClassLoader'));
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit4505233c9771255f4bcd3288908993ad::getInitializer($loader));
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
51 |
$loader->register(true);
|
52 |
|
53 |
if ($useStaticLoader) {
|
54 |
+
$includeFiles = Composer\Autoload\ComposerStaticInit4505233c9771255f4bcd3288908993ad::$files;
|
55 |
} else {
|
56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
57 |
}
|
58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
59 |
+
composerRequire4505233c9771255f4bcd3288908993ad($fileIdentifier, $file);
|
60 |
}
|
61 |
|
62 |
return $loader;
|
63 |
}
|
64 |
}
|
65 |
|
66 |
+
function composerRequire4505233c9771255f4bcd3288908993ad($fileIdentifier, $file)
|
67 |
{
|
68 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
69 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,52 +4,28 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
|
11 |
-
'
|
12 |
-
'
|
13 |
-
'
|
14 |
-
'
|
15 |
-
'
|
16 |
-
'
|
17 |
-
'
|
18 |
);
|
19 |
|
20 |
public static $prefixLengthsPsr4 = array (
|
21 |
-
'p' =>
|
22 |
-
array (
|
23 |
-
'phpseclib\\' => 10,
|
24 |
-
),
|
25 |
'W' =>
|
26 |
array (
|
27 |
'Wikimedia\\Composer\\' => 19,
|
28 |
'WPMailSMTP\\' => 11,
|
29 |
),
|
30 |
-
'
|
31 |
array (
|
32 |
-
'
|
33 |
-
'Symfony\\Polyfill\\Mbstring\\' => 26,
|
34 |
-
'Symfony\\Polyfill\\Intl\\Idn\\' => 26,
|
35 |
-
'SendinBlue\\Client\\' => 18,
|
36 |
-
),
|
37 |
-
'P' =>
|
38 |
-
array (
|
39 |
-
'Psr\\Log\\' => 8,
|
40 |
-
'Psr\\Http\\Message\\' => 17,
|
41 |
-
'Psr\\Cache\\' => 10,
|
42 |
-
),
|
43 |
-
'M' =>
|
44 |
-
array (
|
45 |
-
'Monolog\\' => 8,
|
46 |
-
),
|
47 |
-
'G' =>
|
48 |
-
array (
|
49 |
-
'GuzzleHttp\\Psr7\\' => 16,
|
50 |
-
'GuzzleHttp\\Promise\\' => 19,
|
51 |
-
'GuzzleHttp\\' => 11,
|
52 |
-
'Google\\Auth\\' => 12,
|
53 |
),
|
54 |
'F' =>
|
55 |
array (
|
@@ -62,10 +38,6 @@ class ComposerStaticInitecc5aee58cbc7fae6cdc39ef5e9f1f73
|
|
62 |
);
|
63 |
|
64 |
public static $prefixDirsPsr4 = array (
|
65 |
-
'phpseclib\\' =>
|
66 |
-
array (
|
67 |
-
0 => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib',
|
68 |
-
),
|
69 |
'Wikimedia\\Composer\\' =>
|
70 |
array (
|
71 |
0 => __DIR__ . '/..' . '/wikimedia/composer-merge-plugin/src',
|
@@ -74,53 +46,9 @@ class ComposerStaticInitecc5aee58cbc7fae6cdc39ef5e9f1f73
|
|
74 |
array (
|
75 |
0 => __DIR__ . '/../..' . '/src',
|
76 |
),
|
77 |
-
'
|
78 |
-
array (
|
79 |
-
0 => __DIR__ . '/..' . '/symfony/polyfill-php72',
|
80 |
-
),
|
81 |
-
'Symfony\\Polyfill\\Mbstring\\' =>
|
82 |
-
array (
|
83 |
-
0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring',
|
84 |
-
),
|
85 |
-
'Symfony\\Polyfill\\Intl\\Idn\\' =>
|
86 |
-
array (
|
87 |
-
0 => __DIR__ . '/..' . '/symfony/polyfill-intl-idn',
|
88 |
-
),
|
89 |
-
'SendinBlue\\Client\\' =>
|
90 |
-
array (
|
91 |
-
0 => __DIR__ . '/..' . '/sendinblue/api-v3-sdk/lib',
|
92 |
-
),
|
93 |
-
'Psr\\Log\\' =>
|
94 |
array (
|
95 |
-
0 => __DIR__ . '/..' . '/
|
96 |
-
),
|
97 |
-
'Psr\\Http\\Message\\' =>
|
98 |
-
array (
|
99 |
-
0 => __DIR__ . '/..' . '/psr/http-message/src',
|
100 |
-
),
|
101 |
-
'Psr\\Cache\\' =>
|
102 |
-
array (
|
103 |
-
0 => __DIR__ . '/..' . '/psr/cache/src',
|
104 |
-
),
|
105 |
-
'Monolog\\' =>
|
106 |
-
array (
|
107 |
-
0 => __DIR__ . '/..' . '/monolog/monolog/src/Monolog',
|
108 |
-
),
|
109 |
-
'GuzzleHttp\\Psr7\\' =>
|
110 |
-
array (
|
111 |
-
0 => __DIR__ . '/..' . '/guzzlehttp/psr7/src',
|
112 |
-
),
|
113 |
-
'GuzzleHttp\\Promise\\' =>
|
114 |
-
array (
|
115 |
-
0 => __DIR__ . '/..' . '/guzzlehttp/promises/src',
|
116 |
-
),
|
117 |
-
'GuzzleHttp\\' =>
|
118 |
-
array (
|
119 |
-
0 => __DIR__ . '/..' . '/guzzlehttp/guzzle/src',
|
120 |
-
),
|
121 |
-
'Google\\Auth\\' =>
|
122 |
-
array (
|
123 |
-
0 => __DIR__ . '/..' . '/google/auth/src',
|
124 |
),
|
125 |
'Firebase\\JWT\\' =>
|
126 |
array (
|
@@ -132,32 +60,535 @@ class ComposerStaticInitecc5aee58cbc7fae6cdc39ef5e9f1f73
|
|
132 |
),
|
133 |
);
|
134 |
|
135 |
-
public static $prefixesPsr0 = array (
|
136 |
-
'G' =>
|
137 |
-
array (
|
138 |
-
'Google_Service_' =>
|
139 |
-
array (
|
140 |
-
0 => __DIR__ . '/..' . '/google/apiclient-services/src',
|
141 |
-
),
|
142 |
-
'Google_' =>
|
143 |
-
array (
|
144 |
-
0 => __DIR__ . '/..' . '/google/apiclient/src',
|
145 |
-
),
|
146 |
-
),
|
147 |
-
);
|
148 |
-
|
149 |
public static $classMap = array (
|
150 |
-
'
|
151 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
);
|
153 |
|
154 |
public static function getInitializer(ClassLoader $loader)
|
155 |
{
|
156 |
return \Closure::bind(function () use ($loader) {
|
157 |
-
$loader->prefixLengthsPsr4 =
|
158 |
-
$loader->prefixDirsPsr4 =
|
159 |
-
$loader->
|
160 |
-
$loader->classMap = ComposerStaticInitecc5aee58cbc7fae6cdc39ef5e9f1f73::$classMap;
|
161 |
|
162 |
}, null, ClassLoader::class);
|
163 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit4505233c9771255f4bcd3288908993ad
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
|
11 |
+
'840b8504e40a63aaa679ca25c0b2a1cc' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/functions_include.php',
|
12 |
+
'e3e111437f37e10e6bcab5eacc08fb6f' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/functions_include.php',
|
13 |
+
'2bb094e40611cb5eccea789f32aff634' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/polyfill-mbstring/bootstrap.php',
|
14 |
+
'1fd84176824b5a44e7bd8da85eca7e14' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/polyfill-php72/bootstrap.php',
|
15 |
+
'606299e0d90ec13f1e6b53164b8387df' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/polyfill-intl-idn/bootstrap.php',
|
16 |
+
'6fe0d6ea1deb6acc74bbe64573a83e1c' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/functions_include.php',
|
17 |
+
'3ed0dcebed83aa26dfe4c549d730cf2e' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/bootstrap.php',
|
18 |
);
|
19 |
|
20 |
public static $prefixLengthsPsr4 = array (
|
|
|
|
|
|
|
|
|
21 |
'W' =>
|
22 |
array (
|
23 |
'Wikimedia\\Composer\\' => 19,
|
24 |
'WPMailSMTP\\' => 11,
|
25 |
),
|
26 |
+
'I' =>
|
27 |
array (
|
28 |
+
'InstituteWeb\\ComposerScripts\\' => 29,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
),
|
30 |
'F' =>
|
31 |
array (
|
38 |
);
|
39 |
|
40 |
public static $prefixDirsPsr4 = array (
|
|
|
|
|
|
|
|
|
41 |
'Wikimedia\\Composer\\' =>
|
42 |
array (
|
43 |
0 => __DIR__ . '/..' . '/wikimedia/composer-merge-plugin/src',
|
46 |
array (
|
47 |
0 => __DIR__ . '/../..' . '/src',
|
48 |
),
|
49 |
+
'InstituteWeb\\ComposerScripts\\' =>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
array (
|
51 |
+
0 => __DIR__ . '/..' . '/instituteweb/composer-scripts/src',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
),
|
53 |
'Firebase\\JWT\\' =>
|
54 |
array (
|
60 |
),
|
61 |
);
|
62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
public static $classMap = array (
|
64 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\AccessToken' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/AccessToken.php',
|
65 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\ApplicationDefaultCredentials' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/ApplicationDefaultCredentials.php',
|
66 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\CacheTrait' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/CacheTrait.php',
|
67 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Cache\\InvalidArgumentException' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Cache/InvalidArgumentException.php',
|
68 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Cache\\Item' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Cache/Item.php',
|
69 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Cache\\MemoryCacheItemPool' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Cache/MemoryCacheItemPool.php',
|
70 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Cache\\SysVCacheItemPool' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Cache/SysVCacheItemPool.php',
|
71 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\CredentialsLoader' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/CredentialsLoader.php',
|
72 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\AppIdentityCredentials' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Credentials/AppIdentityCredentials.php',
|
73 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\GCECredentials' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Credentials/GCECredentials.php',
|
74 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\IAMCredentials' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Credentials/IAMCredentials.php',
|
75 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\InsecureCredentials' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Credentials/InsecureCredentials.php',
|
76 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\ServiceAccountCredentials' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Credentials/ServiceAccountCredentials.php',
|
77 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\ServiceAccountJwtAccessCredentials' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php',
|
78 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\UserRefreshCredentials' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Credentials/UserRefreshCredentials.php',
|
79 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\FetchAuthTokenCache' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/FetchAuthTokenCache.php',
|
80 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\FetchAuthTokenInterface' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/FetchAuthTokenInterface.php',
|
81 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\GCECache' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/GCECache.php',
|
82 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\GetQuotaProjectInterface' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/GetQuotaProjectInterface.php',
|
83 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\HttpHandler\\Guzzle5HttpHandler' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/HttpHandler/Guzzle5HttpHandler.php',
|
84 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\HttpHandler\\Guzzle6HttpHandler' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/HttpHandler/Guzzle6HttpHandler.php',
|
85 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\HttpHandler\\Guzzle7HttpHandler' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/HttpHandler/Guzzle7HttpHandler.php',
|
86 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\HttpHandler\\HttpClientCache' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/HttpHandler/HttpClientCache.php',
|
87 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\HttpHandler\\HttpHandlerFactory' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/HttpHandler/HttpHandlerFactory.php',
|
88 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Iam' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Iam.php',
|
89 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Middleware\\AuthTokenMiddleware' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Middleware/AuthTokenMiddleware.php',
|
90 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Middleware\\ScopedAccessTokenMiddleware' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Middleware/ScopedAccessTokenMiddleware.php',
|
91 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Middleware\\SimpleMiddleware' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Middleware/SimpleMiddleware.php',
|
92 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\OAuth2' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/OAuth2.php',
|
93 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\ProjectIdProviderInterface' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/ProjectIdProviderInterface.php',
|
94 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\ServiceAccountSignerTrait' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/ServiceAccountSignerTrait.php',
|
95 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\SignBlobInterface' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/SignBlobInterface.php',
|
96 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Subscriber\\AuthTokenSubscriber' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Subscriber/AuthTokenSubscriber.php',
|
97 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Subscriber\\ScopedAccessTokenSubscriber' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Subscriber/ScopedAccessTokenSubscriber.php',
|
98 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\Subscriber\\SimpleSubscriber' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Subscriber/SimpleSubscriber.php',
|
99 |
+
'WPMailSMTP\\Vendor\\Google\\Auth\\UpdateMetadataInterface' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/UpdateMetadataInterface.php',
|
100 |
+
'WPMailSMTP\\Vendor\\Google_AccessToken_Revoke' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/AccessToken/Revoke.php',
|
101 |
+
'WPMailSMTP\\Vendor\\Google_AccessToken_Verify' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/AccessToken/Verify.php',
|
102 |
+
'WPMailSMTP\\Vendor\\Google_AuthHandler_AuthHandlerFactory' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/AuthHandler/AuthHandlerFactory.php',
|
103 |
+
'WPMailSMTP\\Vendor\\Google_AuthHandler_Guzzle5AuthHandler' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle5AuthHandler.php',
|
104 |
+
'WPMailSMTP\\Vendor\\Google_AuthHandler_Guzzle6AuthHandler' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle6AuthHandler.php',
|
105 |
+
'WPMailSMTP\\Vendor\\Google_AuthHandler_Guzzle7AuthHandler' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle7AuthHandler.php',
|
106 |
+
'WPMailSMTP\\Vendor\\Google_Client' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Client.php',
|
107 |
+
'WPMailSMTP\\Vendor\\Google_Collection' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Collection.php',
|
108 |
+
'WPMailSMTP\\Vendor\\Google_Exception' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Exception.php',
|
109 |
+
'WPMailSMTP\\Vendor\\Google_Http_Batch' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Http/Batch.php',
|
110 |
+
'WPMailSMTP\\Vendor\\Google_Http_MediaFileUpload' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Http/MediaFileUpload.php',
|
111 |
+
'WPMailSMTP\\Vendor\\Google_Http_REST' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Http/REST.php',
|
112 |
+
'WPMailSMTP\\Vendor\\Google_Model' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Model.php',
|
113 |
+
'WPMailSMTP\\Vendor\\Google_Service' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Service.php',
|
114 |
+
'WPMailSMTP\\Vendor\\Google_Service_Exception' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Service/Exception.php',
|
115 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail.php',
|
116 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_AutoForwarding' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/AutoForwarding.php',
|
117 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_BatchDeleteMessagesRequest' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/BatchDeleteMessagesRequest.php',
|
118 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_BatchModifyMessagesRequest' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/BatchModifyMessagesRequest.php',
|
119 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Delegate' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Delegate.php',
|
120 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Draft' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Draft.php',
|
121 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Filter' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Filter.php',
|
122 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_FilterAction' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/FilterAction.php',
|
123 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_FilterCriteria' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/FilterCriteria.php',
|
124 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ForwardingAddress' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ForwardingAddress.php',
|
125 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_History' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/History.php',
|
126 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_HistoryLabelAdded' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelAdded.php',
|
127 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_HistoryLabelRemoved' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelRemoved.php',
|
128 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_HistoryMessageAdded' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageAdded.php',
|
129 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_HistoryMessageDeleted' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageDeleted.php',
|
130 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ImapSettings' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ImapSettings.php',
|
131 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Label' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Label.php',
|
132 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_LabelColor' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/LabelColor.php',
|
133 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_LanguageSettings' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/LanguageSettings.php',
|
134 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListDelegatesResponse' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListDelegatesResponse.php',
|
135 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListDraftsResponse' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListDraftsResponse.php',
|
136 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListFiltersResponse' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListFiltersResponse.php',
|
137 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListForwardingAddressesResponse' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListForwardingAddressesResponse.php',
|
138 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListHistoryResponse' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListHistoryResponse.php',
|
139 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListLabelsResponse' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListLabelsResponse.php',
|
140 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListMessagesResponse' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListMessagesResponse.php',
|
141 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListSendAsResponse' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListSendAsResponse.php',
|
142 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListSmimeInfoResponse' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListSmimeInfoResponse.php',
|
143 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListThreadsResponse' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListThreadsResponse.php',
|
144 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Message' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Message.php',
|
145 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_MessagePart' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePart.php',
|
146 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_MessagePartBody' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePartBody.php',
|
147 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_MessagePartHeader' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePartHeader.php',
|
148 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ModifyMessageRequest' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ModifyMessageRequest.php',
|
149 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_ModifyThreadRequest' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ModifyThreadRequest.php',
|
150 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_PopSettings' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/PopSettings.php',
|
151 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Profile' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Profile.php',
|
152 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_Users' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php',
|
153 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersDrafts' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php',
|
154 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersHistory' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php',
|
155 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersLabels' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php',
|
156 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersMessages' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php',
|
157 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersMessagesAttachments' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessagesAttachments.php',
|
158 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersSettings' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php',
|
159 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersSettingsDelegates' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsDelegates.php',
|
160 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersSettingsFilters' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsFilters.php',
|
161 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersSettingsForwardingAddresses' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php',
|
162 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersSettingsSendAs' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php',
|
163 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersSettingsSendAsSmimeInfo' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAsSmimeInfo.php',
|
164 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersThreads' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php',
|
165 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_SendAs' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SendAs.php',
|
166 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_SmimeInfo' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SmimeInfo.php',
|
167 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_SmtpMsa' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SmtpMsa.php',
|
168 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_Thread' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Thread.php',
|
169 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_VacationSettings' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/VacationSettings.php',
|
170 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_WatchRequest' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/WatchRequest.php',
|
171 |
+
'WPMailSMTP\\Vendor\\Google_Service_Gmail_WatchResponse' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/WatchResponse.php',
|
172 |
+
'WPMailSMTP\\Vendor\\Google_Service_Resource' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Service/Resource.php',
|
173 |
+
'WPMailSMTP\\Vendor\\Google_Task_Composer' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Task/Composer.php',
|
174 |
+
'WPMailSMTP\\Vendor\\Google_Task_Exception' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Task/Exception.php',
|
175 |
+
'WPMailSMTP\\Vendor\\Google_Task_Retryable' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Task/Retryable.php',
|
176 |
+
'WPMailSMTP\\Vendor\\Google_Task_Runner' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Task/Runner.php',
|
177 |
+
'WPMailSMTP\\Vendor\\Google_Utils_UriTemplate' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Utils/UriTemplate.php',
|
178 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Client' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Client.php',
|
179 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\ClientInterface' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/ClientInterface.php',
|
180 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Cookie\\CookieJar' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/CookieJar.php',
|
181 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Cookie\\CookieJarInterface' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php',
|
182 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Cookie\\FileCookieJar' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php',
|
183 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Cookie\\SessionCookieJar' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php',
|
184 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Cookie\\SetCookie' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/SetCookie.php',
|
185 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\BadResponseException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/BadResponseException.php',
|
186 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\ClientException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/ClientException.php',
|
187 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\ConnectException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/ConnectException.php',
|
188 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\GuzzleException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/GuzzleException.php',
|
189 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\InvalidArgumentException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php',
|
190 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\RequestException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/RequestException.php',
|
191 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\SeekException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/SeekException.php',
|
192 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\ServerException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/ServerException.php',
|
193 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\TooManyRedirectsException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php',
|
194 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\TransferException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/TransferException.php',
|
195 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\HandlerStack' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/HandlerStack.php',
|
196 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\CurlFactory' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/CurlFactory.php',
|
197 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\CurlFactoryInterface' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php',
|
198 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\CurlHandler' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/CurlHandler.php',
|
199 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\CurlMultiHandler' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php',
|
200 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\EasyHandle' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/EasyHandle.php',
|
201 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\MockHandler' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/MockHandler.php',
|
202 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\Proxy' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/Proxy.php',
|
203 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\StreamHandler' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/StreamHandler.php',
|
204 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\MessageFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/MessageFormatter.php',
|
205 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Middleware' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Middleware.php',
|
206 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Pool' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Pool.php',
|
207 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\PrepareBodyMiddleware' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php',
|
208 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\AggregateException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/AggregateException.php',
|
209 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\CancellationException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/CancellationException.php',
|
210 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\Coroutine' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/Coroutine.php',
|
211 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\EachPromise' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/EachPromise.php',
|
212 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\FulfilledPromise' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/FulfilledPromise.php',
|
213 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\Promise' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/Promise.php',
|
214 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\PromiseInterface' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/PromiseInterface.php',
|
215 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\PromisorInterface' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/PromisorInterface.php',
|
216 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\RejectedPromise' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/RejectedPromise.php',
|
217 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\RejectionException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/RejectionException.php',
|
218 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\TaskQueue' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/TaskQueue.php',
|
219 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\TaskQueueInterface' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/TaskQueueInterface.php',
|
220 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\AppendStream' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/AppendStream.php',
|
221 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\BufferStream' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/BufferStream.php',
|
222 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\CachingStream' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/CachingStream.php',
|
223 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\DroppingStream' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/DroppingStream.php',
|
224 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\FnStream' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/FnStream.php',
|
225 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\InflateStream' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/InflateStream.php',
|
226 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\LazyOpenStream' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/LazyOpenStream.php',
|
227 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\LimitStream' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/LimitStream.php',
|
228 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\MessageTrait' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/MessageTrait.php',
|
229 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\MultipartStream' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/MultipartStream.php',
|
230 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\NoSeekStream' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/NoSeekStream.php',
|
231 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\PumpStream' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/PumpStream.php',
|
232 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\Request' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/Request.php',
|
233 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\Response' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/Response.php',
|
234 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\Rfc7230' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/Rfc7230.php',
|
235 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\ServerRequest' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/ServerRequest.php',
|
236 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\Stream' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/Stream.php',
|
237 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\StreamDecoratorTrait' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/StreamDecoratorTrait.php',
|
238 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\StreamWrapper' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/StreamWrapper.php',
|
239 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\UploadedFile' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/UploadedFile.php',
|
240 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\Uri' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/Uri.php',
|
241 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\UriNormalizer' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/UriNormalizer.php',
|
242 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\UriResolver' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/UriResolver.php',
|
243 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\RedirectMiddleware' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/RedirectMiddleware.php',
|
244 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\RequestOptions' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/RequestOptions.php',
|
245 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\RetryMiddleware' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/RetryMiddleware.php',
|
246 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\TransferStats' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/TransferStats.php',
|
247 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\UriTemplate' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/UriTemplate.php',
|
248 |
+
'WPMailSMTP\\Vendor\\GuzzleHttp\\Utils' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Utils.php',
|
249 |
+
'WPMailSMTP\\Vendor\\Monolog\\ErrorHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/ErrorHandler.php',
|
250 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\ChromePHPFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php',
|
251 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\ElasticaFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php',
|
252 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\FlowdockFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php',
|
253 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\FluentdFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php',
|
254 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\FormatterInterface' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php',
|
255 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\GelfMessageFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php',
|
256 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\HtmlFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php',
|
257 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\JsonFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php',
|
258 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\LineFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LineFormatter.php',
|
259 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\LogglyFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php',
|
260 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\LogstashFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php',
|
261 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\MongoDBFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php',
|
262 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\NormalizerFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php',
|
263 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\ScalarFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php',
|
264 |
+
'WPMailSMTP\\Vendor\\Monolog\\Formatter\\WildfireFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php',
|
265 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\AbstractHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AbstractHandler.php',
|
266 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\AbstractProcessingHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php',
|
267 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\AbstractSyslogHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php',
|
268 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\AmqpHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AmqpHandler.php',
|
269 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\BrowserConsoleHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php',
|
270 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\BufferHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/BufferHandler.php',
|
271 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\ChromePHPHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php',
|
272 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\CouchDBHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php',
|
273 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\CubeHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/CubeHandler.php',
|
274 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\Curl\\Util' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/Curl/Util.php',
|
275 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\DeduplicationHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php',
|
276 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\DoctrineCouchDBHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php',
|
277 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\DynamoDbHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php',
|
278 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\ElasticSearchHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php',
|
279 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\ErrorLogHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php',
|
280 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\FilterHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FilterHandler.php',
|
281 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\FingersCrossedHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php',
|
282 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\FingersCrossed\\ActivationStrategyInterface' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php',
|
283 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\FingersCrossed\\ChannelLevelActivationStrategy' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php',
|
284 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\FingersCrossed\\ErrorLevelActivationStrategy' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php',
|
285 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\FirePHPHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php',
|
286 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\FleepHookHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php',
|
287 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\FlowdockHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php',
|
288 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\FormattableHandlerInterface' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FormattableHandlerInterface.php',
|
289 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\FormattableHandlerTrait' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FormattableHandlerTrait.php',
|
290 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\GelfHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/GelfHandler.php',
|
291 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\GroupHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/GroupHandler.php',
|
292 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\HandlerInterface' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/HandlerInterface.php',
|
293 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\HandlerWrapper' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php',
|
294 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\HipChatHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/HipChatHandler.php',
|
295 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\IFTTTHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php',
|
296 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\InsightOpsHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php',
|
297 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\LogEntriesHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php',
|
298 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\LogglyHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/LogglyHandler.php',
|
299 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\MailHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MailHandler.php',
|
300 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\MandrillHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MandrillHandler.php',
|
301 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\MissingExtensionException' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php',
|
302 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\MongoDBHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php',
|
303 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\NativeMailerHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php',
|
304 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\NewRelicHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php',
|
305 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\NullHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NullHandler.php',
|
306 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\PHPConsoleHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php',
|
307 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\ProcessableHandlerInterface' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ProcessableHandlerInterface.php',
|
308 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\ProcessableHandlerTrait' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ProcessableHandlerTrait.php',
|
309 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\PsrHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/PsrHandler.php',
|
310 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\PushoverHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/PushoverHandler.php',
|
311 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\RavenHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RavenHandler.php',
|
312 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\RedisHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RedisHandler.php',
|
313 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\RollbarHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RollbarHandler.php',
|
314 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\RotatingFileHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php',
|
315 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\SamplingHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SamplingHandler.php',
|
316 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\SlackHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackHandler.php',
|
317 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\SlackWebhookHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php',
|
318 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\Slack\\SlackRecord' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php',
|
319 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\SlackbotHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php',
|
320 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\SocketHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SocketHandler.php',
|
321 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\StreamHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/StreamHandler.php',
|
322 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\SwiftMailerHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php',
|
323 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\SyslogHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SyslogHandler.php',
|
324 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\SyslogUdpHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php',
|
325 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\SyslogUdp\\UdpSocket' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php',
|
326 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\TestHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/TestHandler.php',
|
327 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\WhatFailureGroupHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php',
|
328 |
+
'WPMailSMTP\\Vendor\\Monolog\\Handler\\ZendMonitorHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php',
|
329 |
+
'WPMailSMTP\\Vendor\\Monolog\\Logger' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Logger.php',
|
330 |
+
'WPMailSMTP\\Vendor\\Monolog\\Processor\\GitProcessor' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/GitProcessor.php',
|
331 |
+
'WPMailSMTP\\Vendor\\Monolog\\Processor\\IntrospectionProcessor' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php',
|
332 |
+
'WPMailSMTP\\Vendor\\Monolog\\Processor\\MemoryPeakUsageProcessor' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php',
|
333 |
+
'WPMailSMTP\\Vendor\\Monolog\\Processor\\MemoryProcessor' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php',
|
334 |
+
'WPMailSMTP\\Vendor\\Monolog\\Processor\\MemoryUsageProcessor' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php',
|
335 |
+
'WPMailSMTP\\Vendor\\Monolog\\Processor\\MercurialProcessor' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php',
|
336 |
+
'WPMailSMTP\\Vendor\\Monolog\\Processor\\ProcessIdProcessor' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php',
|
337 |
+
'WPMailSMTP\\Vendor\\Monolog\\Processor\\ProcessorInterface' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/ProcessorInterface.php',
|
338 |
+
'WPMailSMTP\\Vendor\\Monolog\\Processor\\PsrLogMessageProcessor' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php',
|
339 |
+
'WPMailSMTP\\Vendor\\Monolog\\Processor\\TagProcessor' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/TagProcessor.php',
|
340 |
+
'WPMailSMTP\\Vendor\\Monolog\\Processor\\UidProcessor' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/UidProcessor.php',
|
341 |
+
'WPMailSMTP\\Vendor\\Monolog\\Processor\\WebProcessor' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/WebProcessor.php',
|
342 |
+
'WPMailSMTP\\Vendor\\Monolog\\Registry' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Registry.php',
|
343 |
+
'WPMailSMTP\\Vendor\\Monolog\\ResettableInterface' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/ResettableInterface.php',
|
344 |
+
'WPMailSMTP\\Vendor\\Monolog\\SignalHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/SignalHandler.php',
|
345 |
+
'WPMailSMTP\\Vendor\\Monolog\\Utils' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Utils.php',
|
346 |
+
'WPMailSMTP\\Vendor\\Psr\\Cache\\CacheException' => __DIR__ . '/../..' . '/vendor_prefixed/psr/cache/src/CacheException.php',
|
347 |
+
'WPMailSMTP\\Vendor\\Psr\\Cache\\CacheItemInterface' => __DIR__ . '/../..' . '/vendor_prefixed/psr/cache/src/CacheItemInterface.php',
|
348 |
+
'WPMailSMTP\\Vendor\\Psr\\Cache\\CacheItemPoolInterface' => __DIR__ . '/../..' . '/vendor_prefixed/psr/cache/src/CacheItemPoolInterface.php',
|
349 |
+
'WPMailSMTP\\Vendor\\Psr\\Cache\\InvalidArgumentException' => __DIR__ . '/../..' . '/vendor_prefixed/psr/cache/src/InvalidArgumentException.php',
|
350 |
+
'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\MessageInterface' => __DIR__ . '/../..' . '/vendor_prefixed/psr/http-message/src/MessageInterface.php',
|
351 |
+
'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\RequestInterface' => __DIR__ . '/../..' . '/vendor_prefixed/psr/http-message/src/RequestInterface.php',
|
352 |
+
'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\ResponseInterface' => __DIR__ . '/../..' . '/vendor_prefixed/psr/http-message/src/ResponseInterface.php',
|
353 |
+
'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\ServerRequestInterface' => __DIR__ . '/../..' . '/vendor_prefixed/psr/http-message/src/ServerRequestInterface.php',
|
354 |
+
'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\StreamInterface' => __DIR__ . '/../..' . '/vendor_prefixed/psr/http-message/src/StreamInterface.php',
|
355 |
+
'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\UploadedFileInterface' => __DIR__ . '/../..' . '/vendor_prefixed/psr/http-message/src/UploadedFileInterface.php',
|
356 |
+
'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\UriInterface' => __DIR__ . '/../..' . '/vendor_prefixed/psr/http-message/src/UriInterface.php',
|
357 |
+
'WPMailSMTP\\Vendor\\Psr\\Log\\AbstractLogger' => __DIR__ . '/../..' . '/vendor_prefixed/psr/log/Psr/Log/AbstractLogger.php',
|
358 |
+
'WPMailSMTP\\Vendor\\Psr\\Log\\InvalidArgumentException' => __DIR__ . '/../..' . '/vendor_prefixed/psr/log/Psr/Log/InvalidArgumentException.php',
|
359 |
+
'WPMailSMTP\\Vendor\\Psr\\Log\\LogLevel' => __DIR__ . '/../..' . '/vendor_prefixed/psr/log/Psr/Log/LogLevel.php',
|
360 |
+
'WPMailSMTP\\Vendor\\Psr\\Log\\LoggerAwareInterface' => __DIR__ . '/../..' . '/vendor_prefixed/psr/log/Psr/Log/LoggerAwareInterface.php',
|
361 |
+
'WPMailSMTP\\Vendor\\Psr\\Log\\LoggerAwareTrait' => __DIR__ . '/../..' . '/vendor_prefixed/psr/log/Psr/Log/LoggerAwareTrait.php',
|
362 |
+
'WPMailSMTP\\Vendor\\Psr\\Log\\LoggerInterface' => __DIR__ . '/../..' . '/vendor_prefixed/psr/log/Psr/Log/LoggerInterface.php',
|
363 |
+
'WPMailSMTP\\Vendor\\Psr\\Log\\LoggerTrait' => __DIR__ . '/../..' . '/vendor_prefixed/psr/log/Psr/Log/LoggerTrait.php',
|
364 |
+
'WPMailSMTP\\Vendor\\Psr\\Log\\NullLogger' => __DIR__ . '/../..' . '/vendor_prefixed/psr/log/Psr/Log/NullLogger.php',
|
365 |
+
'WPMailSMTP\\Vendor\\Psr\\Log\\Test\\DummyTest' => __DIR__ . '/../..' . '/vendor_prefixed/psr/log/Psr/Log/Test/DummyTest.php',
|
366 |
+
'WPMailSMTP\\Vendor\\Psr\\Log\\Test\\LoggerInterfaceTest' => __DIR__ . '/../..' . '/vendor_prefixed/psr/log/Psr/Log/Test/LoggerInterfaceTest.php',
|
367 |
+
'WPMailSMTP\\Vendor\\Psr\\Log\\Test\\TestLogger' => __DIR__ . '/../..' . '/vendor_prefixed/psr/log/Psr/Log/Test/TestLogger.php',
|
368 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\ApiException' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/ApiException.php',
|
369 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\AccountApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/AccountApi.php',
|
370 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\AttributesApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/AttributesApi.php',
|
371 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\ContactsApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ContactsApi.php',
|
372 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\EmailCampaignsApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/EmailCampaignsApi.php',
|
373 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\FoldersApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/FoldersApi.php',
|
374 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\ListsApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ListsApi.php',
|
375 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\ProcessApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ProcessApi.php',
|
376 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\ResellerApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ResellerApi.php',
|
377 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\SMSCampaignsApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/SMSCampaignsApi.php',
|
378 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\SMTPApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/SMTPApi.php',
|
379 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\SendersApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/SendersApi.php',
|
380 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\TransactionalSMSApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/TransactionalSMSApi.php',
|
381 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\WebhooksApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/WebhooksApi.php',
|
382 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Configuration' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Configuration.php',
|
383 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\HeaderSelector' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/HeaderSelector.php',
|
384 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\AbTestCampaignResult' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AbTestCampaignResult.php',
|
385 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\AddChildDomain' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AddChildDomain.php',
|
386 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\AddContactToList' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AddContactToList.php',
|
387 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\AddCredits' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AddCredits.php',
|
388 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateAttribute' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateAttribute.php',
|
389 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateAttributeEnumeration' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateAttributeEnumeration.php',
|
390 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateChild' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateChild.php',
|
391 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateContact' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateContact.php',
|
392 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateDoiContact' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateDoiContact.php',
|
393 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateEmailCampaign' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaign.php',
|
394 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateEmailCampaignRecipients' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignRecipients.php',
|
395 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateEmailCampaignSender' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignSender.php',
|
396 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateList' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateList.php',
|
397 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateModel.php',
|
398 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateReseller' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateReseller.php',
|
399 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSender' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSender.php',
|
400 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSenderIps' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSenderIps.php',
|
401 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSenderModel' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSenderModel.php',
|
402 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmsCampaign' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaign.php',
|
403 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmsCampaignRecipients' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaignRecipients.php',
|
404 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmtpEmail' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmtpEmail.php',
|
405 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmtpTemplate' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplate.php',
|
406 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmtpTemplateSender' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplateSender.php',
|
407 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateUpdateContactModel' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateUpdateContactModel.php',
|
408 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateUpdateFolder' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateUpdateFolder.php',
|
409 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateWebhook' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateWebhook.php',
|
410 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreatedProcessId' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreatedProcessId.php',
|
411 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\DeleteHardbounces' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/DeleteHardbounces.php',
|
412 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\EmailExportRecipients' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/EmailExportRecipients.php',
|
413 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/ErrorModel.php',
|
414 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccount' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccount.php',
|
415 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccountMarketingAutomation' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountMarketingAutomation.php',
|
416 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccountPlan' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountPlan.php',
|
417 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccountRelay' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountRelay.php',
|
418 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccountRelayData' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountRelayData.php',
|
419 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAggregatedReport' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAggregatedReport.php',
|
420 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAttributes' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAttributes.php',
|
421 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAttributesAttributes' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAttributesAttributes.php',
|
422 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAttributesEnumeration' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAttributesEnumeration.php',
|
423 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetCampaignOverview' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetCampaignOverview.php',
|
424 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetCampaignRecipients' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetCampaignRecipients.php',
|
425 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetCampaignStats' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetCampaignStats.php',
|
426 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildAccountCreationStatus' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildAccountCreationStatus.php',
|
427 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildDomain' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildDomain.php',
|
428 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildDomains' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildDomains.php',
|
429 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfo' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfo.php',
|
430 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfoApiKeys' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeys.php',
|
431 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfoApiKeysV2' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV2.php',
|
432 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfoApiKeysV3' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV3.php',
|
433 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfoCredits' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoCredits.php',
|
434 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfoStatistics' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoStatistics.php',
|
435 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildrenList' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildrenList.php',
|
436 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetClient' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetClient.php',
|
437 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStats' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStats.php',
|
438 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStatsClicked' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsClicked.php',
|
439 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStatsOpened' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsOpened.php',
|
440 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStatsTransacAttributes' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsTransacAttributes.php',
|
441 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStatsUnsubscriptions' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsUnsubscriptions.php',
|
442 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactDetails' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactDetails.php',
|
443 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContacts' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContacts.php',
|
444 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetDeviceBrowserStats' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetDeviceBrowserStats.php',
|
445 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailCampaign' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaign.php',
|
446 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailCampaigns' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaigns.php',
|
447 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailEventReport' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReport.php',
|
448 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailEventReportEvents' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReportEvents.php',
|
449 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedCampaignOverview' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverview.php',
|
450 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedCampaignOverviewSender' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverviewSender.php',
|
451 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedCampaignStats' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignStats.php',
|
452 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedClient' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedClient.php',
|
453 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedClientAddress' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedClientAddress.php',
|
454 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetails' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetails.php',
|
455 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatistics' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatistics.php',
|
456 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsClicked' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsClicked.php',
|
457 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsLinks' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsLinks.php',
|
458 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsMessagesSent' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsMessagesSent.php',
|
459 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsOpened' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsOpened.php',
|
460 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsUnsubscriptions' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptions.php',
|
461 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.php',
|
462 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.php',
|
463 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedList' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedList.php',
|
464 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedListCampaignStats' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedListCampaignStats.php',
|
465 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolder' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetFolder.php',
|
466 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolderLists' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetFolderLists.php',
|
467 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolders' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetFolders.php',
|
468 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetIp' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIp.php',
|
469 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetIpFromSender' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIpFromSender.php',
|
470 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetIps' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIps.php',
|
471 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetIpsFromSender' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIpsFromSender.php',
|
472 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetList' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetList.php',
|
473 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetLists' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetLists.php',
|
474 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetProcess' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetProcess.php',
|
475 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetProcesses' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetProcesses.php',
|
476 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetReports' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetReports.php',
|
477 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetReportsReports' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetReportsReports.php',
|
478 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSendersList' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSendersList.php',
|
479 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSendersListIps' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSendersListIps.php',
|
480 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSendersListSenders' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSendersListSenders.php',
|
481 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSharedTemplateUrl' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSharedTemplateUrl.php',
|
482 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsCampaign' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaign.php',
|
483 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsCampaignOverview' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignOverview.php',
|
484 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsCampaignStats' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignStats.php',
|
485 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsCampaigns' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaigns.php',
|
486 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsEventReport' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReport.php',
|
487 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsEventReportEvents' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReportEvents.php',
|
488 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmtpTemplateOverview' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverview.php',
|
489 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmtpTemplateOverviewSender' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverviewSender.php',
|
490 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmtpTemplates' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplates.php',
|
491 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSsoToken' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSsoToken.php',
|
492 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetStatsByBrowser' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetStatsByBrowser.php',
|
493 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetStatsByDevice' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetStatsByDevice.php',
|
494 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetStatsByDomain' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetStatsByDomain.php',
|
495 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacAggregatedSmsReport' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacAggregatedSmsReport.php',
|
496 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacBlockedContacts' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContacts.php',
|
497 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacBlockedContactsContacts' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsContacts.php',
|
498 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacBlockedContactsReason' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsReason.php',
|
499 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacEmailContent' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContent.php',
|
500 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacEmailContentEvents' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContentEvents.php',
|
501 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacEmailsList' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsList.php',
|
502 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacEmailsListTransactionalEmails' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsListTransactionalEmails.php',
|
503 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacSmsReport' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReport.php',
|
504 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacSmsReportReports' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReportReports.php',
|
505 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetWebhook' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetWebhook.php',
|
506 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetWebhooks' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetWebhooks.php',
|
507 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ManageIp' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/ManageIp.php',
|
508 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ModelInterface' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/ModelInterface.php',
|
509 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostContactInfo' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/PostContactInfo.php',
|
510 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostContactInfoContacts' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/PostContactInfoContacts.php',
|
511 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostSendFailed' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/PostSendFailed.php',
|
512 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostSendSmsTestFailed' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/PostSendSmsTestFailed.php',
|
513 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemainingCreditModel' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModel.php',
|
514 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemainingCreditModelChild' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelChild.php',
|
515 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemainingCreditModelReseller' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelReseller.php',
|
516 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemoveContactFromList' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemoveContactFromList.php',
|
517 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemoveCredits' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemoveCredits.php',
|
518 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RequestContactExport' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactExport.php',
|
519 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RequestContactExportCustomContactFilter' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactExportCustomContactFilter.php',
|
520 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RequestContactImport' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactImport.php',
|
521 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RequestContactImportNewList' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactImportNewList.php',
|
522 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RequestSMSRecipientExport' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestSMSRecipientExport.php',
|
523 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendEmail' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendEmail.php',
|
524 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendEmailAttachment' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendEmailAttachment.php',
|
525 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendReport' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendReport.php',
|
526 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendReportEmail' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendReportEmail.php',
|
527 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSms' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSms.php',
|
528 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmail' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmail.php',
|
529 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailAttachment' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailAttachment.php',
|
530 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailBcc' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailBcc.php',
|
531 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailCc' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailCc.php',
|
532 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailReplyTo' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailReplyTo.php',
|
533 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailSender' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailSender.php',
|
534 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailTo' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailTo.php',
|
535 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendTemplateEmail' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTemplateEmail.php',
|
536 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendTestEmail' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTestEmail.php',
|
537 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendTestSms' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTestSms.php',
|
538 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendTransacSms' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTransacSms.php',
|
539 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateAttribute' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateAttribute.php',
|
540 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateAttributeEnumeration' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateAttributeEnumeration.php',
|
541 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateCampaignStatus' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateCampaignStatus.php',
|
542 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateChild' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateChild.php',
|
543 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateChildAccountStatus' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateChildAccountStatus.php',
|
544 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateChildDomain' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateChildDomain.php',
|
545 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateContact' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateContact.php',
|
546 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateEmailCampaign' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaign.php',
|
547 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateEmailCampaignRecipients' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignRecipients.php',
|
548 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateEmailCampaignSender' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignSender.php',
|
549 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateList' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateList.php',
|
550 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateSender' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSender.php',
|
551 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateSmsCampaign' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSmsCampaign.php',
|
552 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateSmtpTemplate' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplate.php',
|
553 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateSmtpTemplateSender' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplateSender.php',
|
554 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateWebhook' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateWebhook.php',
|
555 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UploadImageToGallery' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UploadImageToGallery.php',
|
556 |
+
'WPMailSMTP\\Vendor\\SendinBlue\\Client\\ObjectSerializer' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/ObjectSerializer.php',
|
557 |
+
'WPMailSMTP\\Vendor\\Symfony\\Polyfill\\Intl\\Idn\\Idn' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/polyfill-intl-idn/Idn.php',
|
558 |
+
'WPMailSMTP\\Vendor\\Symfony\\Polyfill\\Mbstring\\Mbstring' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/polyfill-mbstring/Mbstring.php',
|
559 |
+
'WPMailSMTP\\Vendor\\Symfony\\Polyfill\\Php72\\Php72' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/polyfill-php72/Php72.php',
|
560 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\AES' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/AES.php',
|
561 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Base' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Base.php',
|
562 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Blowfish' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Blowfish.php',
|
563 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\DES' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/DES.php',
|
564 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Hash' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Hash.php',
|
565 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\RC2' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/RC2.php',
|
566 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\RC4' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/RC4.php',
|
567 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\RSA' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/RSA.php',
|
568 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Random' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Random.php',
|
569 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Rijndael' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php',
|
570 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\TripleDES' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/TripleDES.php',
|
571 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Twofish' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php',
|
572 |
+
'WPMailSMTP\\Vendor\\phpseclib\\File\\ANSI' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/File/ANSI.php',
|
573 |
+
'WPMailSMTP\\Vendor\\phpseclib\\File\\ASN1' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/File/ASN1.php',
|
574 |
+
'WPMailSMTP\\Vendor\\phpseclib\\File\\ASN1\\Element' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/File/ASN1/Element.php',
|
575 |
+
'WPMailSMTP\\Vendor\\phpseclib\\File\\X509' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/File/X509.php',
|
576 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Math\\BigInteger' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Math/BigInteger.php',
|
577 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Net\\SCP' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Net/SCP.php',
|
578 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Net\\SFTP' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Net/SFTP.php',
|
579 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Net\\SFTP\\Stream' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Net/SFTP/Stream.php',
|
580 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Net\\SSH1' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Net/SSH1.php',
|
581 |
+
'WPMailSMTP\\Vendor\\phpseclib\\Net\\SSH2' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Net/SSH2.php',
|
582 |
+
'WPMailSMTP\\Vendor\\phpseclib\\System\\SSH\\Agent' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/System/SSH/Agent.php',
|
583 |
+
'WPMailSMTP\\Vendor\\phpseclib\\System\\SSH\\Agent\\Identity' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/System/SSH/Agent/Identity.php',
|
584 |
);
|
585 |
|
586 |
public static function getInitializer(ClassLoader $loader)
|
587 |
{
|
588 |
return \Closure::bind(function () use ($loader) {
|
589 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit4505233c9771255f4bcd3288908993ad::$prefixLengthsPsr4;
|
590 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit4505233c9771255f4bcd3288908993ad::$prefixDirsPsr4;
|
591 |
+
$loader->classMap = ComposerStaticInit4505233c9771255f4bcd3288908993ad::$classMap;
|
|
|
592 |
|
593 |
}, null, ClassLoader::class);
|
594 |
}
|
vendor/google/apiclient-services/src/Google/Service/Gmail.php
DELETED
@@ -1,1232 +0,0 @@
|
|
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 |
-
* The Gmail API lets you view and manage Gmail mailbox data like threads,
|
23 |
-
* messages, and labels.</p>
|
24 |
-
*
|
25 |
-
* <p>
|
26 |
-
* For more information about this service, see the API
|
27 |
-
* <a href="https://developers.google.com/gmail/api/" target="_blank">Documentation</a>
|
28 |
-
* </p>
|
29 |
-
*
|
30 |
-
* @author Google, Inc.
|
31 |
-
*/
|
32 |
-
class Google_Service_Gmail extends Google_Service
|
33 |
-
{
|
34 |
-
/** Read, compose, send, and permanently delete all your email from Gmail. */
|
35 |
-
const MAIL_GOOGLE_COM =
|
36 |
-
"https://mail.google.com/";
|
37 |
-
/** Manage drafts and send emails when you interact with the add-on. */
|
38 |
-
const GMAIL_ADDONS_CURRENT_ACTION_COMPOSE =
|
39 |
-
"https://www.googleapis.com/auth/gmail.addons.current.action.compose";
|
40 |
-
/** View your email messages when you interact with the add-on. */
|
41 |
-
const GMAIL_ADDONS_CURRENT_MESSAGE_ACTION =
|
42 |
-
"https://www.googleapis.com/auth/gmail.addons.current.message.action";
|
43 |
-
/** View your email message metadata when the add-on is running. */
|
44 |
-
const GMAIL_ADDONS_CURRENT_MESSAGE_METADATA =
|
45 |
-
"https://www.googleapis.com/auth/gmail.addons.current.message.metadata";
|
46 |
-
/** View your email messages when the add-on is running. */
|
47 |
-
const GMAIL_ADDONS_CURRENT_MESSAGE_READONLY =
|
48 |
-
"https://www.googleapis.com/auth/gmail.addons.current.message.readonly";
|
49 |
-
/** Manage drafts and send emails. */
|
50 |
-
const GMAIL_COMPOSE =
|
51 |
-
"https://www.googleapis.com/auth/gmail.compose";
|
52 |
-
/** Insert mail into your mailbox. */
|
53 |
-
const GMAIL_INSERT =
|
54 |
-
"https://www.googleapis.com/auth/gmail.insert";
|
55 |
-
/** Manage mailbox labels. */
|
56 |
-
const GMAIL_LABELS =
|
57 |
-
"https://www.googleapis.com/auth/gmail.labels";
|
58 |
-
/** View your email message metadata such as labels and headers, but not the email body. */
|
59 |
-
const GMAIL_METADATA =
|
60 |
-
"https://www.googleapis.com/auth/gmail.metadata";
|
61 |
-
/** View and modify but not delete your email. */
|
62 |
-
const GMAIL_MODIFY =
|
63 |
-
"https://www.googleapis.com/auth/gmail.modify";
|
64 |
-
/** View your email messages and settings. */
|
65 |
-
const GMAIL_READONLY =
|
66 |
-
"https://www.googleapis.com/auth/gmail.readonly";
|
67 |
-
/** Send email on your behalf. */
|
68 |
-
const GMAIL_SEND =
|
69 |
-
"https://www.googleapis.com/auth/gmail.send";
|
70 |
-
/** Manage your basic mail settings. */
|
71 |
-
const GMAIL_SETTINGS_BASIC =
|
72 |
-
"https://www.googleapis.com/auth/gmail.settings.basic";
|
73 |
-
/** Manage your sensitive mail settings, including who can manage your mail. */
|
74 |
-
const GMAIL_SETTINGS_SHARING =
|
75 |
-
"https://www.googleapis.com/auth/gmail.settings.sharing";
|
76 |
-
|
77 |
-
public $users;
|
78 |
-
public $users_drafts;
|
79 |
-
public $users_history;
|
80 |
-
public $users_labels;
|
81 |
-
public $users_messages;
|
82 |
-
public $users_messages_attachments;
|
83 |
-
public $users_settings;
|
84 |
-
public $users_settings_delegates;
|
85 |
-
public $users_settings_filters;
|
86 |
-
public $users_settings_forwardingAddresses;
|
87 |
-
public $users_settings_sendAs;
|
88 |
-
public $users_settings_sendAs_smimeInfo;
|
89 |
-
public $users_threads;
|
90 |
-
|
91 |
-
/**
|
92 |
-
* Constructs the internal representation of the Gmail service.
|
93 |
-
*
|
94 |
-
* @param Google_Client $client The client used to deliver requests.
|
95 |
-
* @param string $rootUrl The root URL used for requests to the service.
|
96 |
-
*/
|
97 |
-
public function __construct(Google_Client $client, $rootUrl = null)
|
98 |
-
{
|
99 |
-
parent::__construct($client);
|
100 |
-
$this->rootUrl = $rootUrl ?: 'https://www.googleapis.com/';
|
101 |
-
$this->servicePath = '';
|
102 |
-
$this->batchPath = 'batch/gmail/v1';
|
103 |
-
$this->version = 'v1';
|
104 |
-
$this->serviceName = 'gmail';
|
105 |
-
|
106 |
-
$this->users = new Google_Service_Gmail_Resource_Users(
|
107 |
-
$this,
|
108 |
-
$this->serviceName,
|
109 |
-
'users',
|
110 |
-
array(
|
111 |
-
'methods' => array(
|
112 |
-
'getProfile' => array(
|
113 |
-
'path' => 'gmail/v1/users/{userId}/profile',
|
114 |
-
'httpMethod' => 'GET',
|
115 |
-
'parameters' => array(
|
116 |
-
'userId' => array(
|
117 |
-
'location' => 'path',
|
118 |
-
'type' => 'string',
|
119 |
-
'required' => true,
|
120 |
-
),
|
121 |
-
),
|
122 |
-
),'stop' => array(
|
123 |
-
'path' => 'gmail/v1/users/{userId}/stop',
|
124 |
-
'httpMethod' => 'POST',
|
125 |
-
'parameters' => array(
|
126 |
-
'userId' => array(
|
127 |
-
'location' => 'path',
|
128 |
-
'type' => 'string',
|
129 |
-
'required' => true,
|
130 |
-
),
|
131 |
-
),
|
132 |
-
),'watch' => array(
|
133 |
-
'path' => 'gmail/v1/users/{userId}/watch',
|
134 |
-
'httpMethod' => 'POST',
|
135 |
-
'parameters' => array(
|
136 |
-
'userId' => array(
|
137 |
-
'location' => 'path',
|
138 |
-
'type' => 'string',
|
139 |
-
'required' => true,
|
140 |
-
),
|
141 |
-
),
|
142 |
-
),
|
143 |
-
)
|
144 |
-
)
|
145 |
-
);
|
146 |
-
$this->users_drafts = new Google_Service_Gmail_Resource_UsersDrafts(
|
147 |
-
$this,
|
148 |
-
$this->serviceName,
|
149 |
-
'drafts',
|
150 |
-
array(
|
151 |
-
'methods' => array(
|
152 |
-
'create' => array(
|
153 |
-
'path' => 'gmail/v1/users/{userId}/drafts',
|
154 |
-
'httpMethod' => 'POST',
|
155 |
-
'parameters' => array(
|
156 |
-
'userId' => array(
|
157 |
-
'location' => 'path',
|
158 |
-
'type' => 'string',
|
159 |
-
'required' => true,
|
160 |
-
),
|
161 |
-
),
|
162 |
-
),'delete' => array(
|
163 |
-
'path' => 'gmail/v1/users/{userId}/drafts/{id}',
|
164 |
-
'httpMethod' => 'DELETE',
|
165 |
-
'parameters' => array(
|
166 |
-
'userId' => array(
|
167 |
-
'location' => 'path',
|
168 |
-
'type' => 'string',
|
169 |
-
'required' => true,
|
170 |
-
),
|
171 |
-
'id' => array(
|
172 |
-
'location' => 'path',
|
173 |
-
'type' => 'string',
|
174 |
-
'required' => true,
|
175 |
-
),
|
176 |
-
),
|
177 |
-
),'get' => array(
|
178 |
-
'path' => 'gmail/v1/users/{userId}/drafts/{id}',
|
179 |
-
'httpMethod' => 'GET',
|
180 |
-
'parameters' => array(
|
181 |
-
'userId' => array(
|
182 |
-
'location' => 'path',
|
183 |
-
'type' => 'string',
|
184 |
-
'required' => true,
|
185 |
-
),
|
186 |
-
'id' => array(
|
187 |
-
'location' => 'path',
|
188 |
-
'type' => 'string',
|
189 |
-
'required' => true,
|
190 |
-
),
|
191 |
-
'format' => array(
|
192 |
-
'location' => 'query',
|
193 |
-
'type' => 'string',
|
194 |
-
),
|
195 |
-
),
|
196 |
-
),'list' => array(
|
197 |
-
'path' => 'gmail/v1/users/{userId}/drafts',
|
198 |
-
'httpMethod' => 'GET',
|
199 |
-
'parameters' => array(
|
200 |
-
'userId' => array(
|
201 |
-
'location' => 'path',
|
202 |
-
'type' => 'string',
|
203 |
-
'required' => true,
|
204 |
-
),
|
205 |
-
'pageToken' => array(
|
206 |
-
'location' => 'query',
|
207 |
-
'type' => 'string',
|
208 |
-
),
|
209 |
-
'maxResults' => array(
|
210 |
-
'location' => 'query',
|
211 |
-
'type' => 'integer',
|
212 |
-
),
|
213 |
-
'q' => array(
|
214 |
-
'location' => 'query',
|
215 |
-
'type' => 'string',
|
216 |
-
),
|
217 |
-
'includeSpamTrash' => array(
|
218 |
-
'location' => 'query',
|
219 |
-
'type' => 'boolean',
|
220 |
-
),
|
221 |
-
),
|
222 |
-
),'send' => array(
|
223 |
-
'path' => 'gmail/v1/users/{userId}/drafts/send',
|
224 |
-
'httpMethod' => 'POST',
|
225 |
-
'parameters' => array(
|
226 |
-
'userId' => array(
|
227 |
-
'location' => 'path',
|
228 |
-
'type' => 'string',
|
229 |
-
'required' => true,
|
230 |
-
),
|
231 |
-
),
|
232 |
-
),'update' => array(
|
233 |
-
'path' => 'gmail/v1/users/{userId}/drafts/{id}',
|
234 |
-
'httpMethod' => 'PUT',
|
235 |
-
'parameters' => array(
|
236 |
-
'userId' => array(
|
237 |
-
'location' => 'path',
|
238 |
-
'type' => 'string',
|
239 |
-
'required' => true,
|
240 |
-
),
|
241 |
-
'id' => array(
|
242 |
-
'location' => 'path',
|
243 |
-
'type' => 'string',
|
244 |
-
'required' => true,
|
245 |
-
),
|
246 |
-
),
|
247 |
-
),
|
248 |
-
)
|
249 |
-
)
|
250 |
-
);
|
251 |
-
$this->users_history = new Google_Service_Gmail_Resource_UsersHistory(
|
252 |
-
$this,
|
253 |
-
$this->serviceName,
|
254 |
-
'history',
|
255 |
-
array(
|
256 |
-
'methods' => array(
|
257 |
-
'list' => array(
|
258 |
-
'path' => 'gmail/v1/users/{userId}/history',
|
259 |
-
'httpMethod' => 'GET',
|
260 |
-
'parameters' => array(
|
261 |
-
'userId' => array(
|
262 |
-
'location' => 'path',
|
263 |
-
'type' => 'string',
|
264 |
-
'required' => true,
|
265 |
-
),
|
266 |
-
'historyTypes' => array(
|
267 |
-
'location' => 'query',
|
268 |
-
'type' => 'string',
|
269 |
-
'repeated' => true,
|
270 |
-
),
|
271 |
-
'startHistoryId' => array(
|
272 |
-
'location' => 'query',
|
273 |
-
'type' => 'string',
|
274 |
-
),
|
275 |
-
'labelId' => array(
|
276 |
-
'location' => 'query',
|
277 |
-
'type' => 'string',
|
278 |
-
),
|
279 |
-
'pageToken' => array(
|
280 |
-
'location' => 'query',
|
281 |
-
'type' => 'string',
|
282 |
-
),
|
283 |
-
'maxResults' => array(
|
284 |
-
'location' => 'query',
|
285 |
-
'type' => 'integer',
|
286 |
-
),
|
287 |
-
),
|
288 |
-
),
|
289 |
-
)
|
290 |
-
)
|
291 |
-
);
|
292 |
-
$this->users_labels = new Google_Service_Gmail_Resource_UsersLabels(
|
293 |
-
$this,
|
294 |
-
$this->serviceName,
|
295 |
-
'labels',
|
296 |
-
array(
|
297 |
-
'methods' => array(
|
298 |
-
'create' => array(
|
299 |
-
'path' => 'gmail/v1/users/{userId}/labels',
|
300 |
-
'httpMethod' => 'POST',
|
301 |
-
'parameters' => array(
|
302 |
-
'userId' => array(
|
303 |
-
'location' => 'path',
|
304 |
-
'type' => 'string',
|
305 |
-
'required' => true,
|
306 |
-
),
|
307 |
-
),
|
308 |
-
),'delete' => array(
|
309 |
-
'path' => 'gmail/v1/users/{userId}/labels/{id}',
|
310 |
-
'httpMethod' => 'DELETE',
|
311 |
-
'parameters' => array(
|
312 |
-
'userId' => array(
|
313 |
-
'location' => 'path',
|
314 |
-
'type' => 'string',
|
315 |
-
'required' => true,
|
316 |
-
),
|
317 |
-
'id' => array(
|
318 |
-
'location' => 'path',
|
319 |
-
'type' => 'string',
|
320 |
-
'required' => true,
|
321 |
-
),
|
322 |
-
),
|
323 |
-
),'get' => array(
|
324 |
-
'path' => 'gmail/v1/users/{userId}/labels/{id}',
|
325 |
-
'httpMethod' => 'GET',
|
326 |
-
'parameters' => array(
|
327 |
-
'userId' => array(
|
328 |
-
'location' => 'path',
|
329 |
-
'type' => 'string',
|
330 |
-
'required' => true,
|
331 |
-
),
|
332 |
-
'id' => array(
|
333 |
-
'location' => 'path',
|
334 |
-
'type' => 'string',
|
335 |
-
'required' => true,
|
336 |
-
),
|
337 |
-
),
|
338 |
-
),'list' => array(
|
339 |
-
'path' => 'gmail/v1/users/{userId}/labels',
|
340 |
-
'httpMethod' => 'GET',
|
341 |
-
'parameters' => array(
|
342 |
-
'userId' => array(
|
343 |
-
'location' => 'path',
|
344 |
-
'type' => 'string',
|
345 |
-
'required' => true,
|
346 |
-
),
|
347 |
-
),
|
348 |
-
),'patch' => array(
|
349 |
-
'path' => 'gmail/v1/users/{userId}/labels/{id}',
|
350 |
-
'httpMethod' => 'PATCH',
|
351 |
-
'parameters' => array(
|
352 |
-
'userId' => array(
|
353 |
-
'location' => 'path',
|
354 |
-
'type' => 'string',
|
355 |
-
'required' => true,
|
356 |
-
),
|
357 |
-
'id' => array(
|
358 |
-
'location' => 'path',
|
359 |
-
'type' => 'string',
|
360 |
-
'required' => true,
|
361 |
-
),
|
362 |
-
),
|
363 |
-
),'update' => array(
|
364 |
-
'path' => 'gmail/v1/users/{userId}/labels/{id}',
|
365 |
-
'httpMethod' => 'PUT',
|
366 |
-
'parameters' => array(
|
367 |
-
'userId' => array(
|
368 |
-
'location' => 'path',
|
369 |
-
'type' => 'string',
|
370 |
-
'required' => true,
|
371 |
-
),
|
372 |
-
'id' => array(
|
373 |
-
'location' => 'path',
|
374 |
-
'type' => 'string',
|
375 |
-
'required' => true,
|
376 |
-
),
|
377 |
-
),
|
378 |
-
),
|
379 |
-
)
|
380 |
-
)
|
381 |
-
);
|
382 |
-
$this->users_messages = new Google_Service_Gmail_Resource_UsersMessages(
|
383 |
-
$this,
|
384 |
-
$this->serviceName,
|
385 |
-
'messages',
|
386 |
-
array(
|
387 |
-
'methods' => array(
|
388 |
-
'batchDelete' => array(
|
389 |
-
'path' => 'gmail/v1/users/{userId}/messages/batchDelete',
|
390 |
-
'httpMethod' => 'POST',
|
391 |
-
'parameters' => array(
|
392 |
-
'userId' => array(
|
393 |
-
'location' => 'path',
|
394 |
-
'type' => 'string',
|
395 |
-
'required' => true,
|
396 |
-
),
|
397 |
-
),
|
398 |
-
),'batchModify' => array(
|
399 |
-
'path' => 'gmail/v1/users/{userId}/messages/batchModify',
|
400 |
-
'httpMethod' => 'POST',
|
401 |
-
'parameters' => array(
|
402 |
-
'userId' => array(
|
403 |
-
'location' => 'path',
|
404 |
-
'type' => 'string',
|
405 |
-
'required' => true,
|
406 |
-
),
|
407 |
-
),
|
408 |
-
),'delete' => array(
|
409 |
-
'path' => 'gmail/v1/users/{userId}/messages/{id}',
|
410 |
-
'httpMethod' => 'DELETE',
|
411 |
-
'parameters' => array(
|
412 |
-
'userId' => array(
|
413 |
-
'location' => 'path',
|
414 |
-
'type' => 'string',
|
415 |
-
'required' => true,
|
416 |
-
),
|
417 |
-
'id' => array(
|
418 |
-
'location' => 'path',
|
419 |
-
'type' => 'string',
|
420 |
-
'required' => true,
|
421 |
-
),
|
422 |
-
),
|
423 |
-
),'get' => array(
|
424 |
-
'path' => 'gmail/v1/users/{userId}/messages/{id}',
|
425 |
-
'httpMethod' => 'GET',
|
426 |
-
'parameters' => array(
|
427 |
-
'userId' => array(
|
428 |
-
'location' => 'path',
|
429 |
-
'type' => 'string',
|
430 |
-
'required' => true,
|
431 |
-
),
|
432 |
-
'id' => array(
|
433 |
-
'location' => 'path',
|
434 |
-
'type' => 'string',
|
435 |
-
'required' => true,
|
436 |
-
),
|
437 |
-
'format' => array(
|
438 |
-
'location' => 'query',
|
439 |
-
'type' => 'string',
|
440 |
-
),
|
441 |
-
'metadataHeaders' => array(
|
442 |
-
'location' => 'query',
|
443 |
-
'type' => 'string',
|
444 |
-
'repeated' => true,
|
445 |
-
),
|
446 |
-
),
|
447 |
-
),'import' => array(
|
448 |
-
'path' => 'gmail/v1/users/{userId}/messages/import',
|
449 |
-
'httpMethod' => 'POST',
|
450 |
-
'parameters' => array(
|
451 |
-
'userId' => array(
|
452 |
-
'location' => 'path',
|
453 |
-
'type' => 'string',
|
454 |
-
'required' => true,
|
455 |
-
),
|
456 |
-
'processForCalendar' => array(
|
457 |
-
'location' => 'query',
|
458 |
-
'type' => 'boolean',
|
459 |
-
),
|
460 |
-
'deleted' => array(
|
461 |
-
'location' => 'query',
|
462 |
-
'type' => 'boolean',
|
463 |
-
),
|
464 |
-
'internalDateSource' => array(
|
465 |
-
'location' => 'query',
|
466 |
-
'type' => 'string',
|
467 |
-
),
|
468 |
-
'neverMarkSpam' => array(
|
469 |
-
'location' => 'query',
|
470 |
-
'type' => 'boolean',
|
471 |
-
),
|
472 |
-
),
|
473 |
-
),'insert' => array(
|
474 |
-
'path' => 'gmail/v1/users/{userId}/messages',
|
475 |
-
'httpMethod' => 'POST',
|
476 |
-
'parameters' => array(
|
477 |
-
'userId' => array(
|
478 |
-
'location' => 'path',
|
479 |
-
'type' => 'string',
|
480 |
-
'required' => true,
|
481 |
-
),
|
482 |
-
'internalDateSource' => array(
|
483 |
-
'location' => 'query',
|
484 |
-
'type' => 'string',
|
485 |
-
),
|
486 |
-
'deleted' => array(
|
487 |
-
'location' => 'query',
|
488 |
-
'type' => 'boolean',
|
489 |
-
),
|
490 |
-
),
|
491 |
-
),'list' => array(
|
492 |
-
'path' => 'gmail/v1/users/{userId}/messages',
|
493 |
-
'httpMethod' => 'GET',
|
494 |
-
'parameters' => array(
|
495 |
-
'userId' => array(
|
496 |
-
'location' => 'path',
|
497 |
-
'type' => 'string',
|
498 |
-
'required' => true,
|
499 |
-
),
|
500 |
-
'labelIds' => array(
|
501 |
-
'location' => 'query',
|
502 |
-
'type' => 'string',
|
503 |
-
'repeated' => true,
|
504 |
-
),
|
505 |
-
'pageToken' => array(
|
506 |
-
'location' => 'query',
|
507 |
-
'type' => 'string',
|
508 |
-
),
|
509 |
-
'q' => array(
|
510 |
-
'location' => 'query',
|
511 |
-
'type' => 'string',
|
512 |
-
),
|
513 |
-
'maxResults' => array(
|
514 |
-
'location' => 'query',
|
515 |
-
'type' => 'integer',
|
516 |
-
),
|
517 |
-
'includeSpamTrash' => array(
|
518 |
-
'location' => 'query',
|
519 |
-
'type' => 'boolean',
|
520 |
-
),
|
521 |
-
),
|
522 |
-
),'modify' => array(
|
523 |
-
'path' => 'gmail/v1/users/{userId}/messages/{id}/modify',
|
524 |
-
'httpMethod' => 'POST',
|
525 |
-
'parameters' => array(
|
526 |
-
'userId' => array(
|
527 |
-
'location' => 'path',
|
528 |
-
'type' => 'string',
|
529 |
-
'required' => true,
|
530 |
-
),
|
531 |
-
'id' => array(
|
532 |
-
'location' => 'path',
|
533 |
-
'type' => 'string',
|
534 |
-
'required' => true,
|
535 |
-
),
|
536 |
-
),
|
537 |
-
),'send' => array(
|
538 |
-
'path' => 'gmail/v1/users/{userId}/messages/send',
|
539 |
-
'httpMethod' => 'POST',
|
540 |
-
'parameters' => array(
|
541 |
-
'userId' => array(
|
542 |
-
'location' => 'path',
|
543 |
-
'type' => 'string',
|
544 |
-
'required' => true,
|
545 |
-
),
|
546 |
-
),
|
547 |
-
),'trash' => array(
|
548 |
-
'path' => 'gmail/v1/users/{userId}/messages/{id}/trash',
|
549 |
-
'httpMethod' => 'POST',
|
550 |
-
'parameters' => array(
|
551 |
-
'userId' => array(
|
552 |
-
'location' => 'path',
|
553 |
-
'type' => 'string',
|
554 |
-
'required' => true,
|
555 |
-
),
|
556 |
-
'id' => array(
|
557 |
-
'location' => 'path',
|
558 |
-
'type' => 'string',
|
559 |
-
'required' => true,
|
560 |
-
),
|
561 |
-
),
|
562 |
-
),'untrash' => array(
|
563 |
-
'path' => 'gmail/v1/users/{userId}/messages/{id}/untrash',
|
564 |
-
'httpMethod' => 'POST',
|
565 |
-
'parameters' => array(
|
566 |
-
'userId' => array(
|
567 |
-
'location' => 'path',
|
568 |
-
'type' => 'string',
|
569 |
-
'required' => true,
|
570 |
-
),
|
571 |
-
'id' => array(
|
572 |
-
'location' => 'path',
|
573 |
-
'type' => 'string',
|
574 |
-
'required' => true,
|
575 |
-
),
|
576 |
-
),
|
577 |
-
),
|
578 |
-
)
|
579 |
-
)
|
580 |
-
);
|
581 |
-
$this->users_messages_attachments = new Google_Service_Gmail_Resource_UsersMessagesAttachments(
|
582 |
-
$this,
|
583 |
-
$this->serviceName,
|
584 |
-
'attachments',
|
585 |
-
array(
|
586 |
-
'methods' => array(
|
587 |
-
'get' => array(
|
588 |
-
'path' => 'gmail/v1/users/{userId}/messages/{messageId}/attachments/{id}',
|
589 |
-
'httpMethod' => 'GET',
|
590 |
-
'parameters' => array(
|
591 |
-
'userId' => array(
|
592 |
-
'location' => 'path',
|
593 |
-
'type' => 'string',
|
594 |
-
'required' => true,
|
595 |
-
),
|
596 |
-
'messageId' => array(
|
597 |
-
'location' => 'path',
|
598 |
-
'type' => 'string',
|
599 |
-
'required' => true,
|
600 |
-
),
|
601 |
-
'id' => array(
|
602 |
-
'location' => 'path',
|
603 |
-
'type' => 'string',
|
604 |
-
'required' => true,
|
605 |
-
),
|
606 |
-
),
|
607 |
-
),
|
608 |
-
)
|
609 |
-
)
|
610 |
-
);
|
611 |
-
$this->users_settings = new Google_Service_Gmail_Resource_UsersSettings(
|
612 |
-
$this,
|
613 |
-
$this->serviceName,
|
614 |
-
'settings',
|
615 |
-
array(
|
616 |
-
'methods' => array(
|
617 |
-
'getAutoForwarding' => array(
|
618 |
-
'path' => 'gmail/v1/users/{userId}/settings/autoForwarding',
|
619 |
-
'httpMethod' => 'GET',
|
620 |
-
'parameters' => array(
|
621 |
-
'userId' => array(
|
622 |
-
'location' => 'path',
|
623 |
-
'type' => 'string',
|
624 |
-
'required' => true,
|
625 |
-
),
|
626 |
-
),
|
627 |
-
),'getImap' => array(
|
628 |
-
'path' => 'gmail/v1/users/{userId}/settings/imap',
|
629 |
-
'httpMethod' => 'GET',
|
630 |
-
'parameters' => array(
|
631 |
-
'userId' => array(
|
632 |
-
'location' => 'path',
|
633 |
-
'type' => 'string',
|
634 |
-
'required' => true,
|
635 |
-
),
|
636 |
-
),
|
637 |
-
),'getLanguage' => array(
|
638 |
-
'path' => 'gmail/v1/users/{userId}/settings/language',
|
639 |
-
'httpMethod' => 'GET',
|
640 |
-
'parameters' => array(
|
641 |
-
'userId' => array(
|
642 |
-
'location' => 'path',
|
643 |
-
'type' => 'string',
|
644 |
-
'required' => true,
|
645 |
-
),
|
646 |
-
),
|
647 |
-
),'getPop' => array(
|
648 |
-
'path' => 'gmail/v1/users/{userId}/settings/pop',
|
649 |
-
'httpMethod' => 'GET',
|
650 |
-
'parameters' => array(
|
651 |
-
'userId' => array(
|
652 |
-
'location' => 'path',
|
653 |
-
'type' => 'string',
|
654 |
-
'required' => true,
|
655 |
-
),
|
656 |
-
),
|
657 |
-
),'getVacation' => array(
|
658 |
-
'path' => 'gmail/v1/users/{userId}/settings/vacation',
|
659 |
-
'httpMethod' => 'GET',
|
660 |
-
'parameters' => array(
|
661 |
-
'userId' => array(
|
662 |
-
'location' => 'path',
|
663 |
-
'type' => 'string',
|
664 |
-
'required' => true,
|
665 |
-
),
|
666 |
-
),
|
667 |
-
),'updateAutoForwarding' => array(
|
668 |
-
'path' => 'gmail/v1/users/{userId}/settings/autoForwarding',
|
669 |
-
'httpMethod' => 'PUT',
|
670 |
-
'parameters' => array(
|
671 |
-
'userId' => array(
|
672 |
-
'location' => 'path',
|
673 |
-
'type' => 'string',
|
674 |
-
'required' => true,
|
675 |
-
),
|
676 |
-
),
|
677 |
-
),'updateImap' => array(
|
678 |
-
'path' => 'gmail/v1/users/{userId}/settings/imap',
|
679 |
-
'httpMethod' => 'PUT',
|
680 |
-
'parameters' => array(
|
681 |
-
'userId' => array(
|
682 |
-
'location' => 'path',
|
683 |
-
'type' => 'string',
|
684 |
-
'required' => true,
|
685 |
-
),
|
686 |
-
),
|
687 |
-
),'updateLanguage' => array(
|
688 |
-
'path' => 'gmail/v1/users/{userId}/settings/language',
|
689 |
-
'httpMethod' => 'PUT',
|
690 |
-
'parameters' => array(
|
691 |
-
'userId' => array(
|
692 |
-
'location' => 'path',
|
693 |
-
'type' => 'string',
|
694 |
-
'required' => true,
|
695 |
-
),
|
696 |
-
),
|
697 |
-
),'updatePop' => array(
|
698 |
-
'path' => 'gmail/v1/users/{userId}/settings/pop',
|
699 |
-
'httpMethod' => 'PUT',
|
700 |
-
'parameters' => array(
|
701 |
-
'userId' => array(
|
702 |
-
'location' => 'path',
|
703 |
-
'type' => 'string',
|
704 |
-
'required' => true,
|
705 |
-
),
|
706 |
-
),
|
707 |
-
),'updateVacation' => array(
|
708 |
-
'path' => 'gmail/v1/users/{userId}/settings/vacation',
|
709 |
-
'httpMethod' => 'PUT',
|
710 |
-
'parameters' => array(
|
711 |
-
'userId' => array(
|
712 |
-
'location' => 'path',
|
713 |
-
'type' => 'string',
|
714 |
-
'required' => true,
|
715 |
-
),
|
716 |
-
),
|
717 |
-
),
|
718 |
-
)
|
719 |
-
)
|
720 |
-
);
|
721 |
-
$this->users_settings_delegates = new Google_Service_Gmail_Resource_UsersSettingsDelegates(
|
722 |
-
$this,
|
723 |
-
$this->serviceName,
|
724 |
-
'delegates',
|
725 |
-
array(
|
726 |
-
'methods' => array(
|
727 |
-
'create' => array(
|
728 |
-
'path' => 'gmail/v1/users/{userId}/settings/delegates',
|
729 |
-
'httpMethod' => 'POST',
|
730 |
-
'parameters' => array(
|
731 |
-
'userId' => array(
|
732 |
-
'location' => 'path',
|
733 |
-
'type' => 'string',
|
734 |
-
'required' => true,
|
735 |
-
),
|
736 |
-
),
|
737 |
-
),'delete' => array(
|
738 |
-
'path' => 'gmail/v1/users/{userId}/settings/delegates/{delegateEmail}',
|
739 |
-
'httpMethod' => 'DELETE',
|
740 |
-
'parameters' => array(
|
741 |
-
'userId' => array(
|
742 |
-
'location' => 'path',
|
743 |
-
'type' => 'string',
|
744 |
-
'required' => true,
|
745 |
-
),
|
746 |
-
'delegateEmail' => array(
|
747 |
-
'location' => 'path',
|
748 |
-
'type' => 'string',
|
749 |
-
'required' => true,
|
750 |
-
),
|
751 |
-
),
|
752 |
-
),'get' => array(
|
753 |
-
'path' => 'gmail/v1/users/{userId}/settings/delegates/{delegateEmail}',
|
754 |
-
'httpMethod' => 'GET',
|
755 |
-
'parameters' => array(
|
756 |
-
'userId' => array(
|
757 |
-
'location' => 'path',
|
758 |
-
'type' => 'string',
|
759 |
-
'required' => true,
|
760 |
-
),
|
761 |
-
'delegateEmail' => array(
|
762 |
-
'location' => 'path',
|
763 |
-
'type' => 'string',
|
764 |
-
'required' => true,
|
765 |
-
),
|
766 |
-
),
|
767 |
-
),'list' => array(
|
768 |
-
'path' => 'gmail/v1/users/{userId}/settings/delegates',
|
769 |
-
'httpMethod' => 'GET',
|
770 |
-
'parameters' => array(
|
771 |
-
'userId' => array(
|
772 |
-
'location' => 'path',
|
773 |
-
'type' => 'string',
|
774 |
-
'required' => true,
|
775 |
-
),
|
776 |
-
),
|
777 |
-
),
|
778 |
-
)
|
779 |
-
)
|
780 |
-
);
|
781 |
-
$this->users_settings_filters = new Google_Service_Gmail_Resource_UsersSettingsFilters(
|
782 |
-
$this,
|
783 |
-
$this->serviceName,
|
784 |
-
'filters',
|
785 |
-
array(
|
786 |
-
'methods' => array(
|
787 |
-
'create' => array(
|
788 |
-
'path' => 'gmail/v1/users/{userId}/settings/filters',
|
789 |
-
'httpMethod' => 'POST',
|
790 |
-
'parameters' => array(
|
791 |
-
'userId' => array(
|
792 |
-
'location' => 'path',
|
793 |
-
'type' => 'string',
|
794 |
-
'required' => true,
|
795 |
-
),
|
796 |
-
),
|
797 |
-
),'delete' => array(
|
798 |
-
'path' => 'gmail/v1/users/{userId}/settings/filters/{id}',
|
799 |
-
'httpMethod' => 'DELETE',
|
800 |
-
'parameters' => array(
|
801 |
-
'userId' => array(
|
802 |
-
'location' => 'path',
|
803 |
-
'type' => 'string',
|
804 |
-
'required' => true,
|
805 |
-
),
|
806 |
-
'id' => array(
|
807 |
-
'location' => 'path',
|
808 |
-
'type' => 'string',
|
809 |
-
'required' => true,
|
810 |
-
),
|
811 |
-
),
|
812 |
-
),'get' => array(
|
813 |
-
'path' => 'gmail/v1/users/{userId}/settings/filters/{id}',
|
814 |
-
'httpMethod' => 'GET',
|
815 |
-
'parameters' => array(
|
816 |
-
'userId' => array(
|
817 |
-
'location' => 'path',
|
818 |
-
'type' => 'string',
|
819 |
-
'required' => true,
|
820 |
-
),
|
821 |
-
'id' => array(
|
822 |
-
'location' => 'path',
|
823 |
-
'type' => 'string',
|
824 |
-
'required' => true,
|
825 |
-
),
|
826 |
-
),
|
827 |
-
),'list' => array(
|
828 |
-
'path' => 'gmail/v1/users/{userId}/settings/filters',
|
829 |
-
'httpMethod' => 'GET',
|
830 |
-
'parameters' => array(
|
831 |
-
'userId' => array(
|
832 |
-
'location' => 'path',
|
833 |
-
'type' => 'string',
|
834 |
-
'required' => true,
|
835 |
-
),
|
836 |
-
),
|
837 |
-
),
|
838 |
-
)
|
839 |
-
)
|
840 |
-
);
|
841 |
-
$this->users_settings_forwardingAddresses = new Google_Service_Gmail_Resource_UsersSettingsForwardingAddresses(
|
842 |
-
$this,
|
843 |
-
$this->serviceName,
|
844 |
-
'forwardingAddresses',
|
845 |
-
array(
|
846 |
-
'methods' => array(
|
847 |
-
'create' => array(
|
848 |
-
'path' => 'gmail/v1/users/{userId}/settings/forwardingAddresses',
|
849 |
-
'httpMethod' => 'POST',
|
850 |
-
'parameters' => array(
|
851 |
-
'userId' => array(
|
852 |
-
'location' => 'path',
|
853 |
-
'type' => 'string',
|
854 |
-
'required' => true,
|
855 |
-
),
|
856 |
-
),
|
857 |
-
),'delete' => array(
|
858 |
-
'path' => 'gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}',
|
859 |
-
'httpMethod' => 'DELETE',
|
860 |
-
'parameters' => array(
|
861 |
-
'userId' => array(
|
862 |
-
'location' => 'path',
|
863 |
-
'type' => 'string',
|
864 |
-
'required' => true,
|
865 |
-
),
|
866 |
-
'forwardingEmail' => array(
|
867 |
-
'location' => 'path',
|
868 |
-
'type' => 'string',
|
869 |
-
'required' => true,
|
870 |
-
),
|
871 |
-
),
|
872 |
-
),'get' => array(
|
873 |
-
'path' => 'gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}',
|
874 |
-
'httpMethod' => 'GET',
|
875 |
-
'parameters' => array(
|
876 |
-
'userId' => array(
|
877 |
-
'location' => 'path',
|
878 |
-
'type' => 'string',
|
879 |
-
'required' => true,
|
880 |
-
),
|
881 |
-
'forwardingEmail' => array(
|
882 |
-
'location' => 'path',
|
883 |
-
'type' => 'string',
|
884 |
-
'required' => true,
|
885 |
-
),
|
886 |
-
),
|
887 |
-
),'list' => array(
|
888 |
-
'path' => 'gmail/v1/users/{userId}/settings/forwardingAddresses',
|
889 |
-
'httpMethod' => 'GET',
|
890 |
-
'parameters' => array(
|
891 |
-
'userId' => array(
|
892 |
-
'location' => 'path',
|
893 |
-
'type' => 'string',
|
894 |
-
'required' => true,
|
895 |
-
),
|
896 |
-
),
|
897 |
-
),
|
898 |
-
)
|
899 |
-
)
|
900 |
-
);
|
901 |
-
$this->users_settings_sendAs = new Google_Service_Gmail_Resource_UsersSettingsSendAs(
|
902 |
-
$this,
|
903 |
-
$this->serviceName,
|
904 |
-
'sendAs',
|
905 |
-
array(
|
906 |
-
'methods' => array(
|
907 |
-
'create' => array(
|
908 |
-
'path' => 'gmail/v1/users/{userId}/settings/sendAs',
|
909 |
-
'httpMethod' => 'POST',
|
910 |
-
'parameters' => array(
|
911 |
-
'userId' => array(
|
912 |
-
'location' => 'path',
|
913 |
-
'type' => 'string',
|
914 |
-
'required' => true,
|
915 |
-
),
|
916 |
-
),
|
917 |
-
),'delete' => array(
|
918 |
-
'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}',
|
919 |
-
'httpMethod' => 'DELETE',
|
920 |
-
'parameters' => array(
|
921 |
-
'userId' => array(
|
922 |
-
'location' => 'path',
|
923 |
-
'type' => 'string',
|
924 |
-
'required' => true,
|
925 |
-
),
|
926 |
-
'sendAsEmail' => array(
|
927 |
-
'location' => 'path',
|
928 |
-
'type' => 'string',
|
929 |
-
'required' => true,
|
930 |
-
),
|
931 |
-
),
|
932 |
-
),'get' => array(
|
933 |
-
'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}',
|
934 |
-
'httpMethod' => 'GET',
|
935 |
-
'parameters' => array(
|
936 |
-
'userId' => array(
|
937 |
-
'location' => 'path',
|
938 |
-
'type' => 'string',
|
939 |
-
'required' => true,
|
940 |
-
),
|
941 |
-
'sendAsEmail' => array(
|
942 |
-
'location' => 'path',
|
943 |
-
'type' => 'string',
|
944 |
-
'required' => true,
|
945 |
-
),
|
946 |
-
),
|
947 |
-
),'list' => array(
|
948 |
-
'path' => 'gmail/v1/users/{userId}/settings/sendAs',
|
949 |
-
'httpMethod' => 'GET',
|
950 |
-
'parameters' => array(
|
951 |
-
'userId' => array(
|
952 |
-
'location' => 'path',
|
953 |
-
'type' => 'string',
|
954 |
-
'required' => true,
|
955 |
-
),
|
956 |
-
),
|
957 |
-
),'patch' => array(
|
958 |
-
'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}',
|
959 |
-
'httpMethod' => 'PATCH',
|
960 |
-
'parameters' => array(
|
961 |
-
'userId' => array(
|
962 |
-
'location' => 'path',
|
963 |
-
'type' => 'string',
|
964 |
-
'required' => true,
|
965 |
-
),
|
966 |
-
'sendAsEmail' => array(
|
967 |
-
'location' => 'path',
|
968 |
-
'type' => 'string',
|
969 |
-
'required' => true,
|
970 |
-
),
|
971 |
-
),
|
972 |
-
),'update' => array(
|
973 |
-
'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}',
|
974 |
-
'httpMethod' => 'PUT',
|
975 |
-
'parameters' => array(
|
976 |
-
'userId' => array(
|
977 |
-
'location' => 'path',
|
978 |
-
'type' => 'string',
|
979 |
-
'required' => true,
|
980 |
-
),
|
981 |
-
'sendAsEmail' => array(
|
982 |
-
'location' => 'path',
|
983 |
-
'type' => 'string',
|
984 |
-
'required' => true,
|
985 |
-
),
|
986 |
-
),
|
987 |
-
),'verify' => array(
|
988 |
-
'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/verify',
|
989 |
-
'httpMethod' => 'POST',
|
990 |
-
'parameters' => array(
|
991 |
-
'userId' => array(
|
992 |
-
'location' => 'path',
|
993 |
-
'type' => 'string',
|
994 |
-
'required' => true,
|
995 |
-
),
|
996 |
-
'sendAsEmail' => array(
|
997 |
-
'location' => 'path',
|
998 |
-
'type' => 'string',
|
999 |
-
'required' => true,
|
1000 |
-
),
|
1001 |
-
),
|
1002 |
-
),
|
1003 |
-
)
|
1004 |
-
)
|
1005 |
-
);
|
1006 |
-
$this->users_settings_sendAs_smimeInfo = new Google_Service_Gmail_Resource_UsersSettingsSendAsSmimeInfo(
|
1007 |
-
$this,
|
1008 |
-
$this->serviceName,
|
1009 |
-
'smimeInfo',
|
1010 |
-
array(
|
1011 |
-
'methods' => array(
|
1012 |
-
'delete' => array(
|
1013 |
-
'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}',
|
1014 |
-
'httpMethod' => 'DELETE',
|
1015 |
-
'parameters' => array(
|
1016 |
-
'userId' => array(
|
1017 |
-
'location' => 'path',
|
1018 |
-
'type' => 'string',
|
1019 |
-
'required' => true,
|
1020 |
-
),
|
1021 |
-
'sendAsEmail' => array(
|
1022 |
-
'location' => 'path',
|
1023 |
-
'type' => 'string',
|
1024 |
-
'required' => true,
|
1025 |
-
),
|
1026 |
-
'id' => array(
|
1027 |
-
'location' => 'path',
|
1028 |
-
'type' => 'string',
|
1029 |
-
'required' => true,
|
1030 |
-
),
|
1031 |
-
),
|
1032 |
-
),'get' => array(
|
1033 |
-
'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}',
|
1034 |
-
'httpMethod' => 'GET',
|
1035 |
-
'parameters' => array(
|
1036 |
-
'userId' => array(
|
1037 |
-
'location' => 'path',
|
1038 |
-
'type' => 'string',
|
1039 |
-
'required' => true,
|
1040 |
-
),
|
1041 |
-
'sendAsEmail' => array(
|
1042 |
-
'location' => 'path',
|
1043 |
-
'type' => 'string',
|
1044 |
-
'required' => true,
|
1045 |
-
),
|
1046 |
-
'id' => array(
|
1047 |
-
'location' => 'path',
|
1048 |
-
'type' => 'string',
|
1049 |
-
'required' => true,
|
1050 |
-
),
|
1051 |
-
),
|
1052 |
-
),'insert' => array(
|
1053 |
-
'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo',
|
1054 |
-
'httpMethod' => 'POST',
|
1055 |
-
'parameters' => array(
|
1056 |
-
'userId' => array(
|
1057 |
-
'location' => 'path',
|
1058 |
-
'type' => 'string',
|
1059 |
-
'required' => true,
|
1060 |
-
),
|
1061 |
-
'sendAsEmail' => array(
|
1062 |
-
'location' => 'path',
|
1063 |
-
'type' => 'string',
|
1064 |
-
'required' => true,
|
1065 |
-
),
|
1066 |
-
),
|
1067 |
-
),'list' => array(
|
1068 |
-
'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo',
|
1069 |
-
'httpMethod' => 'GET',
|
1070 |
-
'parameters' => array(
|
1071 |
-
'userId' => array(
|
1072 |
-
'location' => 'path',
|
1073 |
-
'type' => 'string',
|
1074 |
-
'required' => true,
|
1075 |
-
),
|
1076 |
-
'sendAsEmail' => array(
|
1077 |
-
'location' => 'path',
|
1078 |
-
'type' => 'string',
|
1079 |
-
'required' => true,
|
1080 |
-
),
|
1081 |
-
),
|
1082 |
-
),'setDefault' => array(
|
1083 |
-
'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}/setDefault',
|
1084 |
-
'httpMethod' => 'POST',
|
1085 |
-
'parameters' => array(
|
1086 |
-
'userId' => array(
|
1087 |
-
'location' => 'path',
|
1088 |
-
'type' => 'string',
|
1089 |
-
'required' => true,
|
1090 |
-
),
|
1091 |
-
'sendAsEmail' => array(
|
1092 |
-
'location' => 'path',
|
1093 |
-
'type' => 'string',
|
1094 |
-
'required' => true,
|
1095 |
-
),
|
1096 |
-
'id' => array(
|
1097 |
-
'location' => 'path',
|
1098 |
-
'type' => 'string',
|
1099 |
-
'required' => true,
|
1100 |
-
),
|
1101 |
-
),
|
1102 |
-
),
|
1103 |
-
)
|
1104 |
-
)
|
1105 |
-
);
|
1106 |
-
$this->users_threads = new Google_Service_Gmail_Resource_UsersThreads(
|
1107 |
-
$this,
|
1108 |
-
$this->serviceName,
|
1109 |
-
'threads',
|
1110 |
-
array(
|
1111 |
-
'methods' => array(
|
1112 |
-
'delete' => array(
|
1113 |
-
'path' => 'gmail/v1/users/{userId}/threads/{id}',
|
1114 |
-
'httpMethod' => 'DELETE',
|
1115 |
-
'parameters' => array(
|
1116 |
-
'userId' => array(
|
1117 |
-
'location' => 'path',
|
1118 |
-
'type' => 'string',
|
1119 |
-
'required' => true,
|
1120 |
-
),
|
1121 |
-
'id' => array(
|
1122 |
-
'location' => 'path',
|
1123 |
-
'type' => 'string',
|
1124 |
-
'required' => true,
|
1125 |
-
),
|
1126 |
-
),
|
1127 |
-
),'get' => array(
|
1128 |
-
'path' => 'gmail/v1/users/{userId}/threads/{id}',
|
1129 |
-
'httpMethod' => 'GET',
|
1130 |
-
'parameters' => array(
|
1131 |
-
'userId' => array(
|
1132 |
-
'location' => 'path',
|
1133 |
-
'type' => 'string',
|
1134 |
-
'required' => true,
|
1135 |
-
),
|
1136 |
-
'id' => array(
|
1137 |
-
'location' => 'path',
|
1138 |
-
'type' => 'string',
|
1139 |
-
'required' => true,
|
1140 |
-
),
|
1141 |
-
'format' => array(
|
1142 |
-
'location' => 'query',
|
1143 |
-
'type' => 'string',
|
1144 |
-
),
|
1145 |
-
'metadataHeaders' => array(
|
1146 |
-
'location' => 'query',
|
1147 |
-
'type' => 'string',
|
1148 |
-
'repeated' => true,
|
1149 |
-
),
|
1150 |
-
),
|
1151 |
-
),'list' => array(
|
1152 |
-
'path' => 'gmail/v1/users/{userId}/threads',
|
1153 |
-
'httpMethod' => 'GET',
|
1154 |
-
'parameters' => array(
|
1155 |
-
'userId' => array(
|
1156 |
-
'location' => 'path',
|
1157 |
-
'type' => 'string',
|
1158 |
-
'required' => true,
|
1159 |
-
),
|
1160 |
-
'maxResults' => array(
|
1161 |
-
'location' => 'query',
|
1162 |
-
'type' => 'integer',
|
1163 |
-
),
|
1164 |
-
'includeSpamTrash' => array(
|
1165 |
-
'location' => 'query',
|
1166 |
-
'type' => 'boolean',
|
1167 |
-
),
|
1168 |
-
'q' => array(
|
1169 |
-
'location' => 'query',
|
1170 |
-
'type' => 'string',
|
1171 |
-
),
|
1172 |
-
'pageToken' => array(
|
1173 |
-
'location' => 'query',
|
1174 |
-
'type' => 'string',
|
1175 |
-
),
|
1176 |
-
'labelIds' => array(
|
1177 |
-
'location' => 'query',
|
1178 |
-
'type' => 'string',
|
1179 |
-
'repeated' => true,
|
1180 |
-
),
|
1181 |
-
),
|
1182 |
-
),'modify' => array(
|
1183 |
-
'path' => 'gmail/v1/users/{userId}/threads/{id}/modify',
|
1184 |
-
'httpMethod' => 'POST',
|
1185 |
-
'parameters' => array(
|
1186 |
-
'userId' => array(
|
1187 |
-
'location' => 'path',
|
1188 |
-
'type' => 'string',
|
1189 |
-
'required' => true,
|
1190 |
-
),
|
1191 |
-
'id' => array(
|
1192 |
-
'location' => 'path',
|
1193 |
-
'type' => 'string',
|
1194 |
-
'required' => true,
|
1195 |
-
),
|
1196 |
-
),
|
1197 |
-
),'trash' => array(
|
1198 |
-
'path' => 'gmail/v1/users/{userId}/threads/{id}/trash',
|
1199 |
-
'httpMethod' => 'POST',
|
1200 |
-
'parameters' => array(
|
1201 |
-
'userId' => array(
|
1202 |
-
'location' => 'path',
|
1203 |
-
'type' => 'string',
|
1204 |
-
'required' => true,
|
1205 |
-
),
|
1206 |
-
'id' => array(
|
1207 |
-
'location' => 'path',
|
1208 |
-
'type' => 'string',
|
1209 |
-
'required' => true,
|
1210 |
-
),
|
1211 |
-
),
|
1212 |
-
),'untrash' => array(
|
1213 |
-
'path' => 'gmail/v1/users/{userId}/threads/{id}/untrash',
|
1214 |
-
'httpMethod' => 'POST',
|
1215 |
-
'parameters' => array(
|
1216 |
-
'userId' => array(
|
1217 |
-
'location' => 'path',
|
1218 |
-
'type' => 'string',
|
1219 |
-
'required' => true,
|
1220 |
-
),
|
1221 |
-
'id' => array(
|
1222 |
-
'location' => 'path',
|
1223 |
-
'type' => 'string',
|
1224 |
-
'required' => true,
|
1225 |
-
),
|
1226 |
-
),
|
1227 |
-
),
|
1228 |
-
)
|
1229 |
-
)
|
1230 |
-
);
|
1231 |
-
}
|
1232 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/AutoForwarding.php
DELETED
@@ -1,48 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_AutoForwarding extends Google_Model
|
19 |
-
{
|
20 |
-
public $disposition;
|
21 |
-
public $emailAddress;
|
22 |
-
public $enabled;
|
23 |
-
|
24 |
-
public function setDisposition($disposition)
|
25 |
-
{
|
26 |
-
$this->disposition = $disposition;
|
27 |
-
}
|
28 |
-
public function getDisposition()
|
29 |
-
{
|
30 |
-
return $this->disposition;
|
31 |
-
}
|
32 |
-
public function setEmailAddress($emailAddress)
|
33 |
-
{
|
34 |
-
$this->emailAddress = $emailAddress;
|
35 |
-
}
|
36 |
-
public function getEmailAddress()
|
37 |
-
{
|
38 |
-
return $this->emailAddress;
|
39 |
-
}
|
40 |
-
public function setEnabled($enabled)
|
41 |
-
{
|
42 |
-
$this->enabled = $enabled;
|
43 |
-
}
|
44 |
-
public function getEnabled()
|
45 |
-
{
|
46 |
-
return $this->enabled;
|
47 |
-
}
|
48 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/BatchDeleteMessagesRequest.php
DELETED
@@ -1,31 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_BatchDeleteMessagesRequest extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'ids';
|
21 |
-
public $ids;
|
22 |
-
|
23 |
-
public function setIds($ids)
|
24 |
-
{
|
25 |
-
$this->ids = $ids;
|
26 |
-
}
|
27 |
-
public function getIds()
|
28 |
-
{
|
29 |
-
return $this->ids;
|
30 |
-
}
|
31 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/BatchModifyMessagesRequest.php
DELETED
@@ -1,49 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_BatchModifyMessagesRequest extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'removeLabelIds';
|
21 |
-
public $addLabelIds;
|
22 |
-
public $ids;
|
23 |
-
public $removeLabelIds;
|
24 |
-
|
25 |
-
public function setAddLabelIds($addLabelIds)
|
26 |
-
{
|
27 |
-
$this->addLabelIds = $addLabelIds;
|
28 |
-
}
|
29 |
-
public function getAddLabelIds()
|
30 |
-
{
|
31 |
-
return $this->addLabelIds;
|
32 |
-
}
|
33 |
-
public function setIds($ids)
|
34 |
-
{
|
35 |
-
$this->ids = $ids;
|
36 |
-
}
|
37 |
-
public function getIds()
|
38 |
-
{
|
39 |
-
return $this->ids;
|
40 |
-
}
|
41 |
-
public function setRemoveLabelIds($removeLabelIds)
|
42 |
-
{
|
43 |
-
$this->removeLabelIds = $removeLabelIds;
|
44 |
-
}
|
45 |
-
public function getRemoveLabelIds()
|
46 |
-
{
|
47 |
-
return $this->removeLabelIds;
|
48 |
-
}
|
49 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/Delegate.php
DELETED
@@ -1,39 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_Delegate extends Google_Model
|
19 |
-
{
|
20 |
-
public $delegateEmail;
|
21 |
-
public $verificationStatus;
|
22 |
-
|
23 |
-
public function setDelegateEmail($delegateEmail)
|
24 |
-
{
|
25 |
-
$this->delegateEmail = $delegateEmail;
|
26 |
-
}
|
27 |
-
public function getDelegateEmail()
|
28 |
-
{
|
29 |
-
return $this->delegateEmail;
|
30 |
-
}
|
31 |
-
public function setVerificationStatus($verificationStatus)
|
32 |
-
{
|
33 |
-
$this->verificationStatus = $verificationStatus;
|
34 |
-
}
|
35 |
-
public function getVerificationStatus()
|
36 |
-
{
|
37 |
-
return $this->verificationStatus;
|
38 |
-
}
|
39 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/Draft.php
DELETED
@@ -1,46 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_Draft extends Google_Model
|
19 |
-
{
|
20 |
-
public $id;
|
21 |
-
protected $messageType = 'Google_Service_Gmail_Message';
|
22 |
-
protected $messageDataType = '';
|
23 |
-
|
24 |
-
public function setId($id)
|
25 |
-
{
|
26 |
-
$this->id = $id;
|
27 |
-
}
|
28 |
-
public function getId()
|
29 |
-
{
|
30 |
-
return $this->id;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @param Google_Service_Gmail_Message
|
34 |
-
*/
|
35 |
-
public function setMessage(Google_Service_Gmail_Message $message)
|
36 |
-
{
|
37 |
-
$this->message = $message;
|
38 |
-
}
|
39 |
-
/**
|
40 |
-
* @return Google_Service_Gmail_Message
|
41 |
-
*/
|
42 |
-
public function getMessage()
|
43 |
-
{
|
44 |
-
return $this->message;
|
45 |
-
}
|
46 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/Filter.php
DELETED
@@ -1,62 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_Filter extends Google_Model
|
19 |
-
{
|
20 |
-
protected $actionType = 'Google_Service_Gmail_FilterAction';
|
21 |
-
protected $actionDataType = '';
|
22 |
-
protected $criteriaType = 'Google_Service_Gmail_FilterCriteria';
|
23 |
-
protected $criteriaDataType = '';
|
24 |
-
public $id;
|
25 |
-
|
26 |
-
/**
|
27 |
-
* @param Google_Service_Gmail_FilterAction
|
28 |
-
*/
|
29 |
-
public function setAction(Google_Service_Gmail_FilterAction $action)
|
30 |
-
{
|
31 |
-
$this->action = $action;
|
32 |
-
}
|
33 |
-
/**
|
34 |
-
* @return Google_Service_Gmail_FilterAction
|
35 |
-
*/
|
36 |
-
public function getAction()
|
37 |
-
{
|
38 |
-
return $this->action;
|
39 |
-
}
|
40 |
-
/**
|
41 |
-
* @param Google_Service_Gmail_FilterCriteria
|
42 |
-
*/
|
43 |
-
public function setCriteria(Google_Service_Gmail_FilterCriteria $criteria)
|
44 |
-
{
|
45 |
-
$this->criteria = $criteria;
|
46 |
-
}
|
47 |
-
/**
|
48 |
-
* @return Google_Service_Gmail_FilterCriteria
|
49 |
-
*/
|
50 |
-
public function getCriteria()
|
51 |
-
{
|
52 |
-
return $this->criteria;
|
53 |
-
}
|
54 |
-
public function setId($id)
|
55 |
-
{
|
56 |
-
$this->id = $id;
|
57 |
-
}
|
58 |
-
public function getId()
|
59 |
-
{
|
60 |
-
return $this->id;
|
61 |
-
}
|
62 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/FilterAction.php
DELETED
@@ -1,49 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_FilterAction extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'removeLabelIds';
|
21 |
-
public $addLabelIds;
|
22 |
-
public $forward;
|
23 |
-
public $removeLabelIds;
|
24 |
-
|
25 |
-
public function setAddLabelIds($addLabelIds)
|
26 |
-
{
|
27 |
-
$this->addLabelIds = $addLabelIds;
|
28 |
-
}
|
29 |
-
public function getAddLabelIds()
|
30 |
-
{
|
31 |
-
return $this->addLabelIds;
|
32 |
-
}
|
33 |
-
public function setForward($forward)
|
34 |
-
{
|
35 |
-
$this->forward = $forward;
|
36 |
-
}
|
37 |
-
public function getForward()
|
38 |
-
{
|
39 |
-
return $this->forward;
|
40 |
-
}
|
41 |
-
public function setRemoveLabelIds($removeLabelIds)
|
42 |
-
{
|
43 |
-
$this->removeLabelIds = $removeLabelIds;
|
44 |
-
}
|
45 |
-
public function getRemoveLabelIds()
|
46 |
-
{
|
47 |
-
return $this->removeLabelIds;
|
48 |
-
}
|
49 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/FilterCriteria.php
DELETED
@@ -1,102 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_FilterCriteria extends Google_Model
|
19 |
-
{
|
20 |
-
public $excludeChats;
|
21 |
-
public $from;
|
22 |
-
public $hasAttachment;
|
23 |
-
public $negatedQuery;
|
24 |
-
public $query;
|
25 |
-
public $size;
|
26 |
-
public $sizeComparison;
|
27 |
-
public $subject;
|
28 |
-
public $to;
|
29 |
-
|
30 |
-
public function setExcludeChats($excludeChats)
|
31 |
-
{
|
32 |
-
$this->excludeChats = $excludeChats;
|
33 |
-
}
|
34 |
-
public function getExcludeChats()
|
35 |
-
{
|
36 |
-
return $this->excludeChats;
|
37 |
-
}
|
38 |
-
public function setFrom($from)
|
39 |
-
{
|
40 |
-
$this->from = $from;
|
41 |
-
}
|
42 |
-
public function getFrom()
|
43 |
-
{
|
44 |
-
return $this->from;
|
45 |
-
}
|
46 |
-
public function setHasAttachment($hasAttachment)
|
47 |
-
{
|
48 |
-
$this->hasAttachment = $hasAttachment;
|
49 |
-
}
|
50 |
-
public function getHasAttachment()
|
51 |
-
{
|
52 |
-
return $this->hasAttachment;
|
53 |
-
}
|
54 |
-
public function setNegatedQuery($negatedQuery)
|
55 |
-
{
|
56 |
-
$this->negatedQuery = $negatedQuery;
|
57 |
-
}
|
58 |
-
public function getNegatedQuery()
|
59 |
-
{
|
60 |
-
return $this->negatedQuery;
|
61 |
-
}
|
62 |
-
public function setQuery($query)
|
63 |
-
{
|
64 |
-
$this->query = $query;
|
65 |
-
}
|
66 |
-
public function getQuery()
|
67 |
-
{
|
68 |
-
return $this->query;
|
69 |
-
}
|
70 |
-
public function setSize($size)
|
71 |
-
{
|
72 |
-
$this->size = $size;
|
73 |
-
}
|
74 |
-
public function getSize()
|
75 |
-
{
|
76 |
-
return $this->size;
|
77 |
-
}
|
78 |
-
public function setSizeComparison($sizeComparison)
|
79 |
-
{
|
80 |
-
$this->sizeComparison = $sizeComparison;
|
81 |
-
}
|
82 |
-
public function getSizeComparison()
|
83 |
-
{
|
84 |
-
return $this->sizeComparison;
|
85 |
-
}
|
86 |
-
public function setSubject($subject)
|
87 |
-
{
|
88 |
-
$this->subject = $subject;
|
89 |
-
}
|
90 |
-
public function getSubject()
|
91 |
-
{
|
92 |
-
return $this->subject;
|
93 |
-
}
|
94 |
-
public function setTo($to)
|
95 |
-
{
|
96 |
-
$this->to = $to;
|
97 |
-
}
|
98 |
-
public function getTo()
|
99 |
-
{
|
100 |
-
return $this->to;
|
101 |
-
}
|
102 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/ForwardingAddress.php
DELETED
@@ -1,39 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_ForwardingAddress extends Google_Model
|
19 |
-
{
|
20 |
-
public $forwardingEmail;
|
21 |
-
public $verificationStatus;
|
22 |
-
|
23 |
-
public function setForwardingEmail($forwardingEmail)
|
24 |
-
{
|
25 |
-
$this->forwardingEmail = $forwardingEmail;
|
26 |
-
}
|
27 |
-
public function getForwardingEmail()
|
28 |
-
{
|
29 |
-
return $this->forwardingEmail;
|
30 |
-
}
|
31 |
-
public function setVerificationStatus($verificationStatus)
|
32 |
-
{
|
33 |
-
$this->verificationStatus = $verificationStatus;
|
34 |
-
}
|
35 |
-
public function getVerificationStatus()
|
36 |
-
{
|
37 |
-
return $this->verificationStatus;
|
38 |
-
}
|
39 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/History.php
DELETED
@@ -1,111 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_History extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'messagesDeleted';
|
21 |
-
public $id;
|
22 |
-
protected $labelsAddedType = 'Google_Service_Gmail_HistoryLabelAdded';
|
23 |
-
protected $labelsAddedDataType = 'array';
|
24 |
-
protected $labelsRemovedType = 'Google_Service_Gmail_HistoryLabelRemoved';
|
25 |
-
protected $labelsRemovedDataType = 'array';
|
26 |
-
protected $messagesType = 'Google_Service_Gmail_Message';
|
27 |
-
protected $messagesDataType = 'array';
|
28 |
-
protected $messagesAddedType = 'Google_Service_Gmail_HistoryMessageAdded';
|
29 |
-
protected $messagesAddedDataType = 'array';
|
30 |
-
protected $messagesDeletedType = 'Google_Service_Gmail_HistoryMessageDeleted';
|
31 |
-
protected $messagesDeletedDataType = 'array';
|
32 |
-
|
33 |
-
public function setId($id)
|
34 |
-
{
|
35 |
-
$this->id = $id;
|
36 |
-
}
|
37 |
-
public function getId()
|
38 |
-
{
|
39 |
-
return $this->id;
|
40 |
-
}
|
41 |
-
/**
|
42 |
-
* @param Google_Service_Gmail_HistoryLabelAdded
|
43 |
-
*/
|
44 |
-
public function setLabelsAdded($labelsAdded)
|
45 |
-
{
|
46 |
-
$this->labelsAdded = $labelsAdded;
|
47 |
-
}
|
48 |
-
/**
|
49 |
-
* @return Google_Service_Gmail_HistoryLabelAdded
|
50 |
-
*/
|
51 |
-
public function getLabelsAdded()
|
52 |
-
{
|
53 |
-
return $this->labelsAdded;
|
54 |
-
}
|
55 |
-
/**
|
56 |
-
* @param Google_Service_Gmail_HistoryLabelRemoved
|
57 |
-
*/
|
58 |
-
public function setLabelsRemoved($labelsRemoved)
|
59 |
-
{
|
60 |
-
$this->labelsRemoved = $labelsRemoved;
|
61 |
-
}
|
62 |
-
/**
|
63 |
-
* @return Google_Service_Gmail_HistoryLabelRemoved
|
64 |
-
*/
|
65 |
-
public function getLabelsRemoved()
|
66 |
-
{
|
67 |
-
return $this->labelsRemoved;
|
68 |
-
}
|
69 |
-
/**
|
70 |
-
* @param Google_Service_Gmail_Message
|
71 |
-
*/
|
72 |
-
public function setMessages($messages)
|
73 |
-
{
|
74 |
-
$this->messages = $messages;
|
75 |
-
}
|
76 |
-
/**
|
77 |
-
* @return Google_Service_Gmail_Message
|
78 |
-
*/
|
79 |
-
public function getMessages()
|
80 |
-
{
|
81 |
-
return $this->messages;
|
82 |
-
}
|
83 |
-
/**
|
84 |
-
* @param Google_Service_Gmail_HistoryMessageAdded
|
85 |
-
*/
|
86 |
-
public function setMessagesAdded($messagesAdded)
|
87 |
-
{
|
88 |
-
$this->messagesAdded = $messagesAdded;
|
89 |
-
}
|
90 |
-
/**
|
91 |
-
* @return Google_Service_Gmail_HistoryMessageAdded
|
92 |
-
*/
|
93 |
-
public function getMessagesAdded()
|
94 |
-
{
|
95 |
-
return $this->messagesAdded;
|
96 |
-
}
|
97 |
-
/**
|
98 |
-
* @param Google_Service_Gmail_HistoryMessageDeleted
|
99 |
-
*/
|
100 |
-
public function setMessagesDeleted($messagesDeleted)
|
101 |
-
{
|
102 |
-
$this->messagesDeleted = $messagesDeleted;
|
103 |
-
}
|
104 |
-
/**
|
105 |
-
* @return Google_Service_Gmail_HistoryMessageDeleted
|
106 |
-
*/
|
107 |
-
public function getMessagesDeleted()
|
108 |
-
{
|
109 |
-
return $this->messagesDeleted;
|
110 |
-
}
|
111 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelAdded.php
DELETED
@@ -1,47 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_HistoryLabelAdded extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'labelIds';
|
21 |
-
public $labelIds;
|
22 |
-
protected $messageType = 'Google_Service_Gmail_Message';
|
23 |
-
protected $messageDataType = '';
|
24 |
-
|
25 |
-
public function setLabelIds($labelIds)
|
26 |
-
{
|
27 |
-
$this->labelIds = $labelIds;
|
28 |
-
}
|
29 |
-
public function getLabelIds()
|
30 |
-
{
|
31 |
-
return $this->labelIds;
|
32 |
-
}
|
33 |
-
/**
|
34 |
-
* @param Google_Service_Gmail_Message
|
35 |
-
*/
|
36 |
-
public function setMessage(Google_Service_Gmail_Message $message)
|
37 |
-
{
|
38 |
-
$this->message = $message;
|
39 |
-
}
|
40 |
-
/**
|
41 |
-
* @return Google_Service_Gmail_Message
|
42 |
-
*/
|
43 |
-
public function getMessage()
|
44 |
-
{
|
45 |
-
return $this->message;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelRemoved.php
DELETED
@@ -1,47 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_HistoryLabelRemoved extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'labelIds';
|
21 |
-
public $labelIds;
|
22 |
-
protected $messageType = 'Google_Service_Gmail_Message';
|
23 |
-
protected $messageDataType = '';
|
24 |
-
|
25 |
-
public function setLabelIds($labelIds)
|
26 |
-
{
|
27 |
-
$this->labelIds = $labelIds;
|
28 |
-
}
|
29 |
-
public function getLabelIds()
|
30 |
-
{
|
31 |
-
return $this->labelIds;
|
32 |
-
}
|
33 |
-
/**
|
34 |
-
* @param Google_Service_Gmail_Message
|
35 |
-
*/
|
36 |
-
public function setMessage(Google_Service_Gmail_Message $message)
|
37 |
-
{
|
38 |
-
$this->message = $message;
|
39 |
-
}
|
40 |
-
/**
|
41 |
-
* @return Google_Service_Gmail_Message
|
42 |
-
*/
|
43 |
-
public function getMessage()
|
44 |
-
{
|
45 |
-
return $this->message;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageAdded.php
DELETED
@@ -1,37 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_HistoryMessageAdded extends Google_Model
|
19 |
-
{
|
20 |
-
protected $messageType = 'Google_Service_Gmail_Message';
|
21 |
-
protected $messageDataType = '';
|
22 |
-
|
23 |
-
/**
|
24 |
-
* @param Google_Service_Gmail_Message
|
25 |
-
*/
|
26 |
-
public function setMessage(Google_Service_Gmail_Message $message)
|
27 |
-
{
|
28 |
-
$this->message = $message;
|
29 |
-
}
|
30 |
-
/**
|
31 |
-
* @return Google_Service_Gmail_Message
|
32 |
-
*/
|
33 |
-
public function getMessage()
|
34 |
-
{
|
35 |
-
return $this->message;
|
36 |
-
}
|
37 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageDeleted.php
DELETED
@@ -1,37 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_HistoryMessageDeleted extends Google_Model
|
19 |
-
{
|
20 |
-
protected $messageType = 'Google_Service_Gmail_Message';
|
21 |
-
protected $messageDataType = '';
|
22 |
-
|
23 |
-
/**
|
24 |
-
* @param Google_Service_Gmail_Message
|
25 |
-
*/
|
26 |
-
public function setMessage(Google_Service_Gmail_Message $message)
|
27 |
-
{
|
28 |
-
$this->message = $message;
|
29 |
-
}
|
30 |
-
/**
|
31 |
-
* @return Google_Service_Gmail_Message
|
32 |
-
*/
|
33 |
-
public function getMessage()
|
34 |
-
{
|
35 |
-
return $this->message;
|
36 |
-
}
|
37 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/ImapSettings.php
DELETED
@@ -1,57 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_ImapSettings extends Google_Model
|
19 |
-
{
|
20 |
-
public $autoExpunge;
|
21 |
-
public $enabled;
|
22 |
-
public $expungeBehavior;
|
23 |
-
public $maxFolderSize;
|
24 |
-
|
25 |
-
public function setAutoExpunge($autoExpunge)
|
26 |
-
{
|
27 |
-
$this->autoExpunge = $autoExpunge;
|
28 |
-
}
|
29 |
-
public function getAutoExpunge()
|
30 |
-
{
|
31 |
-
return $this->autoExpunge;
|
32 |
-
}
|
33 |
-
public function setEnabled($enabled)
|
34 |
-
{
|
35 |
-
$this->enabled = $enabled;
|
36 |
-
}
|
37 |
-
public function getEnabled()
|
38 |
-
{
|
39 |
-
return $this->enabled;
|
40 |
-
}
|
41 |
-
public function setExpungeBehavior($expungeBehavior)
|
42 |
-
{
|
43 |
-
$this->expungeBehavior = $expungeBehavior;
|
44 |
-
}
|
45 |
-
public function getExpungeBehavior()
|
46 |
-
{
|
47 |
-
return $this->expungeBehavior;
|
48 |
-
}
|
49 |
-
public function setMaxFolderSize($maxFolderSize)
|
50 |
-
{
|
51 |
-
$this->maxFolderSize = $maxFolderSize;
|
52 |
-
}
|
53 |
-
public function getMaxFolderSize()
|
54 |
-
{
|
55 |
-
return $this->maxFolderSize;
|
56 |
-
}
|
57 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/Label.php
DELETED
@@ -1,118 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_Label extends Google_Model
|
19 |
-
{
|
20 |
-
protected $colorType = 'Google_Service_Gmail_LabelColor';
|
21 |
-
protected $colorDataType = '';
|
22 |
-
public $id;
|
23 |
-
public $labelListVisibility;
|
24 |
-
public $messageListVisibility;
|
25 |
-
public $messagesTotal;
|
26 |
-
public $messagesUnread;
|
27 |
-
public $name;
|
28 |
-
public $threadsTotal;
|
29 |
-
public $threadsUnread;
|
30 |
-
public $type;
|
31 |
-
|
32 |
-
/**
|
33 |
-
* @param Google_Service_Gmail_LabelColor
|
34 |
-
*/
|
35 |
-
public function setColor(Google_Service_Gmail_LabelColor $color)
|
36 |
-
{
|
37 |
-
$this->color = $color;
|
38 |
-
}
|
39 |
-
/**
|
40 |
-
* @return Google_Service_Gmail_LabelColor
|
41 |
-
*/
|
42 |
-
public function getColor()
|
43 |
-
{
|
44 |
-
return $this->color;
|
45 |
-
}
|
46 |
-
public function setId($id)
|
47 |
-
{
|
48 |
-
$this->id = $id;
|
49 |
-
}
|
50 |
-
public function getId()
|
51 |
-
{
|
52 |
-
return $this->id;
|
53 |
-
}
|
54 |
-
public function setLabelListVisibility($labelListVisibility)
|
55 |
-
{
|
56 |
-
$this->labelListVisibility = $labelListVisibility;
|
57 |
-
}
|
58 |
-
public function getLabelListVisibility()
|
59 |
-
{
|
60 |
-
return $this->labelListVisibility;
|
61 |
-
}
|
62 |
-
public function setMessageListVisibility($messageListVisibility)
|
63 |
-
{
|
64 |
-
$this->messageListVisibility = $messageListVisibility;
|
65 |
-
}
|
66 |
-
public function getMessageListVisibility()
|
67 |
-
{
|
68 |
-
return $this->messageListVisibility;
|
69 |
-
}
|
70 |
-
public function setMessagesTotal($messagesTotal)
|
71 |
-
{
|
72 |
-
$this->messagesTotal = $messagesTotal;
|
73 |
-
}
|
74 |
-
public function getMessagesTotal()
|
75 |
-
{
|
76 |
-
return $this->messagesTotal;
|
77 |
-
}
|
78 |
-
public function setMessagesUnread($messagesUnread)
|
79 |
-
{
|
80 |
-
$this->messagesUnread = $messagesUnread;
|
81 |
-
}
|
82 |
-
public function getMessagesUnread()
|
83 |
-
{
|
84 |
-
return $this->messagesUnread;
|
85 |
-
}
|
86 |
-
public function setName($name)
|
87 |
-
{
|
88 |
-
$this->name = $name;
|
89 |
-
}
|
90 |
-
public function getName()
|
91 |
-
{
|
92 |
-
return $this->name;
|
93 |
-
}
|
94 |
-
public function setThreadsTotal($threadsTotal)
|
95 |
-
{
|
96 |
-
$this->threadsTotal = $threadsTotal;
|
97 |
-
}
|
98 |
-
public function getThreadsTotal()
|
99 |
-
{
|
100 |
-
return $this->threadsTotal;
|
101 |
-
}
|
102 |
-
public function setThreadsUnread($threadsUnread)
|
103 |
-
{
|
104 |
-
$this->threadsUnread = $threadsUnread;
|
105 |
-
}
|
106 |
-
public function getThreadsUnread()
|
107 |
-
{
|
108 |
-
return $this->threadsUnread;
|
109 |
-
}
|
110 |
-
public function setType($type)
|
111 |
-
{
|
112 |
-
$this->type = $type;
|
113 |
-
}
|
114 |
-
public function getType()
|
115 |
-
{
|
116 |
-
return $this->type;
|
117 |
-
}
|
118 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/LabelColor.php
DELETED
@@ -1,39 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_LabelColor extends Google_Model
|
19 |
-
{
|
20 |
-
public $backgroundColor;
|
21 |
-
public $textColor;
|
22 |
-
|
23 |
-
public function setBackgroundColor($backgroundColor)
|
24 |
-
{
|
25 |
-
$this->backgroundColor = $backgroundColor;
|
26 |
-
}
|
27 |
-
public function getBackgroundColor()
|
28 |
-
{
|
29 |
-
return $this->backgroundColor;
|
30 |
-
}
|
31 |
-
public function setTextColor($textColor)
|
32 |
-
{
|
33 |
-
$this->textColor = $textColor;
|
34 |
-
}
|
35 |
-
public function getTextColor()
|
36 |
-
{
|
37 |
-
return $this->textColor;
|
38 |
-
}
|
39 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/LanguageSettings.php
DELETED
@@ -1,30 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_LanguageSettings extends Google_Model
|
19 |
-
{
|
20 |
-
public $displayLanguage;
|
21 |
-
|
22 |
-
public function setDisplayLanguage($displayLanguage)
|
23 |
-
{
|
24 |
-
$this->displayLanguage = $displayLanguage;
|
25 |
-
}
|
26 |
-
public function getDisplayLanguage()
|
27 |
-
{
|
28 |
-
return $this->displayLanguage;
|
29 |
-
}
|
30 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/ListDelegatesResponse.php
DELETED
@@ -1,38 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_ListDelegatesResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'delegates';
|
21 |
-
protected $delegatesType = 'Google_Service_Gmail_Delegate';
|
22 |
-
protected $delegatesDataType = 'array';
|
23 |
-
|
24 |
-
/**
|
25 |
-
* @param Google_Service_Gmail_Delegate
|
26 |
-
*/
|
27 |
-
public function setDelegates($delegates)
|
28 |
-
{
|
29 |
-
$this->delegates = $delegates;
|
30 |
-
}
|
31 |
-
/**
|
32 |
-
* @return Google_Service_Gmail_Delegate
|
33 |
-
*/
|
34 |
-
public function getDelegates()
|
35 |
-
{
|
36 |
-
return $this->delegates;
|
37 |
-
}
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/ListDraftsResponse.php
DELETED
@@ -1,56 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_ListDraftsResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'drafts';
|
21 |
-
protected $draftsType = 'Google_Service_Gmail_Draft';
|
22 |
-
protected $draftsDataType = 'array';
|
23 |
-
public $nextPageToken;
|
24 |
-
public $resultSizeEstimate;
|
25 |
-
|
26 |
-
/**
|
27 |
-
* @param Google_Service_Gmail_Draft
|
28 |
-
*/
|
29 |
-
public function setDrafts($drafts)
|
30 |
-
{
|
31 |
-
$this->drafts = $drafts;
|
32 |
-
}
|
33 |
-
/**
|
34 |
-
* @return Google_Service_Gmail_Draft
|
35 |
-
*/
|
36 |
-
public function getDrafts()
|
37 |
-
{
|
38 |
-
return $this->drafts;
|
39 |
-
}
|
40 |
-
public function setNextPageToken($nextPageToken)
|
41 |
-
{
|
42 |
-
$this->nextPageToken = $nextPageToken;
|
43 |
-
}
|
44 |
-
public function getNextPageToken()
|
45 |
-
{
|
46 |
-
return $this->nextPageToken;
|
47 |
-
}
|
48 |
-
public function setResultSizeEstimate($resultSizeEstimate)
|
49 |
-
{
|
50 |
-
$this->resultSizeEstimate = $resultSizeEstimate;
|
51 |
-
}
|
52 |
-
public function getResultSizeEstimate()
|
53 |
-
{
|
54 |
-
return $this->resultSizeEstimate;
|
55 |
-
}
|
56 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/ListFiltersResponse.php
DELETED
@@ -1,38 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_ListFiltersResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'filter';
|
21 |
-
protected $filterType = 'Google_Service_Gmail_Filter';
|
22 |
-
protected $filterDataType = 'array';
|
23 |
-
|
24 |
-
/**
|
25 |
-
* @param Google_Service_Gmail_Filter
|
26 |
-
*/
|
27 |
-
public function setFilter($filter)
|
28 |
-
{
|
29 |
-
$this->filter = $filter;
|
30 |
-
}
|
31 |
-
/**
|
32 |
-
* @return Google_Service_Gmail_Filter
|
33 |
-
*/
|
34 |
-
public function getFilter()
|
35 |
-
{
|
36 |
-
return $this->filter;
|
37 |
-
}
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/ListForwardingAddressesResponse.php
DELETED
@@ -1,38 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_ListForwardingAddressesResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'forwardingAddresses';
|
21 |
-
protected $forwardingAddressesType = 'Google_Service_Gmail_ForwardingAddress';
|
22 |
-
protected $forwardingAddressesDataType = 'array';
|
23 |
-
|
24 |
-
/**
|
25 |
-
* @param Google_Service_Gmail_ForwardingAddress
|
26 |
-
*/
|
27 |
-
public function setForwardingAddresses($forwardingAddresses)
|
28 |
-
{
|
29 |
-
$this->forwardingAddresses = $forwardingAddresses;
|
30 |
-
}
|
31 |
-
/**
|
32 |
-
* @return Google_Service_Gmail_ForwardingAddress
|
33 |
-
*/
|
34 |
-
public function getForwardingAddresses()
|
35 |
-
{
|
36 |
-
return $this->forwardingAddresses;
|
37 |
-
}
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/ListHistoryResponse.php
DELETED
@@ -1,56 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_ListHistoryResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'history';
|
21 |
-
protected $historyType = 'Google_Service_Gmail_History';
|
22 |
-
protected $historyDataType = 'array';
|
23 |
-
public $historyId;
|
24 |
-
public $nextPageToken;
|
25 |
-
|
26 |
-
/**
|
27 |
-
* @param Google_Service_Gmail_History
|
28 |
-
*/
|
29 |
-
public function setHistory($history)
|
30 |
-
{
|
31 |
-
$this->history = $history;
|
32 |
-
}
|
33 |
-
/**
|
34 |
-
* @return Google_Service_Gmail_History
|
35 |
-
*/
|
36 |
-
public function getHistory()
|
37 |
-
{
|
38 |
-
return $this->history;
|
39 |
-
}
|
40 |
-
public function setHistoryId($historyId)
|
41 |
-
{
|
42 |
-
$this->historyId = $historyId;
|
43 |
-
}
|
44 |
-
public function getHistoryId()
|
45 |
-
{
|
46 |
-
return $this->historyId;
|
47 |
-
}
|
48 |
-
public function setNextPageToken($nextPageToken)
|
49 |
-
{
|
50 |
-
$this->nextPageToken = $nextPageToken;
|
51 |
-
}
|
52 |
-
public function getNextPageToken()
|
53 |
-
{
|
54 |
-
return $this->nextPageToken;
|
55 |
-
}
|
56 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/ListLabelsResponse.php
DELETED
@@ -1,38 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_ListLabelsResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'labels';
|
21 |
-
protected $labelsType = 'Google_Service_Gmail_Label';
|
22 |
-
protected $labelsDataType = 'array';
|
23 |
-
|
24 |
-
/**
|
25 |
-
* @param Google_Service_Gmail_Label
|
26 |
-
*/
|
27 |
-
public function setLabels($labels)
|
28 |
-
{
|
29 |
-
$this->labels = $labels;
|
30 |
-
}
|
31 |
-
/**
|
32 |
-
* @return Google_Service_Gmail_Label
|
33 |
-
*/
|
34 |
-
public function getLabels()
|
35 |
-
{
|
36 |
-
return $this->labels;
|
37 |
-
}
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/ListMessagesResponse.php
DELETED
@@ -1,56 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_ListMessagesResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'messages';
|
21 |
-
protected $messagesType = 'Google_Service_Gmail_Message';
|
22 |
-
protected $messagesDataType = 'array';
|
23 |
-
public $nextPageToken;
|
24 |
-
public $resultSizeEstimate;
|
25 |
-
|
26 |
-
/**
|
27 |
-
* @param Google_Service_Gmail_Message
|
28 |
-
*/
|
29 |
-
public function setMessages($messages)
|
30 |
-
{
|
31 |
-
$this->messages = $messages;
|
32 |
-
}
|
33 |
-
/**
|
34 |
-
* @return Google_Service_Gmail_Message
|
35 |
-
*/
|
36 |
-
public function getMessages()
|
37 |
-
{
|
38 |
-
return $this->messages;
|
39 |
-
}
|
40 |
-
public function setNextPageToken($nextPageToken)
|
41 |
-
{
|
42 |
-
$this->nextPageToken = $nextPageToken;
|
43 |
-
}
|
44 |
-
public function getNextPageToken()
|
45 |
-
{
|
46 |
-
return $this->nextPageToken;
|
47 |
-
}
|
48 |
-
public function setResultSizeEstimate($resultSizeEstimate)
|
49 |
-
{
|
50 |
-
$this->resultSizeEstimate = $resultSizeEstimate;
|
51 |
-
}
|
52 |
-
public function getResultSizeEstimate()
|
53 |
-
{
|
54 |
-
return $this->resultSizeEstimate;
|
55 |
-
}
|
56 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/ListSendAsResponse.php
DELETED
@@ -1,38 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_ListSendAsResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'sendAs';
|
21 |
-
protected $sendAsType = 'Google_Service_Gmail_SendAs';
|
22 |
-
protected $sendAsDataType = 'array';
|
23 |
-
|
24 |
-
/**
|
25 |
-
* @param Google_Service_Gmail_SendAs
|
26 |
-
*/
|
27 |
-
public function setSendAs($sendAs)
|
28 |
-
{
|
29 |
-
$this->sendAs = $sendAs;
|
30 |
-
}
|
31 |
-
/**
|
32 |
-
* @return Google_Service_Gmail_SendAs
|
33 |
-
*/
|
34 |
-
public function getSendAs()
|
35 |
-
{
|
36 |
-
return $this->sendAs;
|
37 |
-
}
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/ListSmimeInfoResponse.php
DELETED
@@ -1,38 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_ListSmimeInfoResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'smimeInfo';
|
21 |
-
protected $smimeInfoType = 'Google_Service_Gmail_SmimeInfo';
|
22 |
-
protected $smimeInfoDataType = 'array';
|
23 |
-
|
24 |
-
/**
|
25 |
-
* @param Google_Service_Gmail_SmimeInfo
|
26 |
-
*/
|
27 |
-
public function setSmimeInfo($smimeInfo)
|
28 |
-
{
|
29 |
-
$this->smimeInfo = $smimeInfo;
|
30 |
-
}
|
31 |
-
/**
|
32 |
-
* @return Google_Service_Gmail_SmimeInfo
|
33 |
-
*/
|
34 |
-
public function getSmimeInfo()
|
35 |
-
{
|
36 |
-
return $this->smimeInfo;
|
37 |
-
}
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/ListThreadsResponse.php
DELETED
@@ -1,56 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_ListThreadsResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'threads';
|
21 |
-
public $nextPageToken;
|
22 |
-
public $resultSizeEstimate;
|
23 |
-
protected $threadsType = 'Google_Service_Gmail_Thread';
|
24 |
-
protected $threadsDataType = 'array';
|
25 |
-
|
26 |
-
public function setNextPageToken($nextPageToken)
|
27 |
-
{
|
28 |
-
$this->nextPageToken = $nextPageToken;
|
29 |
-
}
|
30 |
-
public function getNextPageToken()
|
31 |
-
{
|
32 |
-
return $this->nextPageToken;
|
33 |
-
}
|
34 |
-
public function setResultSizeEstimate($resultSizeEstimate)
|
35 |
-
{
|
36 |
-
$this->resultSizeEstimate = $resultSizeEstimate;
|
37 |
-
}
|
38 |
-
public function getResultSizeEstimate()
|
39 |
-
{
|
40 |
-
return $this->resultSizeEstimate;
|
41 |
-
}
|
42 |
-
/**
|
43 |
-
* @param Google_Service_Gmail_Thread
|
44 |
-
*/
|
45 |
-
public function setThreads($threads)
|
46 |
-
{
|
47 |
-
$this->threads = $threads;
|
48 |
-
}
|
49 |
-
/**
|
50 |
-
* @return Google_Service_Gmail_Thread
|
51 |
-
*/
|
52 |
-
public function getThreads()
|
53 |
-
{
|
54 |
-
return $this->threads;
|
55 |
-
}
|
56 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/Message.php
DELETED
@@ -1,110 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_Message extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'labelIds';
|
21 |
-
public $historyId;
|
22 |
-
public $id;
|
23 |
-
public $internalDate;
|
24 |
-
public $labelIds;
|
25 |
-
protected $payloadType = 'Google_Service_Gmail_MessagePart';
|
26 |
-
protected $payloadDataType = '';
|
27 |
-
public $raw;
|
28 |
-
public $sizeEstimate;
|
29 |
-
public $snippet;
|
30 |
-
public $threadId;
|
31 |
-
|
32 |
-
public function setHistoryId($historyId)
|
33 |
-
{
|
34 |
-
$this->historyId = $historyId;
|
35 |
-
}
|
36 |
-
public function getHistoryId()
|
37 |
-
{
|
38 |
-
return $this->historyId;
|
39 |
-
}
|
40 |
-
public function setId($id)
|
41 |
-
{
|
42 |
-
$this->id = $id;
|
43 |
-
}
|
44 |
-
public function getId()
|
45 |
-
{
|
46 |
-
return $this->id;
|
47 |
-
}
|
48 |
-
public function setInternalDate($internalDate)
|
49 |
-
{
|
50 |
-
$this->internalDate = $internalDate;
|
51 |
-
}
|
52 |
-
public function getInternalDate()
|
53 |
-
{
|
54 |
-
return $this->internalDate;
|
55 |
-
}
|
56 |
-
public function setLabelIds($labelIds)
|
57 |
-
{
|
58 |
-
$this->labelIds = $labelIds;
|
59 |
-
}
|
60 |
-
public function getLabelIds()
|
61 |
-
{
|
62 |
-
return $this->labelIds;
|
63 |
-
}
|
64 |
-
/**
|
65 |
-
* @param Google_Service_Gmail_MessagePart
|
66 |
-
*/
|
67 |
-
public function setPayload(Google_Service_Gmail_MessagePart $payload)
|
68 |
-
{
|
69 |
-
$this->payload = $payload;
|
70 |
-
}
|
71 |
-
/**
|
72 |
-
* @return Google_Service_Gmail_MessagePart
|
73 |
-
*/
|
74 |
-
public function getPayload()
|
75 |
-
{
|
76 |
-
return $this->payload;
|
77 |
-
}
|
78 |
-
public function setRaw($raw)
|
79 |
-
{
|
80 |
-
$this->raw = $raw;
|
81 |
-
}
|
82 |
-
public function getRaw()
|
83 |
-
{
|
84 |
-
return $this->raw;
|
85 |
-
}
|
86 |
-
public function setSizeEstimate($sizeEstimate)
|
87 |
-
{
|
88 |
-
$this->sizeEstimate = $sizeEstimate;
|
89 |
-
}
|
90 |
-
public function getSizeEstimate()
|
91 |
-
{
|
92 |
-
return $this->sizeEstimate;
|
93 |
-
}
|
94 |
-
public function setSnippet($snippet)
|
95 |
-
{
|
96 |
-
$this->snippet = $snippet;
|
97 |
-
}
|
98 |
-
public function getSnippet()
|
99 |
-
{
|
100 |
-
return $this->snippet;
|
101 |
-
}
|
102 |
-
public function setThreadId($threadId)
|
103 |
-
{
|
104 |
-
$this->threadId = $threadId;
|
105 |
-
}
|
106 |
-
public function getThreadId()
|
107 |
-
{
|
108 |
-
return $this->threadId;
|
109 |
-
}
|
110 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/MessagePart.php
DELETED
@@ -1,97 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_MessagePart extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'parts';
|
21 |
-
protected $bodyType = 'Google_Service_Gmail_MessagePartBody';
|
22 |
-
protected $bodyDataType = '';
|
23 |
-
public $filename;
|
24 |
-
protected $headersType = 'Google_Service_Gmail_MessagePartHeader';
|
25 |
-
protected $headersDataType = 'array';
|
26 |
-
public $mimeType;
|
27 |
-
public $partId;
|
28 |
-
protected $partsType = 'Google_Service_Gmail_MessagePart';
|
29 |
-
protected $partsDataType = 'array';
|
30 |
-
|
31 |
-
/**
|
32 |
-
* @param Google_Service_Gmail_MessagePartBody
|
33 |
-
*/
|
34 |
-
public function setBody(Google_Service_Gmail_MessagePartBody $body)
|
35 |
-
{
|
36 |
-
$this->body = $body;
|
37 |
-
}
|
38 |
-
/**
|
39 |
-
* @return Google_Service_Gmail_MessagePartBody
|
40 |
-
*/
|
41 |
-
public function getBody()
|
42 |
-
{
|
43 |
-
return $this->body;
|
44 |
-
}
|
45 |
-
public function setFilename($filename)
|
46 |
-
{
|
47 |
-
$this->filename = $filename;
|
48 |
-
}
|
49 |
-
public function getFilename()
|
50 |
-
{
|
51 |
-
return $this->filename;
|
52 |
-
}
|
53 |
-
/**
|
54 |
-
* @param Google_Service_Gmail_MessagePartHeader
|
55 |
-
*/
|
56 |
-
public function setHeaders($headers)
|
57 |
-
{
|
58 |
-
$this->headers = $headers;
|
59 |
-
}
|
60 |
-
/**
|
61 |
-
* @return Google_Service_Gmail_MessagePartHeader
|
62 |
-
*/
|
63 |
-
public function getHeaders()
|
64 |
-
{
|
65 |
-
return $this->headers;
|
66 |
-
}
|
67 |
-
public function setMimeType($mimeType)
|
68 |
-
{
|
69 |
-
$this->mimeType = $mimeType;
|
70 |
-
}
|
71 |
-
public function getMimeType()
|
72 |
-
{
|
73 |
-
return $this->mimeType;
|
74 |
-
}
|
75 |
-
public function setPartId($partId)
|
76 |
-
{
|
77 |
-
$this->partId = $partId;
|
78 |
-
}
|
79 |
-
public function getPartId()
|
80 |
-
{
|
81 |
-
return $this->partId;
|
82 |
-
}
|
83 |
-
/**
|
84 |
-
* @param Google_Service_Gmail_MessagePart
|
85 |
-
*/
|
86 |
-
public function setParts($parts)
|
87 |
-
{
|
88 |
-
$this->parts = $parts;
|
89 |
-
}
|
90 |
-
/**
|
91 |
-
* @return Google_Service_Gmail_MessagePart
|
92 |
-
*/
|
93 |
-
public function getParts()
|
94 |
-
{
|
95 |
-
return $this->parts;
|
96 |
-
}
|
97 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/MessagePartBody.php
DELETED
@@ -1,48 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_MessagePartBody extends Google_Model
|
19 |
-
{
|
20 |
-
public $attachmentId;
|
21 |
-
public $data;
|
22 |
-
public $size;
|
23 |
-
|
24 |
-
public function setAttachmentId($attachmentId)
|
25 |
-
{
|
26 |
-
$this->attachmentId = $attachmentId;
|
27 |
-
}
|
28 |
-
public function getAttachmentId()
|
29 |
-
{
|
30 |
-
return $this->attachmentId;
|
31 |
-
}
|
32 |
-
public function setData($data)
|
33 |
-
{
|
34 |
-
$this->data = $data;
|
35 |
-
}
|
36 |
-
public function getData()
|
37 |
-
{
|
38 |
-
return $this->data;
|
39 |
-
}
|
40 |
-
public function setSize($size)
|
41 |
-
{
|
42 |
-
$this->size = $size;
|
43 |
-
}
|
44 |
-
public function getSize()
|
45 |
-
{
|
46 |
-
return $this->size;
|
47 |
-
}
|
48 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/MessagePartHeader.php
DELETED
@@ -1,39 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_MessagePartHeader extends Google_Model
|
19 |
-
{
|
20 |
-
public $name;
|
21 |
-
public $value;
|
22 |
-
|
23 |
-
public function setName($name)
|
24 |
-
{
|
25 |
-
$this->name = $name;
|
26 |
-
}
|
27 |
-
public function getName()
|
28 |
-
{
|
29 |
-
return $this->name;
|
30 |
-
}
|
31 |
-
public function setValue($value)
|
32 |
-
{
|
33 |
-
$this->value = $value;
|
34 |
-
}
|
35 |
-
public function getValue()
|
36 |
-
{
|
37 |
-
return $this->value;
|
38 |
-
}
|
39 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/ModifyMessageRequest.php
DELETED
@@ -1,40 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_ModifyMessageRequest extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'removeLabelIds';
|
21 |
-
public $addLabelIds;
|
22 |
-
public $removeLabelIds;
|
23 |
-
|
24 |
-
public function setAddLabelIds($addLabelIds)
|
25 |
-
{
|
26 |
-
$this->addLabelIds = $addLabelIds;
|
27 |
-
}
|
28 |
-
public function getAddLabelIds()
|
29 |
-
{
|
30 |
-
return $this->addLabelIds;
|
31 |
-
}
|
32 |
-
public function setRemoveLabelIds($removeLabelIds)
|
33 |
-
{
|
34 |
-
$this->removeLabelIds = $removeLabelIds;
|
35 |
-
}
|
36 |
-
public function getRemoveLabelIds()
|
37 |
-
{
|
38 |
-
return $this->removeLabelIds;
|
39 |
-
}
|
40 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/ModifyThreadRequest.php
DELETED
@@ -1,40 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_ModifyThreadRequest extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'removeLabelIds';
|
21 |
-
public $addLabelIds;
|
22 |
-
public $removeLabelIds;
|
23 |
-
|
24 |
-
public function setAddLabelIds($addLabelIds)
|
25 |
-
{
|
26 |
-
$this->addLabelIds = $addLabelIds;
|
27 |
-
}
|
28 |
-
public function getAddLabelIds()
|
29 |
-
{
|
30 |
-
return $this->addLabelIds;
|
31 |
-
}
|
32 |
-
public function setRemoveLabelIds($removeLabelIds)
|
33 |
-
{
|
34 |
-
$this->removeLabelIds = $removeLabelIds;
|
35 |
-
}
|
36 |
-
public function getRemoveLabelIds()
|
37 |
-
{
|
38 |
-
return $this->removeLabelIds;
|
39 |
-
}
|
40 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/PopSettings.php
DELETED
@@ -1,39 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_PopSettings extends Google_Model
|
19 |
-
{
|
20 |
-
public $accessWindow;
|
21 |
-
public $disposition;
|
22 |
-
|
23 |
-
public function setAccessWindow($accessWindow)
|
24 |
-
{
|
25 |
-
$this->accessWindow = $accessWindow;
|
26 |
-
}
|
27 |
-
public function getAccessWindow()
|
28 |
-
{
|
29 |
-
return $this->accessWindow;
|
30 |
-
}
|
31 |
-
public function setDisposition($disposition)
|
32 |
-
{
|
33 |
-
$this->disposition = $disposition;
|
34 |
-
}
|
35 |
-
public function getDisposition()
|
36 |
-
{
|
37 |
-
return $this->disposition;
|
38 |
-
}
|
39 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/Profile.php
DELETED
@@ -1,57 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_Profile extends Google_Model
|
19 |
-
{
|
20 |
-
public $emailAddress;
|
21 |
-
public $historyId;
|
22 |
-
public $messagesTotal;
|
23 |
-
public $threadsTotal;
|
24 |
-
|
25 |
-
public function setEmailAddress($emailAddress)
|
26 |
-
{
|
27 |
-
$this->emailAddress = $emailAddress;
|
28 |
-
}
|
29 |
-
public function getEmailAddress()
|
30 |
-
{
|
31 |
-
return $this->emailAddress;
|
32 |
-
}
|
33 |
-
public function setHistoryId($historyId)
|
34 |
-
{
|
35 |
-
$this->historyId = $historyId;
|
36 |
-
}
|
37 |
-
public function getHistoryId()
|
38 |
-
{
|
39 |
-
return $this->historyId;
|
40 |
-
}
|
41 |
-
public function setMessagesTotal($messagesTotal)
|
42 |
-
{
|
43 |
-
$this->messagesTotal = $messagesTotal;
|
44 |
-
}
|
45 |
-
public function getMessagesTotal()
|
46 |
-
{
|
47 |
-
return $this->messagesTotal;
|
48 |
-
}
|
49 |
-
public function setThreadsTotal($threadsTotal)
|
50 |
-
{
|
51 |
-
$this->threadsTotal = $threadsTotal;
|
52 |
-
}
|
53 |
-
public function getThreadsTotal()
|
54 |
-
{
|
55 |
-
return $this->threadsTotal;
|
56 |
-
}
|
57 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php
DELETED
@@ -1,71 +0,0 @@
|
|
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 |
-
* The "users" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $gmailService = new Google_Service_Gmail(...);
|
23 |
-
* $users = $gmailService->users;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_Gmail_Resource_Users extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Gets the current user's Gmail profile. (users.getProfile)
|
30 |
-
*
|
31 |
-
* @param string $userId The user's email address. The special value `me` can be
|
32 |
-
* used to indicate the authenticated user.
|
33 |
-
* @param array $optParams Optional parameters.
|
34 |
-
* @return Google_Service_Gmail_Profile
|
35 |
-
*/
|
36 |
-
public function getProfile($userId, $optParams = array())
|
37 |
-
{
|
38 |
-
$params = array('userId' => $userId);
|
39 |
-
$params = array_merge($params, $optParams);
|
40 |
-
return $this->call('getProfile', array($params), "Google_Service_Gmail_Profile");
|
41 |
-
}
|
42 |
-
/**
|
43 |
-
* Stop receiving push notifications for the given user mailbox. (users.stop)
|
44 |
-
*
|
45 |
-
* @param string $userId The user's email address. The special value `me` can be
|
46 |
-
* used to indicate the authenticated user.
|
47 |
-
* @param array $optParams Optional parameters.
|
48 |
-
*/
|
49 |
-
public function stop($userId, $optParams = array())
|
50 |
-
{
|
51 |
-
$params = array('userId' => $userId);
|
52 |
-
$params = array_merge($params, $optParams);
|
53 |
-
return $this->call('stop', array($params));
|
54 |
-
}
|
55 |
-
/**
|
56 |
-
* Set up or update a push notification watch on the given user mailbox.
|
57 |
-
* (users.watch)
|
58 |
-
*
|
59 |
-
* @param string $userId The user's email address. The special value `me` can be
|
60 |
-
* used to indicate the authenticated user.
|
61 |
-
* @param Google_Service_Gmail_WatchRequest $postBody
|
62 |
-
* @param array $optParams Optional parameters.
|
63 |
-
* @return Google_Service_Gmail_WatchResponse
|
64 |
-
*/
|
65 |
-
public function watch($userId, Google_Service_Gmail_WatchRequest $postBody, $optParams = array())
|
66 |
-
{
|
67 |
-
$params = array('userId' => $userId, 'postBody' => $postBody);
|
68 |
-
$params = array_merge($params, $optParams);
|
69 |
-
return $this->call('watch', array($params), "Google_Service_Gmail_WatchResponse");
|
70 |
-
}
|
71 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php
DELETED
@@ -1,130 +0,0 @@
|
|
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 |
-
* The "drafts" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $gmailService = new Google_Service_Gmail(...);
|
23 |
-
* $drafts = $gmailService->drafts;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_Gmail_Resource_UsersDrafts extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Creates a new draft with the `DRAFT` label. (drafts.create)
|
30 |
-
*
|
31 |
-
* @param string $userId The user's email address. The special value `me` can be
|
32 |
-
* used to indicate the authenticated user.
|
33 |
-
* @param Google_Service_Gmail_Draft $postBody
|
34 |
-
* @param array $optParams Optional parameters.
|
35 |
-
* @return Google_Service_Gmail_Draft
|
36 |
-
*/
|
37 |
-
public function create($userId, Google_Service_Gmail_Draft $postBody, $optParams = array())
|
38 |
-
{
|
39 |
-
$params = array('userId' => $userId, 'postBody' => $postBody);
|
40 |
-
$params = array_merge($params, $optParams);
|
41 |
-
return $this->call('create', array($params), "Google_Service_Gmail_Draft");
|
42 |
-
}
|
43 |
-
/**
|
44 |
-
* Immediately and permanently deletes the specified draft. Does not simply
|
45 |
-
* trash it. (drafts.delete)
|
46 |
-
*
|
47 |
-
* @param string $userId The user's email address. The special value `me` can be
|
48 |
-
* used to indicate the authenticated user.
|
49 |
-
* @param string $id The ID of the draft to delete.
|
50 |
-
* @param array $optParams Optional parameters.
|
51 |
-
*/
|
52 |
-
public function delete($userId, $id, $optParams = array())
|
53 |
-
{
|
54 |
-
$params = array('userId' => $userId, 'id' => $id);
|
55 |
-
$params = array_merge($params, $optParams);
|
56 |
-
return $this->call('delete', array($params));
|
57 |
-
}
|
58 |
-
/**
|
59 |
-
* Gets the specified draft. (drafts.get)
|
60 |
-
*
|
61 |
-
* @param string $userId The user's email address. The special value `me` can be
|
62 |
-
* used to indicate the authenticated user.
|
63 |
-
* @param string $id The ID of the draft to retrieve.
|
64 |
-
* @param array $optParams Optional parameters.
|
65 |
-
*
|
66 |
-
* @opt_param string format The format to return the draft in.
|
67 |
-
* @return Google_Service_Gmail_Draft
|
68 |
-
*/
|
69 |
-
public function get($userId, $id, $optParams = array())
|
70 |
-
{
|
71 |
-
$params = array('userId' => $userId, 'id' => $id);
|
72 |
-
$params = array_merge($params, $optParams);
|
73 |
-
return $this->call('get', array($params), "Google_Service_Gmail_Draft");
|
74 |
-
}
|
75 |
-
/**
|
76 |
-
* Lists the drafts in the user's mailbox. (drafts.listUsersDrafts)
|
77 |
-
*
|
78 |
-
* @param string $userId The user's email address. The special value `me` can be
|
79 |
-
* used to indicate the authenticated user.
|
80 |
-
* @param array $optParams Optional parameters.
|
81 |
-
*
|
82 |
-
* @opt_param string pageToken Page token to retrieve a specific page of results
|
83 |
-
* in the list.
|
84 |
-
* @opt_param string maxResults Maximum number of drafts to return.
|
85 |
-
* @opt_param string q Only return draft messages matching the specified query.
|
86 |
-
* Supports the same query format as the Gmail search box. For example,
|
87 |
-
* `"from:someuser@example.com rfc822msgid: is:unread"`.
|
88 |
-
* @opt_param bool includeSpamTrash Include drafts from `SPAM` and `TRASH` in
|
89 |
-
* the results.
|
90 |
-
* @return Google_Service_Gmail_ListDraftsResponse
|
91 |
-
*/
|
92 |
-
public function listUsersDrafts($userId, $optParams = array())
|
93 |
-
{
|
94 |
-
$params = array('userId' => $userId);
|
95 |
-
$params = array_merge($params, $optParams);
|
96 |
-
return $this->call('list', array($params), "Google_Service_Gmail_ListDraftsResponse");
|
97 |
-
}
|
98 |
-
/**
|
99 |
-
* Sends the specified, existing draft to the recipients in the `To`, `Cc`, and
|
100 |
-
* `Bcc` headers. (drafts.send)
|
101 |
-
*
|
102 |
-
* @param string $userId The user's email address. The special value `me` can be
|
103 |
-
* used to indicate the authenticated user.
|
104 |
-
* @param Google_Service_Gmail_Draft $postBody
|
105 |
-
* @param array $optParams Optional parameters.
|
106 |
-
* @return Google_Service_Gmail_Message
|
107 |
-
*/
|
108 |
-
public function send($userId, Google_Service_Gmail_Draft $postBody, $optParams = array())
|
109 |
-
{
|
110 |
-
$params = array('userId' => $userId, 'postBody' => $postBody);
|
111 |
-
$params = array_merge($params, $optParams);
|
112 |
-
return $this->call('send', array($params), "Google_Service_Gmail_Message");
|
113 |
-
}
|
114 |
-
/**
|
115 |
-
* Replaces a draft's content. (drafts.update)
|
116 |
-
*
|
117 |
-
* @param string $userId The user's email address. The special value `me` can be
|
118 |
-
* used to indicate the authenticated user.
|
119 |
-
* @param string $id The ID of the draft to update.
|
120 |
-
* @param Google_Service_Gmail_Draft $postBody
|
121 |
-
* @param array $optParams Optional parameters.
|
122 |
-
* @return Google_Service_Gmail_Draft
|
123 |
-
*/
|
124 |
-
public function update($userId, $id, Google_Service_Gmail_Draft $postBody, $optParams = array())
|
125 |
-
{
|
126 |
-
$params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody);
|
127 |
-
$params = array_merge($params, $optParams);
|
128 |
-
return $this->call('update', array($params), "Google_Service_Gmail_Draft");
|
129 |
-
}
|
130 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php
DELETED
@@ -1,61 +0,0 @@
|
|
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 |
-
* The "history" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $gmailService = new Google_Service_Gmail(...);
|
23 |
-
* $history = $gmailService->history;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_Gmail_Resource_UsersHistory extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Lists the history of all changes to the given mailbox. History results are
|
30 |
-
* returned in chronological order (increasing `historyId`).
|
31 |
-
* (history.listUsersHistory)
|
32 |
-
*
|
33 |
-
* @param string $userId The user's email address. The special value `me` can be
|
34 |
-
* used to indicate the authenticated user.
|
35 |
-
* @param array $optParams Optional parameters.
|
36 |
-
*
|
37 |
-
* @opt_param string historyTypes History types to be returned by the function
|
38 |
-
* @opt_param string startHistoryId Required. Returns history records after the
|
39 |
-
* specified `startHistoryId`. The supplied `startHistoryId` should be obtained
|
40 |
-
* from the `historyId` of a message, thread, or previous `list` response.
|
41 |
-
* History IDs increase chronologically but are not contiguous with random gaps
|
42 |
-
* in between valid IDs. Supplying an invalid or out of date `startHistoryId`
|
43 |
-
* typically returns an `HTTP 404` error code. A `historyId` is typically valid
|
44 |
-
* for at least a week, but in some rare circumstances may be valid for only a
|
45 |
-
* few hours. If you receive an `HTTP 404` error response, your application
|
46 |
-
* should perform a full sync. If you receive no `nextPageToken` in the
|
47 |
-
* response, there are no updates to retrieve and you can store the returned
|
48 |
-
* `historyId` for a future request.
|
49 |
-
* @opt_param string labelId Only return messages with a label matching the ID.
|
50 |
-
* @opt_param string pageToken Page token to retrieve a specific page of results
|
51 |
-
* in the list.
|
52 |
-
* @opt_param string maxResults The maximum number of history records to return.
|
53 |
-
* @return Google_Service_Gmail_ListHistoryResponse
|
54 |
-
*/
|
55 |
-
public function listUsersHistory($userId, $optParams = array())
|
56 |
-
{
|
57 |
-
$params = array('userId' => $userId);
|
58 |
-
$params = array_merge($params, $optParams);
|
59 |
-
return $this->call('list', array($params), "Google_Service_Gmail_ListHistoryResponse");
|
60 |
-
}
|
61 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php
DELETED
@@ -1,119 +0,0 @@
|
|
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 |
-
* The "labels" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $gmailService = new Google_Service_Gmail(...);
|
23 |
-
* $labels = $gmailService->labels;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_Gmail_Resource_UsersLabels extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Creates a new label. (labels.create)
|
30 |
-
*
|
31 |
-
* @param string $userId The user's email address. The special value `me` can be
|
32 |
-
* used to indicate the authenticated user.
|
33 |
-
* @param Google_Service_Gmail_Label $postBody
|
34 |
-
* @param array $optParams Optional parameters.
|
35 |
-
* @return Google_Service_Gmail_Label
|
36 |
-
*/
|
37 |
-
public function create($userId, Google_Service_Gmail_Label $postBody, $optParams = array())
|
38 |
-
{
|
39 |
-
$params = array('userId' => $userId, 'postBody' => $postBody);
|
40 |
-
$params = array_merge($params, $optParams);
|
41 |
-
return $this->call('create', array($params), "Google_Service_Gmail_Label");
|
42 |
-
}
|
43 |
-
/**
|
44 |
-
* Immediately and permanently deletes the specified label and removes it from
|
45 |
-
* any messages and threads that it is applied to. (labels.delete)
|
46 |
-
*
|
47 |
-
* @param string $userId The user's email address. The special value `me` can be
|
48 |
-
* used to indicate the authenticated user.
|
49 |
-
* @param string $id The ID of the label to delete.
|
50 |
-
* @param array $optParams Optional parameters.
|
51 |
-
*/
|
52 |
-
public function delete($userId, $id, $optParams = array())
|
53 |
-
{
|
54 |
-
$params = array('userId' => $userId, 'id' => $id);
|
55 |
-
$params = array_merge($params, $optParams);
|
56 |
-
return $this->call('delete', array($params));
|
57 |
-
}
|
58 |
-
/**
|
59 |
-
* Gets the specified label. (labels.get)
|
60 |
-
*
|
61 |
-
* @param string $userId The user's email address. The special value `me` can be
|
62 |
-
* used to indicate the authenticated user.
|
63 |
-
* @param string $id The ID of the label to retrieve.
|
64 |
-
* @param array $optParams Optional parameters.
|
65 |
-
* @return Google_Service_Gmail_Label
|
66 |
-
*/
|
67 |
-
public function get($userId, $id, $optParams = array())
|
68 |
-
{
|
69 |
-
$params = array('userId' => $userId, 'id' => $id);
|
70 |
-
$params = array_merge($params, $optParams);
|
71 |
-
return $this->call('get', array($params), "Google_Service_Gmail_Label");
|
72 |
-
}
|
73 |
-
/**
|
74 |
-
* Lists all labels in the user's mailbox. (labels.listUsersLabels)
|
75 |
-
*
|
76 |
-
* @param string $userId The user's email address. The special value `me` can be
|
77 |
-
* used to indicate the authenticated user.
|
78 |
-
* @param array $optParams Optional parameters.
|
79 |
-
* @return Google_Service_Gmail_ListLabelsResponse
|
80 |
-
*/
|
81 |
-
public function listUsersLabels($userId, $optParams = array())
|
82 |
-
{
|
83 |
-
$params = array('userId' => $userId);
|
84 |
-
$params = array_merge($params, $optParams);
|
85 |
-
return $this->call('list', array($params), "Google_Service_Gmail_ListLabelsResponse");
|
86 |
-
}
|
87 |
-
/**
|
88 |
-
* Patch the specified label. (labels.patch)
|
89 |
-
*
|
90 |
-
* @param string $userId The user's email address. The special value `me` can be
|
91 |
-
* used to indicate the authenticated user.
|
92 |
-
* @param string $id The ID of the label to update.
|
93 |
-
* @param Google_Service_Gmail_Label $postBody
|
94 |
-
* @param array $optParams Optional parameters.
|
95 |
-
* @return Google_Service_Gmail_Label
|
96 |
-
*/
|
97 |
-
public function patch($userId, $id, Google_Service_Gmail_Label $postBody, $optParams = array())
|
98 |
-
{
|
99 |
-
$params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody);
|
100 |
-
$params = array_merge($params, $optParams);
|
101 |
-
return $this->call('patch', array($params), "Google_Service_Gmail_Label");
|
102 |
-
}
|
103 |
-
/**
|
104 |
-
* Updates the specified label. (labels.update)
|
105 |
-
*
|
106 |
-
* @param string $userId The user's email address. The special value `me` can be
|
107 |
-
* used to indicate the authenticated user.
|
108 |
-
* @param string $id The ID of the label to update.
|
109 |
-
* @param Google_Service_Gmail_Label $postBody
|
110 |
-
* @param array $optParams Optional parameters.
|
111 |
-
* @return Google_Service_Gmail_Label
|
112 |
-
*/
|
113 |
-
public function update($userId, $id, Google_Service_Gmail_Label $postBody, $optParams = array())
|
114 |
-
{
|
115 |
-
$params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody);
|
116 |
-
$params = array_merge($params, $optParams);
|
117 |
-
return $this->call('update', array($params), "Google_Service_Gmail_Label");
|
118 |
-
}
|
119 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php
DELETED
@@ -1,229 +0,0 @@
|
|
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 |
-
* The "messages" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $gmailService = new Google_Service_Gmail(...);
|
23 |
-
* $messages = $gmailService->messages;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_Gmail_Resource_UsersMessages extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Deletes many messages by message ID. Provides no guarantees that messages
|
30 |
-
* were not already deleted or even existed at all. (messages.batchDelete)
|
31 |
-
*
|
32 |
-
* @param string $userId The user's email address. The special value `me` can be
|
33 |
-
* used to indicate the authenticated user.
|
34 |
-
* @param Google_Service_Gmail_BatchDeleteMessagesRequest $postBody
|
35 |
-
* @param array $optParams Optional parameters.
|
36 |
-
*/
|
37 |
-
public function batchDelete($userId, Google_Service_Gmail_BatchDeleteMessagesRequest $postBody, $optParams = array())
|
38 |
-
{
|
39 |
-
$params = array('userId' => $userId, 'postBody' => $postBody);
|
40 |
-
$params = array_merge($params, $optParams);
|
41 |
-
return $this->call('batchDelete', array($params));
|
42 |
-
}
|
43 |
-
/**
|
44 |
-
* Modifies the labels on the specified messages. (messages.batchModify)
|
45 |
-
*
|
46 |
-
* @param string $userId The user's email address. The special value `me` can be
|
47 |
-
* used to indicate the authenticated user.
|
48 |
-
* @param Google_Service_Gmail_BatchModifyMessagesRequest $postBody
|
49 |
-
* @param array $optParams Optional parameters.
|
50 |
-
*/
|
51 |
-
public function batchModify($userId, Google_Service_Gmail_BatchModifyMessagesRequest $postBody, $optParams = array())
|
52 |
-
{
|
53 |
-
$params = array('userId' => $userId, 'postBody' => $postBody);
|
54 |
-
$params = array_merge($params, $optParams);
|
55 |
-
return $this->call('batchModify', array($params));
|
56 |
-
}
|
57 |
-
/**
|
58 |
-
* Immediately and permanently deletes the specified message. This operation
|
59 |
-
* cannot be undone. Prefer `messages.trash` instead. (messages.delete)
|
60 |
-
*
|
61 |
-
* @param string $userId The user's email address. The special value `me` can be
|
62 |
-
* used to indicate the authenticated user.
|
63 |
-
* @param string $id The ID of the message to delete.
|
64 |
-
* @param array $optParams Optional parameters.
|
65 |
-
*/
|
66 |
-
public function delete($userId, $id, $optParams = array())
|
67 |
-
{
|
68 |
-
$params = array('userId' => $userId, 'id' => $id);
|
69 |
-
$params = array_merge($params, $optParams);
|
70 |
-
return $this->call('delete', array($params));
|
71 |
-
}
|
72 |
-
/**
|
73 |
-
* Gets the specified message. (messages.get)
|
74 |
-
*
|
75 |
-
* @param string $userId The user's email address. The special value `me` can be
|
76 |
-
* used to indicate the authenticated user.
|
77 |
-
* @param string $id The ID of the message to retrieve.
|
78 |
-
* @param array $optParams Optional parameters.
|
79 |
-
*
|
80 |
-
* @opt_param string format The format to return the message in.
|
81 |
-
* @opt_param string metadataHeaders When given and format is `METADATA`, only
|
82 |
-
* include headers specified.
|
83 |
-
* @return Google_Service_Gmail_Message
|
84 |
-
*/
|
85 |
-
public function get($userId, $id, $optParams = array())
|
86 |
-
{
|
87 |
-
$params = array('userId' => $userId, 'id' => $id);
|
88 |
-
$params = array_merge($params, $optParams);
|
89 |
-
return $this->call('get', array($params), "Google_Service_Gmail_Message");
|
90 |
-
}
|
91 |
-
/**
|
92 |
-
* Imports a message into only this user's mailbox, with standard email delivery
|
93 |
-
* scanning and classification similar to receiving via SMTP. Does not send a
|
94 |
-
* message. (messages.import)
|
95 |
-
*
|
96 |
-
* @param string $userId The user's email address. The special value `me` can be
|
97 |
-
* used to indicate the authenticated user.
|
98 |
-
* @param Google_Service_Gmail_Message $postBody
|
99 |
-
* @param array $optParams Optional parameters.
|
100 |
-
*
|
101 |
-
* @opt_param bool processForCalendar Process calendar invites in the email and
|
102 |
-
* add any extracted meetings to the Google Calendar for this user.
|
103 |
-
* @opt_param bool deleted Mark the email as permanently deleted (not TRASH) and
|
104 |
-
* only visible in Google Vault to a Vault administrator. Only used for G Suite
|
105 |
-
* accounts.
|
106 |
-
* @opt_param string internalDateSource Source for Gmail's internal date of the
|
107 |
-
* message.
|
108 |
-
* @opt_param bool neverMarkSpam Ignore the Gmail spam classifier decision and
|
109 |
-
* never mark this email as SPAM in the mailbox.
|
110 |
-
* @return Google_Service_Gmail_Message
|
111 |
-
*/
|
112 |
-
public function import($userId, Google_Service_Gmail_Message $postBody, $optParams = array())
|
113 |
-
{
|
114 |
-
$params = array('userId' => $userId, 'postBody' => $postBody);
|
115 |
-
$params = array_merge($params, $optParams);
|
116 |
-
return $this->call('import', array($params), "Google_Service_Gmail_Message");
|
117 |
-
}
|
118 |
-
/**
|
119 |
-
* Directly inserts a message into only this user's mailbox similar to `IMAP
|
120 |
-
* APPEND`, bypassing most scanning and classification. Does not send a message.
|
121 |
-
* (messages.insert)
|
122 |
-
*
|
123 |
-
* @param string $userId The user's email address. The special value `me` can be
|
124 |
-
* used to indicate the authenticated user.
|
125 |
-
* @param Google_Service_Gmail_Message $postBody
|
126 |
-
* @param array $optParams Optional parameters.
|
127 |
-
*
|
128 |
-
* @opt_param string internalDateSource Source for Gmail's internal date of the
|
129 |
-
* message.
|
130 |
-
* @opt_param bool deleted Mark the email as permanently deleted (not TRASH) and
|
131 |
-
* only visible in Google Vault to a Vault administrator. Only used for G Suite
|
132 |
-
* accounts.
|
133 |
-
* @return Google_Service_Gmail_Message
|
134 |
-
*/
|
135 |
-
public function insert($userId, Google_Service_Gmail_Message $postBody, $optParams = array())
|
136 |
-
{
|
137 |
-
$params = array('userId' => $userId, 'postBody' => $postBody);
|
138 |
-
$params = array_merge($params, $optParams);
|
139 |
-
return $this->call('insert', array($params), "Google_Service_Gmail_Message");
|
140 |
-
}
|
141 |
-
/**
|
142 |
-
* Lists the messages in the user's mailbox. (messages.listUsersMessages)
|
143 |
-
*
|
144 |
-
* @param string $userId The user's email address. The special value `me` can be
|
145 |
-
* used to indicate the authenticated user.
|
146 |
-
* @param array $optParams Optional parameters.
|
147 |
-
*
|
148 |
-
* @opt_param string labelIds Only return messages with labels that match all of
|
149 |
-
* the specified label IDs.
|
150 |
-
* @opt_param string pageToken Page token to retrieve a specific page of results
|
151 |
-
* in the list.
|
152 |
-
* @opt_param string q Only return messages matching the specified query.
|
153 |
-
* Supports the same query format as the Gmail search box. For example,
|
154 |
-
* `"from:someuser@example.com rfc822msgid: is:unread"`. Parameter cannot be
|
155 |
-
* used when accessing the api using the gmail.metadata scope.
|
156 |
-
* @opt_param string maxResults Maximum number of messages to return.
|
157 |
-
* @opt_param bool includeSpamTrash Include messages from `SPAM` and `TRASH` in
|
158 |
-
* the results.
|
159 |
-
* @return Google_Service_Gmail_ListMessagesResponse
|
160 |
-
*/
|
161 |
-
public function listUsersMessages($userId, $optParams = array())
|
162 |
-
{
|
163 |
-
$params = array('userId' => $userId);
|
164 |
-
$params = array_merge($params, $optParams);
|
165 |
-
return $this->call('list', array($params), "Google_Service_Gmail_ListMessagesResponse");
|
166 |
-
}
|
167 |
-
/**
|
168 |
-
* Modifies the labels on the specified message. (messages.modify)
|
169 |
-
*
|
170 |
-
* @param string $userId The user's email address. The special value `me` can be
|
171 |
-
* used to indicate the authenticated user.
|
172 |
-
* @param string $id The ID of the message to modify.
|
173 |
-
* @param Google_Service_Gmail_ModifyMessageRequest $postBody
|
174 |
-
* @param array $optParams Optional parameters.
|
175 |
-
* @return Google_Service_Gmail_Message
|
176 |
-
*/
|
177 |
-
public function modify($userId, $id, Google_Service_Gmail_ModifyMessageRequest $postBody, $optParams = array())
|
178 |
-
{
|
179 |
-
$params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody);
|
180 |
-
$params = array_merge($params, $optParams);
|
181 |
-
return $this->call('modify', array($params), "Google_Service_Gmail_Message");
|
182 |
-
}
|
183 |
-
/**
|
184 |
-
* Sends the specified message to the recipients in the `To`, `Cc`, and `Bcc`
|
185 |
-
* headers. (messages.send)
|
186 |
-
*
|
187 |
-
* @param string $userId The user's email address. The special value `me` can be
|
188 |
-
* used to indicate the authenticated user.
|
189 |
-
* @param Google_Service_Gmail_Message $postBody
|
190 |
-
* @param array $optParams Optional parameters.
|
191 |
-
* @return Google_Service_Gmail_Message
|
192 |
-
*/
|
193 |
-
public function send($userId, Google_Service_Gmail_Message $postBody, $optParams = array())
|
194 |
-
{
|
195 |
-
$params = array('userId' => $userId, 'postBody' => $postBody);
|
196 |
-
$params = array_merge($params, $optParams);
|
197 |
-
return $this->call('send', array($params), "Google_Service_Gmail_Message");
|
198 |
-
}
|
199 |
-
/**
|
200 |
-
* Moves the specified message to the trash. (messages.trash)
|
201 |
-
*
|
202 |
-
* @param string $userId The user's email address. The special value `me` can be
|
203 |
-
* used to indicate the authenticated user.
|
204 |
-
* @param string $id The ID of the message to Trash.
|
205 |
-
* @param array $optParams Optional parameters.
|
206 |
-
* @return Google_Service_Gmail_Message
|
207 |
-
*/
|
208 |
-
public function trash($userId, $id, $optParams = array())
|
209 |
-
{
|
210 |
-
$params = array('userId' => $userId, 'id' => $id);
|
211 |
-
$params = array_merge($params, $optParams);
|
212 |
-
return $this->call('trash', array($params), "Google_Service_Gmail_Message");
|
213 |
-
}
|
214 |
-
/**
|
215 |
-
* Removes the specified message from the trash. (messages.untrash)
|
216 |
-
*
|
217 |
-
* @param string $userId The user's email address. The special value `me` can be
|
218 |
-
* used to indicate the authenticated user.
|
219 |
-
* @param string $id The ID of the message to remove from Trash.
|
220 |
-
* @param array $optParams Optional parameters.
|
221 |
-
* @return Google_Service_Gmail_Message
|
222 |
-
*/
|
223 |
-
public function untrash($userId, $id, $optParams = array())
|
224 |
-
{
|
225 |
-
$params = array('userId' => $userId, 'id' => $id);
|
226 |
-
$params = array_merge($params, $optParams);
|
227 |
-
return $this->call('untrash', array($params), "Google_Service_Gmail_Message");
|
228 |
-
}
|
229 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessagesAttachments.php
DELETED
@@ -1,44 +0,0 @@
|
|
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 |
-
* The "attachments" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $gmailService = new Google_Service_Gmail(...);
|
23 |
-
* $attachments = $gmailService->attachments;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_Gmail_Resource_UsersMessagesAttachments extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Gets the specified message attachment. (attachments.get)
|
30 |
-
*
|
31 |
-
* @param string $userId The user's email address. The special value `me` can be
|
32 |
-
* used to indicate the authenticated user.
|
33 |
-
* @param string $messageId The ID of the message containing the attachment.
|
34 |
-
* @param string $id The ID of the attachment.
|
35 |
-
* @param array $optParams Optional parameters.
|
36 |
-
* @return Google_Service_Gmail_MessagePartBody
|
37 |
-
*/
|
38 |
-
public function get($userId, $messageId, $id, $optParams = array())
|
39 |
-
{
|
40 |
-
$params = array('userId' => $userId, 'messageId' => $messageId, 'id' => $id);
|
41 |
-
$params = array_merge($params, $optParams);
|
42 |
-
return $this->call('get', array($params), "Google_Service_Gmail_MessagePartBody");
|
43 |
-
}
|
44 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php
DELETED
@@ -1,184 +0,0 @@
|
|
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 |
-
* The "settings" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $gmailService = new Google_Service_Gmail(...);
|
23 |
-
* $settings = $gmailService->settings;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_Gmail_Resource_UsersSettings extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Gets the auto-forwarding setting for the specified account.
|
30 |
-
* (settings.getAutoForwarding)
|
31 |
-
*
|
32 |
-
* @param string $userId User's email address. The special value "me" can be
|
33 |
-
* used to indicate the authenticated user.
|
34 |
-
* @param array $optParams Optional parameters.
|
35 |
-
* @return Google_Service_Gmail_AutoForwarding
|
36 |
-
*/
|
37 |
-
public function getAutoForwarding($userId, $optParams = array())
|
38 |
-
{
|
39 |
-
$params = array('userId' => $userId);
|
40 |
-
$params = array_merge($params, $optParams);
|
41 |
-
return $this->call('getAutoForwarding', array($params), "Google_Service_Gmail_AutoForwarding");
|
42 |
-
}
|
43 |
-
/**
|
44 |
-
* Gets IMAP settings. (settings.getImap)
|
45 |
-
*
|
46 |
-
* @param string $userId User's email address. The special value "me" can be
|
47 |
-
* used to indicate the authenticated user.
|
48 |
-
* @param array $optParams Optional parameters.
|
49 |
-
* @return Google_Service_Gmail_ImapSettings
|
50 |
-
*/
|
51 |
-
public function getImap($userId, $optParams = array())
|
52 |
-
{
|
53 |
-
$params = array('userId' => $userId);
|
54 |
-
$params = array_merge($params, $optParams);
|
55 |
-
return $this->call('getImap', array($params), "Google_Service_Gmail_ImapSettings");
|
56 |
-
}
|
57 |
-
/**
|
58 |
-
* Gets language settings. (settings.getLanguage)
|
59 |
-
*
|
60 |
-
* @param string $userId User's email address. The special value "me" can be
|
61 |
-
* used to indicate the authenticated user.
|
62 |
-
* @param array $optParams Optional parameters.
|
63 |
-
* @return Google_Service_Gmail_LanguageSettings
|
64 |
-
*/
|
65 |
-
public function getLanguage($userId, $optParams = array())
|
66 |
-
{
|
67 |
-
$params = array('userId' => $userId);
|
68 |
-
$params = array_merge($params, $optParams);
|
69 |
-
return $this->call('getLanguage', array($params), "Google_Service_Gmail_LanguageSettings");
|
70 |
-
}
|
71 |
-
/**
|
72 |
-
* Gets POP settings. (settings.getPop)
|
73 |
-
*
|
74 |
-
* @param string $userId User's email address. The special value "me" can be
|
75 |
-
* used to indicate the authenticated user.
|
76 |
-
* @param array $optParams Optional parameters.
|
77 |
-
* @return Google_Service_Gmail_PopSettings
|
78 |
-
*/
|
79 |
-
public function getPop($userId, $optParams = array())
|
80 |
-
{
|
81 |
-
$params = array('userId' => $userId);
|
82 |
-
$params = array_merge($params, $optParams);
|
83 |
-
return $this->call('getPop', array($params), "Google_Service_Gmail_PopSettings");
|
84 |
-
}
|
85 |
-
/**
|
86 |
-
* Gets vacation responder settings. (settings.getVacation)
|
87 |
-
*
|
88 |
-
* @param string $userId User's email address. The special value "me" can be
|
89 |
-
* used to indicate the authenticated user.
|
90 |
-
* @param array $optParams Optional parameters.
|
91 |
-
* @return Google_Service_Gmail_VacationSettings
|
92 |
-
*/
|
93 |
-
public function getVacation($userId, $optParams = array())
|
94 |
-
{
|
95 |
-
$params = array('userId' => $userId);
|
96 |
-
$params = array_merge($params, $optParams);
|
97 |
-
return $this->call('getVacation', array($params), "Google_Service_Gmail_VacationSettings");
|
98 |
-
}
|
99 |
-
/**
|
100 |
-
* Updates the auto-forwarding setting for the specified account. A verified
|
101 |
-
* forwarding address must be specified when auto-forwarding is enabled.
|
102 |
-
*
|
103 |
-
* This method is only available to service account clients that have been
|
104 |
-
* delegated domain-wide authority. (settings.updateAutoForwarding)
|
105 |
-
*
|
106 |
-
* @param string $userId User's email address. The special value "me" can be
|
107 |
-
* used to indicate the authenticated user.
|
108 |
-
* @param Google_Service_Gmail_AutoForwarding $postBody
|
109 |
-
* @param array $optParams Optional parameters.
|
110 |
-
* @return Google_Service_Gmail_AutoForwarding
|
111 |
-
*/
|
112 |
-
public function updateAutoForwarding($userId, Google_Service_Gmail_AutoForwarding $postBody, $optParams = array())
|
113 |
-
{
|
114 |
-
$params = array('userId' => $userId, 'postBody' => $postBody);
|
115 |
-
$params = array_merge($params, $optParams);
|
116 |
-
return $this->call('updateAutoForwarding', array($params), "Google_Service_Gmail_AutoForwarding");
|
117 |
-
}
|
118 |
-
/**
|
119 |
-
* Updates IMAP settings. (settings.updateImap)
|
120 |
-
*
|
121 |
-
* @param string $userId User's email address. The special value "me" can be
|
122 |
-
* used to indicate the authenticated user.
|
123 |
-
* @param Google_Service_Gmail_ImapSettings $postBody
|
124 |
-
* @param array $optParams Optional parameters.
|
125 |
-
* @return Google_Service_Gmail_ImapSettings
|
126 |
-
*/
|
127 |
-
public function updateImap($userId, Google_Service_Gmail_ImapSettings $postBody, $optParams = array())
|
128 |
-
{
|
129 |
-
$params = array('userId' => $userId, 'postBody' => $postBody);
|
130 |
-
$params = array_merge($params, $optParams);
|
131 |
-
return $this->call('updateImap', array($params), "Google_Service_Gmail_ImapSettings");
|
132 |
-
}
|
133 |
-
/**
|
134 |
-
* Updates language settings.
|
135 |
-
*
|
136 |
-
* If successful, the return object contains the `displayLanguage` that was
|
137 |
-
* saved for the user, which may differ from the value passed into the request.
|
138 |
-
* This is because the requested `displayLanguage` may not be directly supported
|
139 |
-
* by Gmail but have a close variant that is, and so the variant may be chosen
|
140 |
-
* and saved instead. (settings.updateLanguage)
|
141 |
-
*
|
142 |
-
* @param string $userId User's email address. The special value "me" can be
|
143 |
-
* used to indicate the authenticated user.
|
144 |
-
* @param Google_Service_Gmail_LanguageSettings $postBody
|
145 |
-
* @param array $optParams Optional parameters.
|
146 |
-
* @return Google_Service_Gmail_LanguageSettings
|
147 |
-
*/
|
148 |
-
public function updateLanguage($userId, Google_Service_Gmail_LanguageSettings $postBody, $optParams = array())
|
149 |
-
{
|
150 |
-
$params = array('userId' => $userId, 'postBody' => $postBody);
|
151 |
-
$params = array_merge($params, $optParams);
|
152 |
-
return $this->call('updateLanguage', array($params), "Google_Service_Gmail_LanguageSettings");
|
153 |
-
}
|
154 |
-
/**
|
155 |
-
* Updates POP settings. (settings.updatePop)
|
156 |
-
*
|
157 |
-
* @param string $userId User's email address. The special value "me" can be
|
158 |
-
* used to indicate the authenticated user.
|
159 |
-
* @param Google_Service_Gmail_PopSettings $postBody
|
160 |
-
* @param array $optParams Optional parameters.
|
161 |
-
* @return Google_Service_Gmail_PopSettings
|
162 |
-
*/
|
163 |
-
public function updatePop($userId, Google_Service_Gmail_PopSettings $postBody, $optParams = array())
|
164 |
-
{
|
165 |
-
$params = array('userId' => $userId, 'postBody' => $postBody);
|
166 |
-
$params = array_merge($params, $optParams);
|
167 |
-
return $this->call('updatePop', array($params), "Google_Service_Gmail_PopSettings");
|
168 |
-
}
|
169 |
-
/**
|
170 |
-
* Updates vacation responder settings. (settings.updateVacation)
|
171 |
-
*
|
172 |
-
* @param string $userId User's email address. The special value "me" can be
|
173 |
-
* used to indicate the authenticated user.
|
174 |
-
* @param Google_Service_Gmail_VacationSettings $postBody
|
175 |
-
* @param array $optParams Optional parameters.
|
176 |
-
* @return Google_Service_Gmail_VacationSettings
|
177 |
-
*/
|
178 |
-
public function updateVacation($userId, Google_Service_Gmail_VacationSettings $postBody, $optParams = array())
|
179 |
-
{
|
180 |
-
$params = array('userId' => $userId, 'postBody' => $postBody);
|
181 |
-
$params = array_merge($params, $optParams);
|
182 |
-
return $this->call('updateVacation', array($params), "Google_Service_Gmail_VacationSettings");
|
183 |
-
}
|
184 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsDelegates.php
DELETED
@@ -1,119 +0,0 @@
|
|
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 |
-
* The "delegates" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $gmailService = new Google_Service_Gmail(...);
|
23 |
-
* $delegates = $gmailService->delegates;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_Gmail_Resource_UsersSettingsDelegates extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Adds a delegate with its verification status set directly to `accepted`,
|
30 |
-
* without sending any verification email. The delegate user must be a member
|
31 |
-
* of the same G Suite organization as the delegator user.
|
32 |
-
*
|
33 |
-
* Gmail imposes limitations on the number of delegates and delegators each user
|
34 |
-
* in a G Suite organization can have. These limits depend on your organization,
|
35 |
-
* but in general each user can have up to 25 delegates and up to 10 delegators.
|
36 |
-
*
|
37 |
-
* Note that a delegate user must be referred to by their primary email address,
|
38 |
-
* and not an email alias.
|
39 |
-
*
|
40 |
-
* Also note that when a new delegate is created, there may be up to a one
|
41 |
-
* minute delay before the new delegate is available for use.
|
42 |
-
*
|
43 |
-
* This method is only available to service account clients that have been
|
44 |
-
* delegated domain-wide authority. (delegates.create)
|
45 |
-
*
|
46 |
-
* @param string $userId User's email address. The special value "me" can be
|
47 |
-
* used to indicate the authenticated user.
|
48 |
-
* @param Google_Service_Gmail_Delegate $postBody
|
49 |
-
* @param array $optParams Optional parameters.
|
50 |
-
* @return Google_Service_Gmail_Delegate
|
51 |
-
*/
|
52 |
-
public function create($userId, Google_Service_Gmail_Delegate $postBody, $optParams = array())
|
53 |
-
{
|
54 |
-
$params = array('userId' => $userId, 'postBody' => $postBody);
|
55 |
-
$params = array_merge($params, $optParams);
|
56 |
-
return $this->call('create', array($params), "Google_Service_Gmail_Delegate");
|
57 |
-
}
|
58 |
-
/**
|
59 |
-
* Removes the specified delegate (which can be of any verification status), and
|
60 |
-
* revokes any verification that may have been required for using it.
|
61 |
-
*
|
62 |
-
* Note that a delegate user must be referred to by their primary email address,
|
63 |
-
* and not an email alias.
|
64 |
-
*
|
65 |
-
* This method is only available to service account clients that have been
|
66 |
-
* delegated domain-wide authority. (delegates.delete)
|
67 |
-
*
|
68 |
-
* @param string $userId User's email address. The special value "me" can be
|
69 |
-
* used to indicate the authenticated user.
|
70 |
-
* @param string $delegateEmail The email address of the user to be removed as a
|
71 |
-
* delegate.
|
72 |
-
* @param array $optParams Optional parameters.
|
73 |
-
*/
|
74 |
-
public function delete($userId, $delegateEmail, $optParams = array())
|
75 |
-
{
|
76 |
-
$params = array('userId' => $userId, 'delegateEmail' => $delegateEmail);
|
77 |
-
$params = array_merge($params, $optParams);
|
78 |
-
return $this->call('delete', array($params));
|
79 |
-
}
|
80 |
-
/**
|
81 |
-
* Gets the specified delegate.
|
82 |
-
*
|
83 |
-
* Note that a delegate user must be referred to by their primary email address,
|
84 |
-
* and not an email alias.
|
85 |
-
*
|
86 |
-
* This method is only available to service account clients that have been
|
87 |
-
* delegated domain-wide authority. (delegates.get)
|
88 |
-
*
|
89 |
-
* @param string $userId User's email address. The special value "me" can be
|
90 |
-
* used to indicate the authenticated user.
|
91 |
-
* @param string $delegateEmail The email address of the user whose delegate
|
92 |
-
* relationship is to be retrieved.
|
93 |
-
* @param array $optParams Optional parameters.
|
94 |
-
* @return Google_Service_Gmail_Delegate
|
95 |
-
*/
|
96 |
-
public function get($userId, $delegateEmail, $optParams = array())
|
97 |
-
{
|
98 |
-
$params = array('userId' => $userId, 'delegateEmail' => $delegateEmail);
|
99 |
-
$params = array_merge($params, $optParams);
|
100 |
-
return $this->call('get', array($params), "Google_Service_Gmail_Delegate");
|
101 |
-
}
|
102 |
-
/**
|
103 |
-
* Lists the delegates for the specified account.
|
104 |
-
*
|
105 |
-
* This method is only available to service account clients that have been
|
106 |
-
* delegated domain-wide authority. (delegates.listUsersSettingsDelegates)
|
107 |
-
*
|
108 |
-
* @param string $userId User's email address. The special value "me" can be
|
109 |
-
* used to indicate the authenticated user.
|
110 |
-
* @param array $optParams Optional parameters.
|
111 |
-
* @return Google_Service_Gmail_ListDelegatesResponse
|
112 |
-
*/
|
113 |
-
public function listUsersSettingsDelegates($userId, $optParams = array())
|
114 |
-
{
|
115 |
-
$params = array('userId' => $userId);
|
116 |
-
$params = array_merge($params, $optParams);
|
117 |
-
return $this->call('list', array($params), "Google_Service_Gmail_ListDelegatesResponse");
|
118 |
-
}
|
119 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsFilters.php
DELETED
@@ -1,86 +0,0 @@
|
|
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 |
-
* The "filters" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $gmailService = new Google_Service_Gmail(...);
|
23 |
-
* $filters = $gmailService->filters;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_Gmail_Resource_UsersSettingsFilters extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Creates a filter. (filters.create)
|
30 |
-
*
|
31 |
-
* @param string $userId User's email address. The special value "me" can be
|
32 |
-
* used to indicate the authenticated user.
|
33 |
-
* @param Google_Service_Gmail_Filter $postBody
|
34 |
-
* @param array $optParams Optional parameters.
|
35 |
-
* @return Google_Service_Gmail_Filter
|
36 |
-
*/
|
37 |
-
public function create($userId, Google_Service_Gmail_Filter $postBody, $optParams = array())
|
38 |
-
{
|
39 |
-
$params = array('userId' => $userId, 'postBody' => $postBody);
|
40 |
-
$params = array_merge($params, $optParams);
|
41 |
-
return $this->call('create', array($params), "Google_Service_Gmail_Filter");
|
42 |
-
}
|
43 |
-
/**
|
44 |
-
* Deletes a filter. (filters.delete)
|
45 |
-
*
|
46 |
-
* @param string $userId User's email address. The special value "me" can be
|
47 |
-
* used to indicate the authenticated user.
|
48 |
-
* @param string $id The ID of the filter to be deleted.
|
49 |
-
* @param array $optParams Optional parameters.
|
50 |
-
*/
|
51 |
-
public function delete($userId, $id, $optParams = array())
|
52 |
-
{
|
53 |
-
$params = array('userId' => $userId, 'id' => $id);
|
54 |
-
$params = array_merge($params, $optParams);
|
55 |
-
return $this->call('delete', array($params));
|
56 |
-
}
|
57 |
-
/**
|
58 |
-
* Gets a filter. (filters.get)
|
59 |
-
*
|
60 |
-
* @param string $userId User's email address. The special value "me" can be
|
61 |
-
* used to indicate the authenticated user.
|
62 |
-
* @param string $id The ID of the filter to be fetched.
|
63 |
-
* @param array $optParams Optional parameters.
|
64 |
-
* @return Google_Service_Gmail_Filter
|
65 |
-
*/
|
66 |
-
public function get($userId, $id, $optParams = array())
|
67 |
-
{
|
68 |
-
$params = array('userId' => $userId, 'id' => $id);
|
69 |
-
$params = array_merge($params, $optParams);
|
70 |
-
return $this->call('get', array($params), "Google_Service_Gmail_Filter");
|
71 |
-
}
|
72 |
-
/**
|
73 |
-
* Lists the message filters of a Gmail user. (filters.listUsersSettingsFilters)
|
74 |
-
*
|
75 |
-
* @param string $userId User's email address. The special value "me" can be
|
76 |
-
* used to indicate the authenticated user.
|
77 |
-
* @param array $optParams Optional parameters.
|
78 |
-
* @return Google_Service_Gmail_ListFiltersResponse
|
79 |
-
*/
|
80 |
-
public function listUsersSettingsFilters($userId, $optParams = array())
|
81 |
-
{
|
82 |
-
$params = array('userId' => $userId);
|
83 |
-
$params = array_merge($params, $optParams);
|
84 |
-
return $this->call('list', array($params), "Google_Service_Gmail_ListFiltersResponse");
|
85 |
-
}
|
86 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php
DELETED
@@ -1,97 +0,0 @@
|
|
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 |
-
* The "forwardingAddresses" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $gmailService = new Google_Service_Gmail(...);
|
23 |
-
* $forwardingAddresses = $gmailService->forwardingAddresses;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_Gmail_Resource_UsersSettingsForwardingAddresses extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Creates a forwarding address. If ownership verification is required, a
|
30 |
-
* message will be sent to the recipient and the resource's verification status
|
31 |
-
* will be set to `pending`; otherwise, the resource will be created with
|
32 |
-
* verification status set to `accepted`.
|
33 |
-
*
|
34 |
-
* This method is only available to service account clients that have been
|
35 |
-
* delegated domain-wide authority. (forwardingAddresses.create)
|
36 |
-
*
|
37 |
-
* @param string $userId User's email address. The special value "me" can be
|
38 |
-
* used to indicate the authenticated user.
|
39 |
-
* @param Google_Service_Gmail_ForwardingAddress $postBody
|
40 |
-
* @param array $optParams Optional parameters.
|
41 |
-
* @return Google_Service_Gmail_ForwardingAddress
|
42 |
-
*/
|
43 |
-
public function create($userId, Google_Service_Gmail_ForwardingAddress $postBody, $optParams = array())
|
44 |
-
{
|
45 |
-
$params = array('userId' => $userId, 'postBody' => $postBody);
|
46 |
-
$params = array_merge($params, $optParams);
|
47 |
-
return $this->call('create', array($params), "Google_Service_Gmail_ForwardingAddress");
|
48 |
-
}
|
49 |
-
/**
|
50 |
-
* Deletes the specified forwarding address and revokes any verification that
|
51 |
-
* may have been required.
|
52 |
-
*
|
53 |
-
* This method is only available to service account clients that have been
|
54 |
-
* delegated domain-wide authority. (forwardingAddresses.delete)
|
55 |
-
*
|
56 |
-
* @param string $userId User's email address. The special value "me" can be
|
57 |
-
* used to indicate the authenticated user.
|
58 |
-
* @param string $forwardingEmail The forwarding address to be deleted.
|
59 |
-
* @param array $optParams Optional parameters.
|
60 |
-
*/
|
61 |
-
public function delete($userId, $forwardingEmail, $optParams = array())
|
62 |
-
{
|
63 |
-
$params = array('userId' => $userId, 'forwardingEmail' => $forwardingEmail);
|
64 |
-
$params = array_merge($params, $optParams);
|
65 |
-
return $this->call('delete', array($params));
|
66 |
-
}
|
67 |
-
/**
|
68 |
-
* Gets the specified forwarding address. (forwardingAddresses.get)
|
69 |
-
*
|
70 |
-
* @param string $userId User's email address. The special value "me" can be
|
71 |
-
* used to indicate the authenticated user.
|
72 |
-
* @param string $forwardingEmail The forwarding address to be retrieved.
|
73 |
-
* @param array $optParams Optional parameters.
|
74 |
-
* @return Google_Service_Gmail_ForwardingAddress
|
75 |
-
*/
|
76 |
-
public function get($userId, $forwardingEmail, $optParams = array())
|
77 |
-
{
|
78 |
-
$params = array('userId' => $userId, 'forwardingEmail' => $forwardingEmail);
|
79 |
-
$params = array_merge($params, $optParams);
|
80 |
-
return $this->call('get', array($params), "Google_Service_Gmail_ForwardingAddress");
|
81 |
-
}
|
82 |
-
/**
|
83 |
-
* Lists the forwarding addresses for the specified account.
|
84 |
-
* (forwardingAddresses.listUsersSettingsForwardingAddresses)
|
85 |
-
*
|
86 |
-
* @param string $userId User's email address. The special value "me" can be
|
87 |
-
* used to indicate the authenticated user.
|
88 |
-
* @param array $optParams Optional parameters.
|
89 |
-
* @return Google_Service_Gmail_ListForwardingAddressesResponse
|
90 |
-
*/
|
91 |
-
public function listUsersSettingsForwardingAddresses($userId, $optParams = array())
|
92 |
-
{
|
93 |
-
$params = array('userId' => $userId);
|
94 |
-
$params = array_merge($params, $optParams);
|
95 |
-
return $this->call('list', array($params), "Google_Service_Gmail_ListForwardingAddressesResponse");
|
96 |
-
}
|
97 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php
DELETED
@@ -1,157 +0,0 @@
|
|
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 |
-
* The "sendAs" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $gmailService = new Google_Service_Gmail(...);
|
23 |
-
* $sendAs = $gmailService->sendAs;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_Gmail_Resource_UsersSettingsSendAs extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Creates a custom "from" send-as alias. If an SMTP MSA is specified, Gmail
|
30 |
-
* will attempt to connect to the SMTP service to validate the configuration
|
31 |
-
* before creating the alias. If ownership verification is required for the
|
32 |
-
* alias, a message will be sent to the email address and the resource's
|
33 |
-
* verification status will be set to `pending`; otherwise, the resource will be
|
34 |
-
* created with verification status set to `accepted`. If a signature is
|
35 |
-
* provided, Gmail will sanitize the HTML before saving it with the alias.
|
36 |
-
*
|
37 |
-
* This method is only available to service account clients that have been
|
38 |
-
* delegated domain-wide authority. (sendAs.create)
|
39 |
-
*
|
40 |
-
* @param string $userId User's email address. The special value "me" can be
|
41 |
-
* used to indicate the authenticated user.
|
42 |
-
* @param Google_Service_Gmail_SendAs $postBody
|
43 |
-
* @param array $optParams Optional parameters.
|
44 |
-
* @return Google_Service_Gmail_SendAs
|
45 |
-
*/
|
46 |
-
public function create($userId, Google_Service_Gmail_SendAs $postBody, $optParams = array())
|
47 |
-
{
|
48 |
-
$params = array('userId' => $userId, 'postBody' => $postBody);
|
49 |
-
$params = array_merge($params, $optParams);
|
50 |
-
return $this->call('create', array($params), "Google_Service_Gmail_SendAs");
|
51 |
-
}
|
52 |
-
/**
|
53 |
-
* Deletes the specified send-as alias. Revokes any verification that may have
|
54 |
-
* been required for using it.
|
55 |
-
*
|
56 |
-
* This method is only available to service account clients that have been
|
57 |
-
* delegated domain-wide authority. (sendAs.delete)
|
58 |
-
*
|
59 |
-
* @param string $userId User's email address. The special value "me" can be
|
60 |
-
* used to indicate the authenticated user.
|
61 |
-
* @param string $sendAsEmail The send-as alias to be deleted.
|
62 |
-
* @param array $optParams Optional parameters.
|
63 |
-
*/
|
64 |
-
public function delete($userId, $sendAsEmail, $optParams = array())
|
65 |
-
{
|
66 |
-
$params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail);
|
67 |
-
$params = array_merge($params, $optParams);
|
68 |
-
return $this->call('delete', array($params));
|
69 |
-
}
|
70 |
-
/**
|
71 |
-
* Gets the specified send-as alias. Fails with an HTTP 404 error if the
|
72 |
-
* specified address is not a member of the collection. (sendAs.get)
|
73 |
-
*
|
74 |
-
* @param string $userId User's email address. The special value "me" can be
|
75 |
-
* used to indicate the authenticated user.
|
76 |
-
* @param string $sendAsEmail The send-as alias to be retrieved.
|
77 |
-
* @param array $optParams Optional parameters.
|
78 |
-
* @return Google_Service_Gmail_SendAs
|
79 |
-
*/
|
80 |
-
public function get($userId, $sendAsEmail, $optParams = array())
|
81 |
-
{
|
82 |
-
$params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail);
|
83 |
-
$params = array_merge($params, $optParams);
|
84 |
-
return $this->call('get', array($params), "Google_Service_Gmail_SendAs");
|
85 |
-
}
|
86 |
-
/**
|
87 |
-
* Lists the send-as aliases for the specified account. The result includes the
|
88 |
-
* primary send-as address associated with the account as well as any custom
|
89 |
-
* "from" aliases. (sendAs.listUsersSettingsSendAs)
|
90 |
-
*
|
91 |
-
* @param string $userId User's email address. The special value "me" can be
|
92 |
-
* used to indicate the authenticated user.
|
93 |
-
* @param array $optParams Optional parameters.
|
94 |
-
* @return Google_Service_Gmail_ListSendAsResponse
|
95 |
-
*/
|
96 |
-
public function listUsersSettingsSendAs($userId, $optParams = array())
|
97 |
-
{
|
98 |
-
$params = array('userId' => $userId);
|
99 |
-
$params = array_merge($params, $optParams);
|
100 |
-
return $this->call('list', array($params), "Google_Service_Gmail_ListSendAsResponse");
|
101 |
-
}
|
102 |
-
/**
|
103 |
-
* Patch the specified send-as alias. (sendAs.patch)
|
104 |
-
*
|
105 |
-
* @param string $userId User's email address. The special value "me" can be
|
106 |
-
* used to indicate the authenticated user.
|
107 |
-
* @param string $sendAsEmail The send-as alias to be updated.
|
108 |
-
* @param Google_Service_Gmail_SendAs $postBody
|
109 |
-
* @param array $optParams Optional parameters.
|
110 |
-
* @return Google_Service_Gmail_SendAs
|
111 |
-
*/
|
112 |
-
public function patch($userId, $sendAsEmail, Google_Service_Gmail_SendAs $postBody, $optParams = array())
|
113 |
-
{
|
114 |
-
$params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'postBody' => $postBody);
|
115 |
-
$params = array_merge($params, $optParams);
|
116 |
-
return $this->call('patch', array($params), "Google_Service_Gmail_SendAs");
|
117 |
-
}
|
118 |
-
/**
|
119 |
-
* Updates a send-as alias. If a signature is provided, Gmail will sanitize the
|
120 |
-
* HTML before saving it with the alias.
|
121 |
-
*
|
122 |
-
* Addresses other than the primary address for the account can only be updated
|
123 |
-
* by service account clients that have been delegated domain-wide authority.
|
124 |
-
* (sendAs.update)
|
125 |
-
*
|
126 |
-
* @param string $userId User's email address. The special value "me" can be
|
127 |
-
* used to indicate the authenticated user.
|
128 |
-
* @param string $sendAsEmail The send-as alias to be updated.
|
129 |
-
* @param Google_Service_Gmail_SendAs $postBody
|
130 |
-
* @param array $optParams Optional parameters.
|
131 |
-
* @return Google_Service_Gmail_SendAs
|
132 |
-
*/
|
133 |
-
public function update($userId, $sendAsEmail, Google_Service_Gmail_SendAs $postBody, $optParams = array())
|
134 |
-
{
|
135 |
-
$params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'postBody' => $postBody);
|
136 |
-
$params = array_merge($params, $optParams);
|
137 |
-
return $this->call('update', array($params), "Google_Service_Gmail_SendAs");
|
138 |
-
}
|
139 |
-
/**
|
140 |
-
* Sends a verification email to the specified send-as alias address. The
|
141 |
-
* verification status must be `pending`.
|
142 |
-
*
|
143 |
-
* This method is only available to service account clients that have been
|
144 |
-
* delegated domain-wide authority. (sendAs.verify)
|
145 |
-
*
|
146 |
-
* @param string $userId User's email address. The special value "me" can be
|
147 |
-
* used to indicate the authenticated user.
|
148 |
-
* @param string $sendAsEmail The send-as alias to be verified.
|
149 |
-
* @param array $optParams Optional parameters.
|
150 |
-
*/
|
151 |
-
public function verify($userId, $sendAsEmail, $optParams = array())
|
152 |
-
{
|
153 |
-
$params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail);
|
154 |
-
$params = array_merge($params, $optParams);
|
155 |
-
return $this->call('verify', array($params));
|
156 |
-
}
|
157 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAsSmimeInfo.php
DELETED
@@ -1,115 +0,0 @@
|
|
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 |
-
* The "smimeInfo" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $gmailService = new Google_Service_Gmail(...);
|
23 |
-
* $smimeInfo = $gmailService->smimeInfo;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_Gmail_Resource_UsersSettingsSendAsSmimeInfo extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Deletes the specified S/MIME config for the specified send-as alias.
|
30 |
-
* (smimeInfo.delete)
|
31 |
-
*
|
32 |
-
* @param string $userId The user's email address. The special value `me` can be
|
33 |
-
* used to indicate the authenticated user.
|
34 |
-
* @param string $sendAsEmail The email address that appears in the "From:"
|
35 |
-
* header for mail sent using this alias.
|
36 |
-
* @param string $id The immutable ID for the SmimeInfo.
|
37 |
-
* @param array $optParams Optional parameters.
|
38 |
-
*/
|
39 |
-
public function delete($userId, $sendAsEmail, $id, $optParams = array())
|
40 |
-
{
|
41 |
-
$params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'id' => $id);
|
42 |
-
$params = array_merge($params, $optParams);
|
43 |
-
return $this->call('delete', array($params));
|
44 |
-
}
|
45 |
-
/**
|
46 |
-
* Gets the specified S/MIME config for the specified send-as alias.
|
47 |
-
* (smimeInfo.get)
|
48 |
-
*
|
49 |
-
* @param string $userId The user's email address. The special value `me` can be
|
50 |
-
* used to indicate the authenticated user.
|
51 |
-
* @param string $sendAsEmail The email address that appears in the "From:"
|
52 |
-
* header for mail sent using this alias.
|
53 |
-
* @param string $id The immutable ID for the SmimeInfo.
|
54 |
-
* @param array $optParams Optional parameters.
|
55 |
-
* @return Google_Service_Gmail_SmimeInfo
|
56 |
-
*/
|
57 |
-
public function get($userId, $sendAsEmail, $id, $optParams = array())
|
58 |
-
{
|
59 |
-
$params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'id' => $id);
|
60 |
-
$params = array_merge($params, $optParams);
|
61 |
-
return $this->call('get', array($params), "Google_Service_Gmail_SmimeInfo");
|
62 |
-
}
|
63 |
-
/**
|
64 |
-
* Insert (upload) the given S/MIME config for the specified send-as alias. Note
|
65 |
-
* that pkcs12 format is required for the key. (smimeInfo.insert)
|
66 |
-
*
|
67 |
-
* @param string $userId The user's email address. The special value `me` can be
|
68 |
-
* used to indicate the authenticated user.
|
69 |
-
* @param string $sendAsEmail The email address that appears in the "From:"
|
70 |
-
* header for mail sent using this alias.
|
71 |
-
* @param Google_Service_Gmail_SmimeInfo $postBody
|
72 |
-
* @param array $optParams Optional parameters.
|
73 |
-
* @return Google_Service_Gmail_SmimeInfo
|
74 |
-
*/
|
75 |
-
public function insert($userId, $sendAsEmail, Google_Service_Gmail_SmimeInfo $postBody, $optParams = array())
|
76 |
-
{
|
77 |
-
$params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'postBody' => $postBody);
|
78 |
-
$params = array_merge($params, $optParams);
|
79 |
-
return $this->call('insert', array($params), "Google_Service_Gmail_SmimeInfo");
|
80 |
-
}
|
81 |
-
/**
|
82 |
-
* Lists S/MIME configs for the specified send-as alias.
|
83 |
-
* (smimeInfo.listUsersSettingsSendAsSmimeInfo)
|
84 |
-
*
|
85 |
-
* @param string $userId The user's email address. The special value `me` can be
|
86 |
-
* used to indicate the authenticated user.
|
87 |
-
* @param string $sendAsEmail The email address that appears in the "From:"
|
88 |
-
* header for mail sent using this alias.
|
89 |
-
* @param array $optParams Optional parameters.
|
90 |
-
* @return Google_Service_Gmail_ListSmimeInfoResponse
|
91 |
-
*/
|
92 |
-
public function listUsersSettingsSendAsSmimeInfo($userId, $sendAsEmail, $optParams = array())
|
93 |
-
{
|
94 |
-
$params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail);
|
95 |
-
$params = array_merge($params, $optParams);
|
96 |
-
return $this->call('list', array($params), "Google_Service_Gmail_ListSmimeInfoResponse");
|
97 |
-
}
|
98 |
-
/**
|
99 |
-
* Sets the default S/MIME config for the specified send-as alias.
|
100 |
-
* (smimeInfo.setDefault)
|
101 |
-
*
|
102 |
-
* @param string $userId The user's email address. The special value `me` can be
|
103 |
-
* used to indicate the authenticated user.
|
104 |
-
* @param string $sendAsEmail The email address that appears in the "From:"
|
105 |
-
* header for mail sent using this alias.
|
106 |
-
* @param string $id The immutable ID for the SmimeInfo.
|
107 |
-
* @param array $optParams Optional parameters.
|
108 |
-
*/
|
109 |
-
public function setDefault($userId, $sendAsEmail, $id, $optParams = array())
|
110 |
-
{
|
111 |
-
$params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'id' => $id);
|
112 |
-
$params = array_merge($params, $optParams);
|
113 |
-
return $this->call('setDefault', array($params));
|
114 |
-
}
|
115 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php
DELETED
@@ -1,135 +0,0 @@
|
|
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 |
-
* The "threads" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $gmailService = new Google_Service_Gmail(...);
|
23 |
-
* $threads = $gmailService->threads;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_Gmail_Resource_UsersThreads extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Immediately and permanently deletes the specified thread. This operation
|
30 |
-
* cannot be undone. Prefer `threads.trash` instead. (threads.delete)
|
31 |
-
*
|
32 |
-
* @param string $userId The user's email address. The special value `me` can be
|
33 |
-
* used to indicate the authenticated user.
|
34 |
-
* @param string $id ID of the Thread to delete.
|
35 |
-
* @param array $optParams Optional parameters.
|
36 |
-
*/
|
37 |
-
public function delete($userId, $id, $optParams = array())
|
38 |
-
{
|
39 |
-
$params = array('userId' => $userId, 'id' => $id);
|
40 |
-
$params = array_merge($params, $optParams);
|
41 |
-
return $this->call('delete', array($params));
|
42 |
-
}
|
43 |
-
/**
|
44 |
-
* Gets the specified thread. (threads.get)
|
45 |
-
*
|
46 |
-
* @param string $userId The user's email address. The special value `me` can be
|
47 |
-
* used to indicate the authenticated user.
|
48 |
-
* @param string $id The ID of the thread to retrieve.
|
49 |
-
* @param array $optParams Optional parameters.
|
50 |
-
*
|
51 |
-
* @opt_param string format The format to return the messages in.
|
52 |
-
* @opt_param string metadataHeaders When given and format is METADATA, only
|
53 |
-
* include headers specified.
|
54 |
-
* @return Google_Service_Gmail_Thread
|
55 |
-
*/
|
56 |
-
public function get($userId, $id, $optParams = array())
|
57 |
-
{
|
58 |
-
$params = array('userId' => $userId, 'id' => $id);
|
59 |
-
$params = array_merge($params, $optParams);
|
60 |
-
return $this->call('get', array($params), "Google_Service_Gmail_Thread");
|
61 |
-
}
|
62 |
-
/**
|
63 |
-
* Lists the threads in the user's mailbox. (threads.listUsersThreads)
|
64 |
-
*
|
65 |
-
* @param string $userId The user's email address. The special value `me` can be
|
66 |
-
* used to indicate the authenticated user.
|
67 |
-
* @param array $optParams Optional parameters.
|
68 |
-
*
|
69 |
-
* @opt_param string maxResults Maximum number of threads to return.
|
70 |
-
* @opt_param bool includeSpamTrash Include threads from `SPAM` and `TRASH` in
|
71 |
-
* the results.
|
72 |
-
* @opt_param string q Only return threads matching the specified query.
|
73 |
-
* Supports the same query format as the Gmail search box. For example,
|
74 |
-
* `"from:someuser@example.com rfc822msgid: is:unread"`. Parameter cannot be
|
75 |
-
* used when accessing the api using the gmail.metadata scope.
|
76 |
-
* @opt_param string pageToken Page token to retrieve a specific page of results
|
77 |
-
* in the list.
|
78 |
-
* @opt_param string labelIds Only return threads with labels that match all of
|
79 |
-
* the specified label IDs.
|
80 |
-
* @return Google_Service_Gmail_ListThreadsResponse
|
81 |
-
*/
|
82 |
-
public function listUsersThreads($userId, $optParams = array())
|
83 |
-
{
|
84 |
-
$params = array('userId' => $userId);
|
85 |
-
$params = array_merge($params, $optParams);
|
86 |
-
return $this->call('list', array($params), "Google_Service_Gmail_ListThreadsResponse");
|
87 |
-
}
|
88 |
-
/**
|
89 |
-
* Modifies the labels applied to the thread. This applies to all messages in
|
90 |
-
* the thread. (threads.modify)
|
91 |
-
*
|
92 |
-
* @param string $userId The user's email address. The special value `me` can be
|
93 |
-
* used to indicate the authenticated user.
|
94 |
-
* @param string $id The ID of the thread to modify.
|
95 |
-
* @param Google_Service_Gmail_ModifyThreadRequest $postBody
|
96 |
-
* @param array $optParams Optional parameters.
|
97 |
-
* @return Google_Service_Gmail_Thread
|
98 |
-
*/
|
99 |
-
public function modify($userId, $id, Google_Service_Gmail_ModifyThreadRequest $postBody, $optParams = array())
|
100 |
-
{
|
101 |
-
$params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody);
|
102 |
-
$params = array_merge($params, $optParams);
|
103 |
-
return $this->call('modify', array($params), "Google_Service_Gmail_Thread");
|
104 |
-
}
|
105 |
-
/**
|
106 |
-
* Moves the specified thread to the trash. (threads.trash)
|
107 |
-
*
|
108 |
-
* @param string $userId The user's email address. The special value `me` can be
|
109 |
-
* used to indicate the authenticated user.
|
110 |
-
* @param string $id The ID of the thread to Trash.
|
111 |
-
* @param array $optParams Optional parameters.
|
112 |
-
* @return Google_Service_Gmail_Thread
|
113 |
-
*/
|
114 |
-
public function trash($userId, $id, $optParams = array())
|
115 |
-
{
|
116 |
-
$params = array('userId' => $userId, 'id' => $id);
|
117 |
-
$params = array_merge($params, $optParams);
|
118 |
-
return $this->call('trash', array($params), "Google_Service_Gmail_Thread");
|
119 |
-
}
|
120 |
-
/**
|
121 |
-
* Removes the specified thread from the trash. (threads.untrash)
|
122 |
-
*
|
123 |
-
* @param string $userId The user's email address. The special value `me` can be
|
124 |
-
* used to indicate the authenticated user.
|
125 |
-
* @param string $id The ID of the thread to remove from Trash.
|
126 |
-
* @param array $optParams Optional parameters.
|
127 |
-
* @return Google_Service_Gmail_Thread
|
128 |
-
*/
|
129 |
-
public function untrash($userId, $id, $optParams = array())
|
130 |
-
{
|
131 |
-
$params = array('userId' => $userId, 'id' => $id);
|
132 |
-
$params = array_merge($params, $optParams);
|
133 |
-
return $this->call('untrash', array($params), "Google_Service_Gmail_Thread");
|
134 |
-
}
|
135 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/SendAs.php
DELETED
@@ -1,109 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_SendAs extends Google_Model
|
19 |
-
{
|
20 |
-
public $displayName;
|
21 |
-
public $isDefault;
|
22 |
-
public $isPrimary;
|
23 |
-
public $replyToAddress;
|
24 |
-
public $sendAsEmail;
|
25 |
-
public $signature;
|
26 |
-
protected $smtpMsaType = 'Google_Service_Gmail_SmtpMsa';
|
27 |
-
protected $smtpMsaDataType = '';
|
28 |
-
public $treatAsAlias;
|
29 |
-
public $verificationStatus;
|
30 |
-
|
31 |
-
public function setDisplayName($displayName)
|
32 |
-
{
|
33 |
-
$this->displayName = $displayName;
|
34 |
-
}
|
35 |
-
public function getDisplayName()
|
36 |
-
{
|
37 |
-
return $this->displayName;
|
38 |
-
}
|
39 |
-
public function setIsDefault($isDefault)
|
40 |
-
{
|
41 |
-
$this->isDefault = $isDefault;
|
42 |
-
}
|
43 |
-
public function getIsDefault()
|
44 |
-
{
|
45 |
-
return $this->isDefault;
|
46 |
-
}
|
47 |
-
public function setIsPrimary($isPrimary)
|
48 |
-
{
|
49 |
-
$this->isPrimary = $isPrimary;
|
50 |
-
}
|
51 |
-
public function getIsPrimary()
|
52 |
-
{
|
53 |
-
return $this->isPrimary;
|
54 |
-
}
|
55 |
-
public function setReplyToAddress($replyToAddress)
|
56 |
-
{
|
57 |
-
$this->replyToAddress = $replyToAddress;
|
58 |
-
}
|
59 |
-
public function getReplyToAddress()
|
60 |
-
{
|
61 |
-
return $this->replyToAddress;
|
62 |
-
}
|
63 |
-
public function setSendAsEmail($sendAsEmail)
|
64 |
-
{
|
65 |
-
$this->sendAsEmail = $sendAsEmail;
|
66 |
-
}
|
67 |
-
public function getSendAsEmail()
|
68 |
-
{
|
69 |
-
return $this->sendAsEmail;
|
70 |
-
}
|
71 |
-
public function setSignature($signature)
|
72 |
-
{
|
73 |
-
$this->signature = $signature;
|
74 |
-
}
|
75 |
-
public function getSignature()
|
76 |
-
{
|
77 |
-
return $this->signature;
|
78 |
-
}
|
79 |
-
/**
|
80 |
-
* @param Google_Service_Gmail_SmtpMsa
|
81 |
-
*/
|
82 |
-
public function setSmtpMsa(Google_Service_Gmail_SmtpMsa $smtpMsa)
|
83 |
-
{
|
84 |
-
$this->smtpMsa = $smtpMsa;
|
85 |
-
}
|
86 |
-
/**
|
87 |
-
* @return Google_Service_Gmail_SmtpMsa
|
88 |
-
*/
|
89 |
-
public function getSmtpMsa()
|
90 |
-
{
|
91 |
-
return $this->smtpMsa;
|
92 |
-
}
|
93 |
-
public function setTreatAsAlias($treatAsAlias)
|
94 |
-
{
|
95 |
-
$this->treatAsAlias = $treatAsAlias;
|
96 |
-
}
|
97 |
-
public function getTreatAsAlias()
|
98 |
-
{
|
99 |
-
return $this->treatAsAlias;
|
100 |
-
}
|
101 |
-
public function setVerificationStatus($verificationStatus)
|
102 |
-
{
|
103 |
-
$this->verificationStatus = $verificationStatus;
|
104 |
-
}
|
105 |
-
public function getVerificationStatus()
|
106 |
-
{
|
107 |
-
return $this->verificationStatus;
|
108 |
-
}
|
109 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/SmimeInfo.php
DELETED
@@ -1,84 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_SmimeInfo extends Google_Model
|
19 |
-
{
|
20 |
-
public $encryptedKeyPassword;
|
21 |
-
public $expiration;
|
22 |
-
public $id;
|
23 |
-
public $isDefault;
|
24 |
-
public $issuerCn;
|
25 |
-
public $pem;
|
26 |
-
public $pkcs12;
|
27 |
-
|
28 |
-
public function setEncryptedKeyPassword($encryptedKeyPassword)
|
29 |
-
{
|
30 |
-
$this->encryptedKeyPassword = $encryptedKeyPassword;
|
31 |
-
}
|
32 |
-
public function getEncryptedKeyPassword()
|
33 |
-
{
|
34 |
-
return $this->encryptedKeyPassword;
|
35 |
-
}
|
36 |
-
public function setExpiration($expiration)
|
37 |
-
{
|
38 |
-
$this->expiration = $expiration;
|
39 |
-
}
|
40 |
-
public function getExpiration()
|
41 |
-
{
|
42 |
-
return $this->expiration;
|
43 |
-
}
|
44 |
-
public function setId($id)
|
45 |
-
{
|
46 |
-
$this->id = $id;
|
47 |
-
}
|
48 |
-
public function getId()
|
49 |
-
{
|
50 |
-
return $this->id;
|
51 |
-
}
|
52 |
-
public function setIsDefault($isDefault)
|
53 |
-
{
|
54 |
-
$this->isDefault = $isDefault;
|
55 |
-
}
|
56 |
-
public function getIsDefault()
|
57 |
-
{
|
58 |
-
return $this->isDefault;
|
59 |
-
}
|
60 |
-
public function setIssuerCn($issuerCn)
|
61 |
-
{
|
62 |
-
$this->issuerCn = $issuerCn;
|
63 |
-
}
|
64 |
-
public function getIssuerCn()
|
65 |
-
{
|
66 |
-
return $this->issuerCn;
|
67 |
-
}
|
68 |
-
public function setPem($pem)
|
69 |
-
{
|
70 |
-
$this->pem = $pem;
|
71 |
-
}
|
72 |
-
public function getPem()
|
73 |
-
{
|
74 |
-
return $this->pem;
|
75 |
-
}
|
76 |
-
public function setPkcs12($pkcs12)
|
77 |
-
{
|
78 |
-
$this->pkcs12 = $pkcs12;
|
79 |
-
}
|
80 |
-
public function getPkcs12()
|
81 |
-
{
|
82 |
-
return $this->pkcs12;
|
83 |
-
}
|
84 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/SmtpMsa.php
DELETED
@@ -1,66 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_SmtpMsa extends Google_Model
|
19 |
-
{
|
20 |
-
public $host;
|
21 |
-
public $password;
|
22 |
-
public $port;
|
23 |
-
public $securityMode;
|
24 |
-
public $username;
|
25 |
-
|
26 |
-
public function setHost($host)
|
27 |
-
{
|
28 |
-
$this->host = $host;
|
29 |
-
}
|
30 |
-
public function getHost()
|
31 |
-
{
|
32 |
-
return $this->host;
|
33 |
-
}
|
34 |
-
public function setPassword($password)
|
35 |
-
{
|
36 |
-
$this->password = $password;
|
37 |
-
}
|
38 |
-
public function getPassword()
|
39 |
-
{
|
40 |
-
return $this->password;
|
41 |
-
}
|
42 |
-
public function setPort($port)
|
43 |
-
{
|
44 |
-
$this->port = $port;
|
45 |
-
}
|
46 |
-
public function getPort()
|
47 |
-
{
|
48 |
-
return $this->port;
|
49 |
-
}
|
50 |
-
public function setSecurityMode($securityMode)
|
51 |
-
{
|
52 |
-
$this->securityMode = $securityMode;
|
53 |
-
}
|
54 |
-
public function getSecurityMode()
|
55 |
-
{
|
56 |
-
return $this->securityMode;
|
57 |
-
}
|
58 |
-
public function setUsername($username)
|
59 |
-
{
|
60 |
-
$this->username = $username;
|
61 |
-
}
|
62 |
-
public function getUsername()
|
63 |
-
{
|
64 |
-
return $this->username;
|
65 |
-
}
|
66 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/Thread.php
DELETED
@@ -1,65 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_Thread extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'messages';
|
21 |
-
public $historyId;
|
22 |
-
public $id;
|
23 |
-
protected $messagesType = 'Google_Service_Gmail_Message';
|
24 |
-
protected $messagesDataType = 'array';
|
25 |
-
public $snippet;
|
26 |
-
|
27 |
-
public function setHistoryId($historyId)
|
28 |
-
{
|
29 |
-
$this->historyId = $historyId;
|
30 |
-
}
|
31 |
-
public function getHistoryId()
|
32 |
-
{
|
33 |
-
return $this->historyId;
|
34 |
-
}
|
35 |
-
public function setId($id)
|
36 |
-
{
|
37 |
-
$this->id = $id;
|
38 |
-
}
|
39 |
-
public function getId()
|
40 |
-
{
|
41 |
-
return $this->id;
|
42 |
-
}
|
43 |
-
/**
|
44 |
-
* @param Google_Service_Gmail_Message
|
45 |
-
*/
|
46 |
-
public function setMessages($messages)
|
47 |
-
{
|
48 |
-
$this->messages = $messages;
|
49 |
-
}
|
50 |
-
/**
|
51 |
-
* @return Google_Service_Gmail_Message
|
52 |
-
*/
|
53 |
-
public function getMessages()
|
54 |
-
{
|
55 |
-
return $this->messages;
|
56 |
-
}
|
57 |
-
public function setSnippet($snippet)
|
58 |
-
{
|
59 |
-
$this->snippet = $snippet;
|
60 |
-
}
|
61 |
-
public function getSnippet()
|
62 |
-
{
|
63 |
-
return $this->snippet;
|
64 |
-
}
|
65 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/VacationSettings.php
DELETED
@@ -1,93 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_VacationSettings extends Google_Model
|
19 |
-
{
|
20 |
-
public $enableAutoReply;
|
21 |
-
public $endTime;
|
22 |
-
public $responseBodyHtml;
|
23 |
-
public $responseBodyPlainText;
|
24 |
-
public $responseSubject;
|
25 |
-
public $restrictToContacts;
|
26 |
-
public $restrictToDomain;
|
27 |
-
public $startTime;
|
28 |
-
|
29 |
-
public function setEnableAutoReply($enableAutoReply)
|
30 |
-
{
|
31 |
-
$this->enableAutoReply = $enableAutoReply;
|
32 |
-
}
|
33 |
-
public function getEnableAutoReply()
|
34 |
-
{
|
35 |
-
return $this->enableAutoReply;
|
36 |
-
}
|
37 |
-
public function setEndTime($endTime)
|
38 |
-
{
|
39 |
-
$this->endTime = $endTime;
|
40 |
-
}
|
41 |
-
public function getEndTime()
|
42 |
-
{
|
43 |
-
return $this->endTime;
|
44 |
-
}
|
45 |
-
public function setResponseBodyHtml($responseBodyHtml)
|
46 |
-
{
|
47 |
-
$this->responseBodyHtml = $responseBodyHtml;
|
48 |
-
}
|
49 |
-
public function getResponseBodyHtml()
|
50 |
-
{
|
51 |
-
return $this->responseBodyHtml;
|
52 |
-
}
|
53 |
-
public function setResponseBodyPlainText($responseBodyPlainText)
|
54 |
-
{
|
55 |
-
$this->responseBodyPlainText = $responseBodyPlainText;
|
56 |
-
}
|
57 |
-
public function getResponseBodyPlainText()
|
58 |
-
{
|
59 |
-
return $this->responseBodyPlainText;
|
60 |
-
}
|
61 |
-
public function setResponseSubject($responseSubject)
|
62 |
-
{
|
63 |
-
$this->responseSubject = $responseSubject;
|
64 |
-
}
|
65 |
-
public function getResponseSubject()
|
66 |
-
{
|
67 |
-
return $this->responseSubject;
|
68 |
-
}
|
69 |
-
public function setRestrictToContacts($restrictToContacts)
|
70 |
-
{
|
71 |
-
$this->restrictToContacts = $restrictToContacts;
|
72 |
-
}
|
73 |
-
public function getRestrictToContacts()
|
74 |
-
{
|
75 |
-
return $this->restrictToContacts;
|
76 |
-
}
|
77 |
-
public function setRestrictToDomain($restrictToDomain)
|
78 |
-
{
|
79 |
-
$this->restrictToDomain = $restrictToDomain;
|
80 |
-
}
|
81 |
-
public function getRestrictToDomain()
|
82 |
-
{
|
83 |
-
return $this->restrictToDomain;
|
84 |
-
}
|
85 |
-
public function setStartTime($startTime)
|
86 |
-
{
|
87 |
-
$this->startTime = $startTime;
|
88 |
-
}
|
89 |
-
public function getStartTime()
|
90 |
-
{
|
91 |
-
return $this->startTime;
|
92 |
-
}
|
93 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/WatchRequest.php
DELETED
@@ -1,49 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_WatchRequest extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'labelIds';
|
21 |
-
public $labelFilterAction;
|
22 |
-
public $labelIds;
|
23 |
-
public $topicName;
|
24 |
-
|
25 |
-
public function setLabelFilterAction($labelFilterAction)
|
26 |
-
{
|
27 |
-
$this->labelFilterAction = $labelFilterAction;
|
28 |
-
}
|
29 |
-
public function getLabelFilterAction()
|
30 |
-
{
|
31 |
-
return $this->labelFilterAction;
|
32 |
-
}
|
33 |
-
public function setLabelIds($labelIds)
|
34 |
-
{
|
35 |
-
$this->labelIds = $labelIds;
|
36 |
-
}
|
37 |
-
public function getLabelIds()
|
38 |
-
{
|
39 |
-
return $this->labelIds;
|
40 |
-
}
|
41 |
-
public function setTopicName($topicName)
|
42 |
-
{
|
43 |
-
$this->topicName = $topicName;
|
44 |
-
}
|
45 |
-
public function getTopicName()
|
46 |
-
{
|
47 |
-
return $this->topicName;
|
48 |
-
}
|
49 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient-services/src/Google/Service/Gmail/WatchResponse.php
DELETED
@@ -1,39 +0,0 @@
|
|
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 |
-
class Google_Service_Gmail_WatchResponse extends Google_Model
|
19 |
-
{
|
20 |
-
public $expiration;
|
21 |
-
public $historyId;
|
22 |
-
|
23 |
-
public function setExpiration($expiration)
|
24 |
-
{
|
25 |
-
$this->expiration = $expiration;
|
26 |
-
}
|
27 |
-
public function getExpiration()
|
28 |
-
{
|
29 |
-
return $this->expiration;
|
30 |
-
}
|
31 |
-
public function setHistoryId($historyId)
|
32 |
-
{
|
33 |
-
$this->historyId = $historyId;
|
34 |
-
}
|
35 |
-
public function getHistoryId()
|
36 |
-
{
|
37 |
-
return $this->historyId;
|
38 |
-
}
|
39 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient/src/Google/AccessToken/Revoke.php
DELETED
@@ -1,78 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/*
|
4 |
-
* Copyright 2008 Google Inc.
|
5 |
-
*
|
6 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
7 |
-
* you may not use this file except in compliance with the License.
|
8 |
-
* You may obtain a copy of the License at
|
9 |
-
*
|
10 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
11 |
-
*
|
12 |
-
* Unless required by applicable law or agreed to in writing, software
|
13 |
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
14 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15 |
-
* See the License for the specific language governing permissions and
|
16 |
-
* limitations under the License.
|
17 |
-
*/
|
18 |
-
|
19 |
-
use Google\Auth\HttpHandler\HttpHandlerFactory;
|
20 |
-
use GuzzleHttp\ClientInterface;
|
21 |
-
use GuzzleHttp\Psr7;
|
22 |
-
use GuzzleHttp\Psr7\Request;
|
23 |
-
|
24 |
-
/**
|
25 |
-
* Wrapper around Google Access Tokens which provides convenience functions
|
26 |
-
*
|
27 |
-
*/
|
28 |
-
class Google_AccessToken_Revoke
|
29 |
-
{
|
30 |
-
/**
|
31 |
-
* @var GuzzleHttp\ClientInterface The http client
|
32 |
-
*/
|
33 |
-
private $http;
|
34 |
-
|
35 |
-
/**
|
36 |
-
* Instantiates the class, but does not initiate the login flow, leaving it
|
37 |
-
* to the discretion of the caller.
|
38 |
-
*/
|
39 |
-
public function __construct(ClientInterface $http = null)
|
40 |
-
{
|
41 |
-
$this->http = $http;
|
42 |
-
}
|
43 |
-
|
44 |
-
/**
|
45 |
-
* Revoke an OAuth2 access token or refresh token. This method will revoke the current access
|
46 |
-
* token, if a token isn't provided.
|
47 |
-
*
|
48 |
-
* @param string|array $token The token (access token or a refresh token) that should be revoked.
|
49 |
-
* @return boolean Returns True if the revocation was successful, otherwise False.
|
50 |
-
*/
|
51 |
-
public function revokeToken($token)
|
52 |
-
{
|
53 |
-
if (is_array($token)) {
|
54 |
-
if (isset($token['refresh_token'])) {
|
55 |
-
$token = $token['refresh_token'];
|
56 |
-
} else {
|
57 |
-
$token = $token['access_token'];
|
58 |
-
}
|
59 |
-
}
|
60 |
-
|
61 |
-
$body = Psr7\stream_for(http_build_query(array('token' => $token)));
|
62 |
-
$request = new Request(
|
63 |
-
'POST',
|
64 |
-
Google_Client::OAUTH2_REVOKE_URI,
|
65 |
-
[
|
66 |
-
'Cache-Control' => 'no-store',
|
67 |
-
'Content-Type' => 'application/x-www-form-urlencoded',
|
68 |
-
],
|
69 |
-
$body
|
70 |
-
);
|
71 |
-
|
72 |
-
$httpHandler = HttpHandlerFactory::build($this->http);
|
73 |
-
|
74 |
-
$response = $httpHandler($request);
|
75 |
-
|
76 |
-
return $response->getStatusCode() == 200;
|
77 |
-
}
|
78 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient/src/Google/AccessToken/Verify.php
DELETED
@@ -1,273 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/*
|
4 |
-
* Copyright 2008 Google Inc.
|
5 |
-
*
|
6 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
7 |
-
* you may not use this file except in compliance with the License.
|
8 |
-
* You may obtain a copy of the License at
|
9 |
-
*
|
10 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
11 |
-
*
|
12 |
-
* Unless required by applicable law or agreed to in writing, software
|
13 |
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
14 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15 |
-
* See the License for the specific language governing permissions and
|
16 |
-
* limitations under the License.
|
17 |
-
*/
|
18 |
-
|
19 |
-
use Firebase\JWT\ExpiredException as ExpiredExceptionV3;
|
20 |
-
use Firebase\JWT\SignatureInvalidException;
|
21 |
-
use GuzzleHttp\Client;
|
22 |
-
use GuzzleHttp\ClientInterface;
|
23 |
-
use Psr\Cache\CacheItemPoolInterface;
|
24 |
-
use Google\Auth\Cache\MemoryCacheItemPool;
|
25 |
-
use Stash\Driver\FileSystem;
|
26 |
-
use Stash\Pool;
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Wrapper around Google Access Tokens which provides convenience functions
|
30 |
-
*
|
31 |
-
*/
|
32 |
-
class Google_AccessToken_Verify
|
33 |
-
{
|
34 |
-
const FEDERATED_SIGNON_CERT_URL = 'https://www.googleapis.com/oauth2/v3/certs';
|
35 |
-
const OAUTH2_ISSUER = 'accounts.google.com';
|
36 |
-
const OAUTH2_ISSUER_HTTPS = 'https://accounts.google.com';
|
37 |
-
|
38 |
-
/**
|
39 |
-
* @var GuzzleHttp\ClientInterface The http client
|
40 |
-
*/
|
41 |
-
private $http;
|
42 |
-
|
43 |
-
/**
|
44 |
-
* @var Psr\Cache\CacheItemPoolInterface cache class
|
45 |
-
*/
|
46 |
-
private $cache;
|
47 |
-
|
48 |
-
/**
|
49 |
-
* Instantiates the class, but does not initiate the login flow, leaving it
|
50 |
-
* to the discretion of the caller.
|
51 |
-
*/
|
52 |
-
public function __construct(
|
53 |
-
ClientInterface $http = null,
|
54 |
-
CacheItemPoolInterface $cache = null,
|
55 |
-
$jwt = null
|
56 |
-
) {
|
57 |
-
if (null === $http) {
|
58 |
-
$http = new Client();
|
59 |
-
}
|
60 |
-
|
61 |
-
if (null === $cache) {
|
62 |
-
$cache = new MemoryCacheItemPool;
|
63 |
-
}
|
64 |
-
|
65 |
-
$this->http = $http;
|
66 |
-
$this->cache = $cache;
|
67 |
-
$this->jwt = $jwt ?: $this->getJwtService();
|
68 |
-
}
|
69 |
-
|
70 |
-
/**
|
71 |
-
* Verifies an id token and returns the authenticated apiLoginTicket.
|
72 |
-
* Throws an exception if the id token is not valid.
|
73 |
-
* The audience parameter can be used to control which id tokens are
|
74 |
-
* accepted. By default, the id token must have been issued to this OAuth2 client.
|
75 |
-
*
|
76 |
-
* @param $audience
|
77 |
-
* @return array the token payload, if successful
|
78 |
-
*/
|
79 |
-
public function verifyIdToken($idToken, $audience = null)
|
80 |
-
{
|
81 |
-
if (empty($idToken)) {
|
82 |
-
throw new LogicException('id_token cannot be null');
|
83 |
-
}
|
84 |
-
|
85 |
-
// set phpseclib constants if applicable
|
86 |
-
$this->setPhpsecConstants();
|
87 |
-
|
88 |
-
// Check signature
|
89 |
-
$certs = $this->getFederatedSignOnCerts();
|
90 |
-
foreach ($certs as $cert) {
|
91 |
-
$bigIntClass = $this->getBigIntClass();
|
92 |
-
$rsaClass = $this->getRsaClass();
|
93 |
-
$modulus = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['n']), 256);
|
94 |
-
$exponent = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['e']), 256);
|
95 |
-
|
96 |
-
$rsa = new $rsaClass();
|
97 |
-
$rsa->loadKey(array('n' => $modulus, 'e' => $exponent));
|
98 |
-
|
99 |
-
try {
|
100 |
-
$payload = $this->jwt->decode(
|
101 |
-
$idToken,
|
102 |
-
$rsa->getPublicKey(),
|
103 |
-
array('RS256')
|
104 |
-
);
|
105 |
-
|
106 |
-
if (property_exists($payload, 'aud')) {
|
107 |
-
if ($audience && $payload->aud != $audience) {
|
108 |
-
return false;
|
109 |
-
}
|
110 |
-
}
|
111 |
-
|
112 |
-
// support HTTP and HTTPS issuers
|
113 |
-
// @see https://developers.google.com/identity/sign-in/web/backend-auth
|
114 |
-
$issuers = array(self::OAUTH2_ISSUER, self::OAUTH2_ISSUER_HTTPS);
|
115 |
-
if (!isset($payload->iss) || !in_array($payload->iss, $issuers)) {
|
116 |
-
return false;
|
117 |
-
}
|
118 |
-
|
119 |
-
return (array) $payload;
|
120 |
-
} catch (ExpiredException $e) {
|
121 |
-
return false;
|
122 |
-
} catch (ExpiredExceptionV3 $e) {
|
123 |
-
return false;
|
124 |
-
} catch (SignatureInvalidException $e) {
|
125 |
-
// continue
|
126 |
-
} catch (DomainException $e) {
|
127 |
-
// continue
|
128 |
-
}
|
129 |
-
}
|
130 |
-
|
131 |
-
return false;
|
132 |
-
}
|
133 |
-
|
134 |
-
private function getCache()
|
135 |
-
{
|
136 |
-
return $this->cache;
|
137 |
-
}
|
138 |
-
|
139 |
-
/**
|
140 |
-
* Retrieve and cache a certificates file.
|
141 |
-
*
|
142 |
-
* @param $url string location
|
143 |
-
* @throws Google_Exception
|
144 |
-
* @return array certificates
|
145 |
-
*/
|
146 |
-
private function retrieveCertsFromLocation($url)
|
147 |
-
{
|
148 |
-
// If we're retrieving a local file, just grab it.
|
149 |
-
if (0 !== strpos($url, 'http')) {
|
150 |
-
if (!$file = file_get_contents($url)) {
|
151 |
-
throw new Google_Exception(
|
152 |
-
"Failed to retrieve verification certificates: '" .
|
153 |
-
$url . "'."
|
154 |
-
);
|
155 |
-
}
|
156 |
-
|
157 |
-
return json_decode($file, true);
|
158 |
-
}
|
159 |
-
|
160 |
-
$response = $this->http->get($url);
|
161 |
-
|
162 |
-
if ($response->getStatusCode() == 200) {
|
163 |
-
return json_decode((string) $response->getBody(), true);
|
164 |
-
}
|
165 |
-
throw new Google_Exception(
|
166 |
-
sprintf(
|
167 |
-
'Failed to retrieve verification certificates: "%s".',
|
168 |
-
$response->getBody()->getContents()
|
169 |
-
),
|
170 |
-
$response->getStatusCode()
|
171 |
-
);
|
172 |
-
}
|
173 |
-
|
174 |
-
// Gets federated sign-on certificates to use for verifying identity tokens.
|
175 |
-
// Returns certs as array structure, where keys are key ids, and values
|
176 |
-
// are PEM encoded certificates.
|
177 |
-
private function getFederatedSignOnCerts()
|
178 |
-
{
|
179 |
-
$certs = null;
|
180 |
-
if ($cache = $this->getCache()) {
|
181 |
-
$cacheItem = $cache->getItem('federated_signon_certs_v3');
|
182 |
-
$certs = $cacheItem->get();
|
183 |
-
}
|
184 |
-
|
185 |
-
|
186 |
-
if (!$certs) {
|
187 |
-
$certs = $this->retrieveCertsFromLocation(
|
188 |
-
self::FEDERATED_SIGNON_CERT_URL
|
189 |
-
);
|
190 |
-
|
191 |
-
if ($cache) {
|
192 |
-
$cacheItem->expiresAt(new DateTime('+1 hour'));
|
193 |
-
$cacheItem->set($certs);
|
194 |
-
$cache->save($cacheItem);
|
195 |
-
}
|
196 |
-
}
|
197 |
-
|
198 |
-
if (!isset($certs['keys'])) {
|
199 |
-
throw new InvalidArgumentException(
|
200 |
-
'federated sign-on certs expects "keys" to be set'
|
201 |
-
);
|
202 |
-
}
|
203 |
-
|
204 |
-
return $certs['keys'];
|
205 |
-
}
|
206 |
-
|
207 |
-
private function getJwtService()
|
208 |
-
{
|
209 |
-
$jwtClass = 'JWT';
|
210 |
-
if (class_exists('\Firebase\JWT\JWT')) {
|
211 |
-
$jwtClass = 'Firebase\JWT\JWT';
|
212 |
-
}
|
213 |
-
|
214 |
-
if (property_exists($jwtClass, 'leeway') && $jwtClass::$leeway < 1) {
|
215 |
-
// Ensures JWT leeway is at least 1
|
216 |
-
// @see https://github.com/google/google-api-php-client/issues/827
|
217 |
-
$jwtClass::$leeway = 1;
|
218 |
-
}
|
219 |
-
|
220 |
-
return new $jwtClass;
|
221 |
-
}
|
222 |
-
|
223 |
-
private function getRsaClass()
|
224 |
-
{
|
225 |
-
if (class_exists('phpseclib\Crypt\RSA')) {
|
226 |
-
return 'phpseclib\Crypt\RSA';
|
227 |
-
}
|
228 |
-
|
229 |
-
return 'Crypt_RSA';
|
230 |
-
}
|
231 |
-
|
232 |
-
private function getBigIntClass()
|
233 |
-
{
|
234 |
-
if (class_exists('phpseclib\Math\BigInteger')) {
|
235 |
-
return 'phpseclib\Math\BigInteger';
|
236 |
-
}
|
237 |
-
|
238 |
-
return 'Math_BigInteger';
|
239 |
-
}
|
240 |
-
|
241 |
-
private function getOpenSslConstant()
|
242 |
-
{
|
243 |
-
if (class_exists('phpseclib\Crypt\RSA')) {
|
244 |
-
return 'phpseclib\Crypt\RSA::MODE_OPENSSL';
|
245 |
-
}
|
246 |
-
|
247 |
-
if (class_exists('Crypt_RSA')) {
|
248 |
-
return 'CRYPT_RSA_MODE_OPENSSL';
|
249 |
-
}
|
250 |
-
|
251 |
-
throw new \Exception('Cannot find RSA class');
|
252 |
-
}
|
253 |
-
|
254 |
-
/**
|
255 |
-
* phpseclib calls "phpinfo" by default, which requires special
|
256 |
-
* whitelisting in the AppEngine VM environment. This function
|
257 |
-
* sets constants to bypass the need for phpseclib to check phpinfo
|
258 |
-
*
|
259 |
-
* @see phpseclib/Math/BigInteger
|
260 |
-
* @see https://github.com/GoogleCloudPlatform/getting-started-php/issues/85
|
261 |
-
*/
|
262 |
-
private function setPhpsecConstants()
|
263 |
-
{
|
264 |
-
if (filter_var(getenv('GAE_VM'), FILTER_VALIDATE_BOOLEAN)) {
|
265 |
-
if (!defined('MATH_BIGINTEGER_OPENSSL_ENABLED')) {
|
266 |
-
define('MATH_BIGINTEGER_OPENSSL_ENABLED', true);
|
267 |
-
}
|
268 |
-
if (!defined('CRYPT_RSA_MODE')) {
|
269 |
-
define('CRYPT_RSA_MODE', constant($this->getOpenSslConstant()));
|
270 |
-
}
|
271 |
-
}
|
272 |
-
}
|
273 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient/src/Google/AuthHandler/AuthHandlerFactory.php
DELETED
@@ -1,42 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Copyright 2015 Google Inc. All Rights Reserved.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
use GuzzleHttp\Client;
|
19 |
-
use GuzzleHttp\ClientInterface;
|
20 |
-
|
21 |
-
class Google_AuthHandler_AuthHandlerFactory
|
22 |
-
{
|
23 |
-
/**
|
24 |
-
* Builds out a default http handler for the installed version of guzzle.
|
25 |
-
*
|
26 |
-
* @return Google_AuthHandler_Guzzle5AuthHandler|Google_AuthHandler_Guzzle6AuthHandler
|
27 |
-
* @throws Exception
|
28 |
-
*/
|
29 |
-
public static function build($cache = null, array $cacheConfig = [])
|
30 |
-
{
|
31 |
-
$version = ClientInterface::VERSION;
|
32 |
-
|
33 |
-
switch ($version[0]) {
|
34 |
-
case '5':
|
35 |
-
return new Google_AuthHandler_Guzzle5AuthHandler($cache, $cacheConfig);
|
36 |
-
case '6':
|
37 |
-
return new Google_AuthHandler_Guzzle6AuthHandler($cache, $cacheConfig);
|
38 |
-
default:
|
39 |
-
throw new Exception('Version not supported');
|
40 |
-
}
|
41 |
-
}
|
42 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient/src/Google/AuthHandler/Guzzle5AuthHandler.php
DELETED
@@ -1,99 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
use Google\Auth\CredentialsLoader;
|
4 |
-
use Google\Auth\HttpHandler\HttpHandlerFactory;
|
5 |
-
use Google\Auth\FetchAuthTokenCache;
|
6 |
-
use Google\Auth\Subscriber\AuthTokenSubscriber;
|
7 |
-
use Google\Auth\Subscriber\ScopedAccessTokenSubscriber;
|
8 |
-
use Google\Auth\Subscriber\SimpleSubscriber;
|
9 |
-
use GuzzleHttp\Client;
|
10 |
-
use GuzzleHttp\ClientInterface;
|
11 |
-
use Psr\Cache\CacheItemPoolInterface;
|
12 |
-
|
13 |
-
/**
|
14 |
-
*
|
15 |
-
*/
|
16 |
-
class Google_AuthHandler_Guzzle5AuthHandler
|
17 |
-
{
|
18 |
-
protected $cache;
|
19 |
-
protected $cacheConfig;
|
20 |
-
|
21 |
-
public function __construct(CacheItemPoolInterface $cache = null, array $cacheConfig = [])
|
22 |
-
{
|
23 |
-
$this->cache = $cache;
|
24 |
-
$this->cacheConfig = $cacheConfig;
|
25 |
-
}
|
26 |
-
|
27 |
-
public function attachCredentials(
|
28 |
-
ClientInterface $http,
|
29 |
-
CredentialsLoader $credentials,
|
30 |
-
callable $tokenCallback = null
|
31 |
-
) {
|
32 |
-
// use the provided cache
|
33 |
-
if ($this->cache) {
|
34 |
-
$credentials = new FetchAuthTokenCache(
|
35 |
-
$credentials,
|
36 |
-
$this->cacheConfig,
|
37 |
-
$this->cache
|
38 |
-
);
|
39 |
-
}
|
40 |
-
// if we end up needing to make an HTTP request to retrieve credentials, we
|
41 |
-
// can use our existing one, but we need to throw exceptions so the error
|
42 |
-
// bubbles up.
|
43 |
-
$authHttp = $this->createAuthHttp($http);
|
44 |
-
$authHttpHandler = HttpHandlerFactory::build($authHttp);
|
45 |
-
$subscriber = new AuthTokenSubscriber(
|
46 |
-
$credentials,
|
47 |
-
$authHttpHandler,
|
48 |
-
$tokenCallback
|
49 |
-
);
|
50 |
-
|
51 |
-
$http->setDefaultOption('auth', 'google_auth');
|
52 |
-
$http->getEmitter()->attach($subscriber);
|
53 |
-
|
54 |
-
return $http;
|
55 |
-
}
|
56 |
-
|
57 |
-
public function attachToken(ClientInterface $http, array $token, array $scopes)
|
58 |
-
{
|
59 |
-
$tokenFunc = function ($scopes) use ($token) {
|
60 |
-
return $token['access_token'];
|
61 |
-
};
|
62 |
-
|
63 |
-
$subscriber = new ScopedAccessTokenSubscriber(
|
64 |
-
$tokenFunc,
|
65 |
-
$scopes,
|
66 |
-
$this->cacheConfig,
|
67 |
-
$this->cache
|
68 |
-
);
|
69 |
-
|
70 |
-
$http->setDefaultOption('auth', 'scoped');
|
71 |
-
$http->getEmitter()->attach($subscriber);
|
72 |
-
|
73 |
-
return $http;
|
74 |
-
}
|
75 |
-
|
76 |
-
public function attachKey(ClientInterface $http, $key)
|
77 |
-
{
|
78 |
-
$subscriber = new SimpleSubscriber(['key' => $key]);
|
79 |
-
|
80 |
-
$http->setDefaultOption('auth', 'simple');
|
81 |
-
$http->getEmitter()->attach($subscriber);
|
82 |
-
|
83 |
-
return $http;
|
84 |
-
}
|
85 |
-
|
86 |
-
private function createAuthHttp(ClientInterface $http)
|
87 |
-
{
|
88 |
-
return new Client(
|
89 |
-
[
|
90 |
-
'base_url' => $http->getBaseUrl(),
|
91 |
-
'defaults' => [
|
92 |
-
'exceptions' => true,
|
93 |
-
'verify' => $http->getDefaultOption('verify'),
|
94 |
-
'proxy' => $http->getDefaultOption('proxy'),
|
95 |
-
]
|
96 |
-
]
|
97 |
-
);
|
98 |
-
}
|
99 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient/src/Google/AuthHandler/Guzzle6AuthHandler.php
DELETED
@@ -1,106 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
use Google\Auth\CredentialsLoader;
|
4 |
-
use Google\Auth\HttpHandler\HttpHandlerFactory;
|
5 |
-
use Google\Auth\FetchAuthTokenCache;
|
6 |
-
use Google\Auth\Middleware\AuthTokenMiddleware;
|
7 |
-
use Google\Auth\Middleware\ScopedAccessTokenMiddleware;
|
8 |
-
use Google\Auth\Middleware\SimpleMiddleware;
|
9 |
-
use GuzzleHttp\Client;
|
10 |
-
use GuzzleHttp\ClientInterface;
|
11 |
-
use Psr\Cache\CacheItemPoolInterface;
|
12 |
-
|
13 |
-
/**
|
14 |
-
*
|
15 |
-
*/
|
16 |
-
class Google_AuthHandler_Guzzle6AuthHandler
|
17 |
-
{
|
18 |
-
protected $cache;
|
19 |
-
protected $cacheConfig;
|
20 |
-
|
21 |
-
public function __construct(CacheItemPoolInterface $cache = null, array $cacheConfig = [])
|
22 |
-
{
|
23 |
-
$this->cache = $cache;
|
24 |
-
$this->cacheConfig = $cacheConfig;
|
25 |
-
}
|
26 |
-
|
27 |
-
public function attachCredentials(
|
28 |
-
ClientInterface $http,
|
29 |
-
CredentialsLoader $credentials,
|
30 |
-
callable $tokenCallback = null
|
31 |
-
) {
|
32 |
-
// use the provided cache
|
33 |
-
if ($this->cache) {
|
34 |
-
$credentials = new FetchAuthTokenCache(
|
35 |
-
$credentials,
|
36 |
-
$this->cacheConfig,
|
37 |
-
$this->cache
|
38 |
-
);
|
39 |
-
}
|
40 |
-
// if we end up needing to make an HTTP request to retrieve credentials, we
|
41 |
-
// can use our existing one, but we need to throw exceptions so the error
|
42 |
-
// bubbles up.
|
43 |
-
$authHttp = $this->createAuthHttp($http);
|
44 |
-
$authHttpHandler = HttpHandlerFactory::build($authHttp);
|
45 |
-
$middleware = new AuthTokenMiddleware(
|
46 |
-
$credentials,
|
47 |
-
$authHttpHandler,
|
48 |
-
$tokenCallback
|
49 |
-
);
|
50 |
-
|
51 |
-
$config = $http->getConfig();
|
52 |
-
$config['handler']->remove('google_auth');
|
53 |
-
$config['handler']->push($middleware, 'google_auth');
|
54 |
-
$config['auth'] = 'google_auth';
|
55 |
-
$http = new Client($config);
|
56 |
-
|
57 |
-
return $http;
|
58 |
-
}
|
59 |
-
|
60 |
-
public function attachToken(ClientInterface $http, array $token, array $scopes)
|
61 |
-
{
|
62 |
-
$tokenFunc = function ($scopes) use ($token) {
|
63 |
-
return $token['access_token'];
|
64 |
-
};
|
65 |
-
|
66 |
-
$middleware = new ScopedAccessTokenMiddleware(
|
67 |
-
$tokenFunc,
|
68 |
-
$scopes,
|
69 |
-
$this->cacheConfig,
|
70 |
-
$this->cache
|
71 |
-
);
|
72 |
-
|
73 |
-
$config = $http->getConfig();
|
74 |
-
$config['handler']->remove('google_auth');
|
75 |
-
$config['handler']->push($middleware, 'google_auth');
|
76 |
-
$config['auth'] = 'scoped';
|
77 |
-
$http = new Client($config);
|
78 |
-
|
79 |
-
return $http;
|
80 |
-
}
|
81 |
-
|
82 |
-
public function attachKey(ClientInterface $http, $key)
|
83 |
-
{
|
84 |
-
$middleware = new SimpleMiddleware(['key' => $key]);
|
85 |
-
|
86 |
-
$config = $http->getConfig();
|
87 |
-
$config['handler']->remove('google_auth');
|
88 |
-
$config['handler']->push($middleware, 'google_auth');
|
89 |
-
$config['auth'] = 'simple';
|
90 |
-
$http = new Client($config);
|
91 |
-
|
92 |
-
return $http;
|
93 |
-
}
|
94 |
-
|
95 |
-
private function createAuthHttp(ClientInterface $http)
|
96 |
-
{
|
97 |
-
return new Client(
|
98 |
-
[
|
99 |
-
'base_uri' => $http->getConfig('base_uri'),
|
100 |
-
'exceptions' => true,
|
101 |
-
'verify' => $http->getConfig('verify'),
|
102 |
-
'proxy' => $http->getConfig('proxy'),
|
103 |
-
]
|
104 |
-
);
|
105 |
-
}
|
106 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient/src/Google/Client.php
DELETED
@@ -1,1185 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2010 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
use Google\Auth\ApplicationDefaultCredentials;
|
19 |
-
use Google\Auth\Cache\MemoryCacheItemPool;
|
20 |
-
use Google\Auth\CredentialsLoader;
|
21 |
-
use Google\Auth\HttpHandler\HttpHandlerFactory;
|
22 |
-
use Google\Auth\OAuth2;
|
23 |
-
use Google\Auth\Credentials\ServiceAccountCredentials;
|
24 |
-
use Google\Auth\Credentials\UserRefreshCredentials;
|
25 |
-
use GuzzleHttp\Client;
|
26 |
-
use GuzzleHttp\ClientInterface;
|
27 |
-
use GuzzleHttp\Ring\Client\StreamHandler;
|
28 |
-
use Psr\Cache\CacheItemPoolInterface;
|
29 |
-
use Psr\Http\Message\RequestInterface;
|
30 |
-
use Psr\Log\LoggerInterface;
|
31 |
-
use Monolog\Logger;
|
32 |
-
use Monolog\Handler\StreamHandler as MonologStreamHandler;
|
33 |
-
use Monolog\Handler\SyslogHandler as MonologSyslogHandler;
|
34 |
-
|
35 |
-
/**
|
36 |
-
* The Google API Client
|
37 |
-
* https://github.com/google/google-api-php-client
|
38 |
-
*/
|
39 |
-
class Google_Client
|
40 |
-
{
|
41 |
-
const LIBVER = "2.4.1";
|
42 |
-
const USER_AGENT_SUFFIX = "google-api-php-client/";
|
43 |
-
const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke';
|
44 |
-
const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token';
|
45 |
-
const OAUTH2_AUTH_URL = 'https://accounts.google.com/o/oauth2/auth';
|
46 |
-
const API_BASE_PATH = 'https://www.googleapis.com';
|
47 |
-
|
48 |
-
/**
|
49 |
-
* @var Google\Auth\OAuth2 $auth
|
50 |
-
*/
|
51 |
-
private $auth;
|
52 |
-
|
53 |
-
/**
|
54 |
-
* @var GuzzleHttp\ClientInterface $http
|
55 |
-
*/
|
56 |
-
private $http;
|
57 |
-
|
58 |
-
/**
|
59 |
-
* @var Psr\Cache\CacheItemPoolInterface $cache
|
60 |
-
*/
|
61 |
-
private $cache;
|
62 |
-
|
63 |
-
/**
|
64 |
-
* @var array access token
|
65 |
-
*/
|
66 |
-
private $token;
|
67 |
-
|
68 |
-
/**
|
69 |
-
* @var array $config
|
70 |
-
*/
|
71 |
-
private $config;
|
72 |
-
|
73 |
-
/**
|
74 |
-
* @var Psr\Log\LoggerInterface $logger
|
75 |
-
*/
|
76 |
-
private $logger;
|
77 |
-
|
78 |
-
/**
|
79 |
-
* @var boolean $deferExecution
|
80 |
-
*/
|
81 |
-
private $deferExecution = false;
|
82 |
-
|
83 |
-
/** @var array $scopes */
|
84 |
-
// Scopes requested by the client
|
85 |
-
protected $requestedScopes = [];
|
86 |
-
|
87 |
-
/**
|
88 |
-
* Construct the Google Client.
|
89 |
-
*
|
90 |
-
* @param array $config
|
91 |
-
*/
|
92 |
-
public function __construct(array $config = array())
|
93 |
-
{
|
94 |
-
$this->config = array_merge(
|
95 |
-
[
|
96 |
-
'application_name' => '',
|
97 |
-
|
98 |
-
// Don't change these unless you're working against a special development
|
99 |
-
// or testing environment.
|
100 |
-
'base_path' => self::API_BASE_PATH,
|
101 |
-
|
102 |
-
// https://developers.google.com/console
|
103 |
-
'client_id' => '',
|
104 |
-
'client_secret' => '',
|
105 |
-
'redirect_uri' => null,
|
106 |
-
'state' => null,
|
107 |
-
|
108 |
-
// Simple API access key, also from the API console. Ensure you get
|
109 |
-
// a Server key, and not a Browser key.
|
110 |
-
'developer_key' => '',
|
111 |
-
|
112 |
-
// For use with Google Cloud Platform
|
113 |
-
// fetch the ApplicationDefaultCredentials, if applicable
|
114 |
-
// @see https://developers.google.com/identity/protocols/application-default-credentials
|
115 |
-
'use_application_default_credentials' => false,
|
116 |
-
'signing_key' => null,
|
117 |
-
'signing_algorithm' => null,
|
118 |
-
'subject' => null,
|
119 |
-
|
120 |
-
// Other OAuth2 parameters.
|
121 |
-
'hd' => '',
|
122 |
-
'prompt' => '',
|
123 |
-
'openid.realm' => '',
|
124 |
-
'include_granted_scopes' => null,
|
125 |
-
'login_hint' => '',
|
126 |
-
'request_visible_actions' => '',
|
127 |
-
'access_type' => 'online',
|
128 |
-
'approval_prompt' => 'auto',
|
129 |
-
|
130 |
-
// Task Runner retry configuration
|
131 |
-
// @see Google_Task_Runner
|
132 |
-
'retry' => array(),
|
133 |
-
'retry_map' => null,
|
134 |
-
|
135 |
-
// cache config for downstream auth caching
|
136 |
-
'cache_config' => [],
|
137 |
-
|
138 |
-
// function to be called when an access token is fetched
|
139 |
-
// follows the signature function ($cacheKey, $accessToken)
|
140 |
-
'token_callback' => null,
|
141 |
-
|
142 |
-
// Service class used in Google_Client::verifyIdToken.
|
143 |
-
// Explicitly pass this in to avoid setting JWT::$leeway
|
144 |
-
'jwt' => null,
|
145 |
-
|
146 |
-
// Setting api_format_v2 will return more detailed error messages
|
147 |
-
// from certain APIs.
|
148 |
-
'api_format_v2' => false
|
149 |
-
],
|
150 |
-
$config
|
151 |
-
);
|
152 |
-
}
|
153 |
-
|
154 |
-
/**
|
155 |
-
* Get a string containing the version of the library.
|
156 |
-
*
|
157 |
-
* @return string
|
158 |
-
*/
|
159 |
-
public function getLibraryVersion()
|
160 |
-
{
|
161 |
-
return self::LIBVER;
|
162 |
-
}
|
163 |
-
|
164 |
-
/**
|
165 |
-
* For backwards compatibility
|
166 |
-
* alias for fetchAccessTokenWithAuthCode
|
167 |
-
*
|
168 |
-
* @param $code string code from accounts.google.com
|
169 |
-
* @return array access token
|
170 |
-
* @deprecated
|
171 |
-
*/
|
172 |
-
public function authenticate($code)
|
173 |
-
{
|
174 |
-
return $this->fetchAccessTokenWithAuthCode($code);
|
175 |
-
}
|
176 |
-
|
177 |
-
/**
|
178 |
-
* Attempt to exchange a code for an valid authentication token.
|
179 |
-
* Helper wrapped around the OAuth 2.0 implementation.
|
180 |
-
*
|
181 |
-
* @param $code string code from accounts.google.com
|
182 |
-
* @return array access token
|
183 |
-
*/
|
184 |
-
public function fetchAccessTokenWithAuthCode($code)
|
185 |
-
{
|
186 |
-
if (strlen($code) == 0) {
|
187 |
-
throw new InvalidArgumentException("Invalid code");
|
188 |
-
}
|
189 |
-
|
190 |
-
$auth = $this->getOAuth2Service();
|
191 |
-
$auth->setCode($code);
|
192 |
-
$auth->setRedirectUri($this->getRedirectUri());
|
193 |
-
|
194 |
-
$httpHandler = HttpHandlerFactory::build($this->getHttpClient());
|
195 |
-
$creds = $auth->fetchAuthToken($httpHandler);
|
196 |
-
if ($creds && isset($creds['access_token'])) {
|
197 |
-
$creds['created'] = time();
|
198 |
-
$this->setAccessToken($creds);
|
199 |
-
}
|
200 |
-
|
201 |
-
return $creds;
|
202 |
-
}
|
203 |
-
|
204 |
-
/**
|
205 |
-
* For backwards compatibility
|
206 |
-
* alias for fetchAccessTokenWithAssertion
|
207 |
-
*
|
208 |
-
* @return array access token
|
209 |
-
* @deprecated
|
210 |
-
*/
|
211 |
-
public function refreshTokenWithAssertion()
|
212 |
-
{
|
213 |
-
return $this->fetchAccessTokenWithAssertion();
|
214 |
-
}
|
215 |
-
|
216 |
-
/**
|
217 |
-
* Fetches a fresh access token with a given assertion token.
|
218 |
-
* @param ClientInterface $authHttp optional.
|
219 |
-
* @return array access token
|
220 |
-
*/
|
221 |
-
public function fetchAccessTokenWithAssertion(ClientInterface $authHttp = null)
|
222 |
-
{
|
223 |
-
if (!$this->isUsingApplicationDefaultCredentials()) {
|
224 |
-
throw new DomainException(
|
225 |
-
'set the JSON service account credentials using'
|
226 |
-
. ' Google_Client::setAuthConfig or set the path to your JSON file'
|
227 |
-
. ' with the "GOOGLE_APPLICATION_CREDENTIALS" environment variable'
|
228 |
-
. ' and call Google_Client::useApplicationDefaultCredentials to'
|
229 |
-
. ' refresh a token with assertion.'
|
230 |
-
);
|
231 |
-
}
|
232 |
-
|
233 |
-
$this->getLogger()->log(
|
234 |
-
'info',
|
235 |
-
'OAuth2 access token refresh with Signed JWT assertion grants.'
|
236 |
-
);
|
237 |
-
|
238 |
-
$credentials = $this->createApplicationDefaultCredentials();
|
239 |
-
|
240 |
-
$httpHandler = HttpHandlerFactory::build($authHttp);
|
241 |
-
$creds = $credentials->fetchAuthToken($httpHandler);
|
242 |
-
if ($creds && isset($creds['access_token'])) {
|
243 |
-
$creds['created'] = time();
|
244 |
-
$this->setAccessToken($creds);
|
245 |
-
}
|
246 |
-
|
247 |
-
return $creds;
|
248 |
-
}
|
249 |
-
|
250 |
-
/**
|
251 |
-
* For backwards compatibility
|
252 |
-
* alias for fetchAccessTokenWithRefreshToken
|
253 |
-
*
|
254 |
-
* @param string $refreshToken
|
255 |
-
* @return array access token
|
256 |
-
*/
|
257 |
-
public function refreshToken($refreshToken)
|
258 |
-
{
|
259 |
-
return $this->fetchAccessTokenWithRefreshToken($refreshToken);
|
260 |
-
}
|
261 |
-
|
262 |
-
/**
|
263 |
-
* Fetches a fresh OAuth 2.0 access token with the given refresh token.
|
264 |
-
* @param string $refreshToken
|
265 |
-
* @return array access token
|
266 |
-
*/
|
267 |
-
public function fetchAccessTokenWithRefreshToken($refreshToken = null)
|
268 |
-
{
|
269 |
-
if (null === $refreshToken) {
|
270 |
-
if (!isset($this->token['refresh_token'])) {
|
271 |
-
throw new LogicException(
|
272 |
-
'refresh token must be passed in or set as part of setAccessToken'
|
273 |
-
);
|
274 |
-
}
|
275 |
-
$refreshToken = $this->token['refresh_token'];
|
276 |
-
}
|
277 |
-
$this->getLogger()->info('OAuth2 access token refresh');
|
278 |
-
$auth = $this->getOAuth2Service();
|
279 |
-
$auth->setRefreshToken($refreshToken);
|
280 |
-
|
281 |
-
$httpHandler = HttpHandlerFactory::build($this->getHttpClient());
|
282 |
-
$creds = $auth->fetchAuthToken($httpHandler);
|
283 |
-
if ($creds && isset($creds['access_token'])) {
|
284 |
-
$creds['created'] = time();
|
285 |
-
if (!isset($creds['refresh_token'])) {
|
286 |
-
$creds['refresh_token'] = $refreshToken;
|
287 |
-
}
|
288 |
-
$this->setAccessToken($creds);
|
289 |
-
}
|
290 |
-
|
291 |
-
return $creds;
|
292 |
-
}
|
293 |
-
|
294 |
-
/**
|
295 |
-
* Create a URL to obtain user authorization.
|
296 |
-
* The authorization endpoint allows the user to first
|
297 |
-
* authenticate, and then grant/deny the access request.
|
298 |
-
* @param string|array $scope The scope is expressed as an array or list of space-delimited strings.
|
299 |
-
* @return string
|
300 |
-
*/
|
301 |
-
public function createAuthUrl($scope = null)
|
302 |
-
{
|
303 |
-
if (empty($scope)) {
|
304 |
-
$scope = $this->prepareScopes();
|
305 |
-
}
|
306 |
-
if (is_array($scope)) {
|
307 |
-
$scope = implode(' ', $scope);
|
308 |
-
}
|
309 |
-
|
310 |
-
// only accept one of prompt or approval_prompt
|
311 |
-
$approvalPrompt = $this->config['prompt']
|
312 |
-
? null
|
313 |
-
: $this->config['approval_prompt'];
|
314 |
-
|
315 |
-
// include_granted_scopes should be string "true", string "false", or null
|
316 |
-
$includeGrantedScopes = $this->config['include_granted_scopes'] === null
|
317 |
-
? null
|
318 |
-
: var_export($this->config['include_granted_scopes'], true);
|
319 |
-
|
320 |
-
$params = array_filter(
|
321 |
-
[
|
322 |
-
'access_type' => $this->config['access_type'],
|
323 |
-
'approval_prompt' => $approvalPrompt,
|
324 |
-
'hd' => $this->config['hd'],
|
325 |
-
'include_granted_scopes' => $includeGrantedScopes,
|
326 |
-
'login_hint' => $this->config['login_hint'],
|
327 |
-
'openid.realm' => $this->config['openid.realm'],
|
328 |
-
'prompt' => $this->config['prompt'],
|
329 |
-
'response_type' => 'code',
|
330 |
-
'scope' => $scope,
|
331 |
-
'state' => $this->config['state'],
|
332 |
-
]
|
333 |
-
);
|
334 |
-
|
335 |
-
// If the list of scopes contains plus.login, add request_visible_actions
|
336 |
-
// to auth URL.
|
337 |
-
$rva = $this->config['request_visible_actions'];
|
338 |
-
if (strlen($rva) > 0 && false !== strpos($scope, 'plus.login')) {
|
339 |
-
$params['request_visible_actions'] = $rva;
|
340 |
-
}
|
341 |
-
|
342 |
-
$auth = $this->getOAuth2Service();
|
343 |
-
|
344 |
-
return (string) $auth->buildFullAuthorizationUri($params);
|
345 |
-
}
|
346 |
-
|
347 |
-
/**
|
348 |
-
* Adds auth listeners to the HTTP client based on the credentials
|
349 |
-
* set in the Google API Client object
|
350 |
-
*
|
351 |
-
* @param GuzzleHttp\ClientInterface $http the http client object.
|
352 |
-
* @return GuzzleHttp\ClientInterface the http client object
|
353 |
-
*/
|
354 |
-
public function authorize(ClientInterface $http = null)
|
355 |
-
{
|
356 |
-
$credentials = null;
|
357 |
-
$token = null;
|
358 |
-
$scopes = null;
|
359 |
-
if (null === $http) {
|
360 |
-
$http = $this->getHttpClient();
|
361 |
-
}
|
362 |
-
|
363 |
-
// These conditionals represent the decision tree for authentication
|
364 |
-
// 1. Check for Application Default Credentials
|
365 |
-
// 2. Check for API Key
|
366 |
-
// 3a. Check for an Access Token
|
367 |
-
// 3b. If access token exists but is expired, try to refresh it
|
368 |
-
if ($this->isUsingApplicationDefaultCredentials()) {
|
369 |
-
$credentials = $this->createApplicationDefaultCredentials();
|
370 |
-
} elseif ($token = $this->getAccessToken()) {
|
371 |
-
$scopes = $this->prepareScopes();
|
372 |
-
// add refresh subscriber to request a new token
|
373 |
-
if (isset($token['refresh_token']) && $this->isAccessTokenExpired()) {
|
374 |
-
$credentials = $this->createUserRefreshCredentials(
|
375 |
-
$scopes,
|
376 |
-
$token['refresh_token']
|
377 |
-
);
|
378 |
-
}
|
379 |
-
}
|
380 |
-
|
381 |
-
$authHandler = $this->getAuthHandler();
|
382 |
-
|
383 |
-
if ($credentials) {
|
384 |
-
$callback = $this->config['token_callback'];
|
385 |
-
$http = $authHandler->attachCredentials($http, $credentials, $callback);
|
386 |
-
} elseif ($token) {
|
387 |
-
$http = $authHandler->attachToken($http, $token, (array) $scopes);
|
388 |
-
} elseif ($key = $this->config['developer_key']) {
|
389 |
-
$http = $authHandler->attachKey($http, $key);
|
390 |
-
}
|
391 |
-
|
392 |
-
return $http;
|
393 |
-
}
|
394 |
-
|
395 |
-
/**
|
396 |
-
* Set the configuration to use application default credentials for
|
397 |
-
* authentication
|
398 |
-
*
|
399 |
-
* @see https://developers.google.com/identity/protocols/application-default-credentials
|
400 |
-
* @param boolean $useAppCreds
|
401 |
-
*/
|
402 |
-
public function useApplicationDefaultCredentials($useAppCreds = true)
|
403 |
-
{
|
404 |
-
$this->config['use_application_default_credentials'] = $useAppCreds;
|
405 |
-
}
|
406 |
-
|
407 |
-
/**
|
408 |
-
* To prevent useApplicationDefaultCredentials from inappropriately being
|
409 |
-
* called in a conditional
|
410 |
-
*
|
411 |
-
* @see https://developers.google.com/identity/protocols/application-default-credentials
|
412 |
-
*/
|
413 |
-
public function isUsingApplicationDefaultCredentials()
|
414 |
-
{
|
415 |
-
return $this->config['use_application_default_credentials'];
|
416 |
-
}
|
417 |
-
|
418 |
-
/**
|
419 |
-
* Set the access token used for requests.
|
420 |
-
*
|
421 |
-
* Note that at the time requests are sent, tokens are cached. A token will be
|
422 |
-
* cached for each combination of service and authentication scopes. If a
|
423 |
-
* cache pool is not provided, creating a new instance of the client will
|
424 |
-
* allow modification of access tokens. If a persistent cache pool is
|
425 |
-
* provided, in order to change the access token, you must clear the cached
|
426 |
-
* token by calling `$client->getCache()->clear()`. (Use caution in this case,
|
427 |
-
* as calling `clear()` will remove all cache items, including any items not
|
428 |
-
* related to Google API PHP Client.)
|
429 |
-
*
|
430 |
-
* @param string|array $token
|
431 |
-
* @throws InvalidArgumentException
|
432 |
-
*/
|
433 |
-
public function setAccessToken($token)
|
434 |
-
{
|
435 |
-
if (is_string($token)) {
|
436 |
-
if ($json = json_decode($token, true)) {
|
437 |
-
$token = $json;
|
438 |
-
} else {
|
439 |
-
// assume $token is just the token string
|
440 |
-
$token = array(
|
441 |
-
'access_token' => $token,
|
442 |
-
);
|
443 |
-
}
|
444 |
-
}
|
445 |
-
if ($token == null) {
|
446 |
-
throw new InvalidArgumentException('invalid json token');
|
447 |
-
}
|
448 |
-
if (!isset($token['access_token'])) {
|
449 |
-
throw new InvalidArgumentException("Invalid token format");
|
450 |
-
}
|
451 |
-
$this->token = $token;
|
452 |
-
}
|
453 |
-
|
454 |
-
public function getAccessToken()
|
455 |
-
{
|
456 |
-
return $this->token;
|
457 |
-
}
|
458 |
-
|
459 |
-
/**
|
460 |
-
* @return string|null
|
461 |
-
*/
|
462 |
-
public function getRefreshToken()
|
463 |
-
{
|
464 |
-
if (isset($this->token['refresh_token'])) {
|
465 |
-
return $this->token['refresh_token'];
|
466 |
-
}
|
467 |
-
|
468 |
-
return null;
|
469 |
-
}
|
470 |
-
|
471 |
-
/**
|
472 |
-
* Returns if the access_token is expired.
|
473 |
-
* @return bool Returns True if the access_token is expired.
|
474 |
-
*/
|
475 |
-
public function isAccessTokenExpired()
|
476 |
-
{
|
477 |
-
if (!$this->token) {
|
478 |
-
return true;
|
479 |
-
}
|
480 |
-
|
481 |
-
$created = 0;
|
482 |
-
if (isset($this->token['created'])) {
|
483 |
-
$created = $this->token['created'];
|
484 |
-
} elseif (isset($this->token['id_token'])) {
|
485 |
-
// check the ID token for "iat"
|
486 |
-
// signature verification is not required here, as we are just
|
487 |
-
// using this for convenience to save a round trip request
|
488 |
-
// to the Google API server
|
489 |
-
$idToken = $this->token['id_token'];
|
490 |
-
if (substr_count($idToken, '.') == 2) {
|
491 |
-
$parts = explode('.', $idToken);
|
492 |
-
$payload = json_decode(base64_decode($parts[1]), true);
|
493 |
-
if ($payload && isset($payload['iat'])) {
|
494 |
-
$created = $payload['iat'];
|
495 |
-
}
|
496 |
-
}
|
497 |
-
}
|
498 |
-
|
499 |
-
// If the token is set to expire in the next 30 seconds.
|
500 |
-
return ($created + ($this->token['expires_in'] - 30)) < time();
|
501 |
-
}
|
502 |
-
|
503 |
-
/**
|
504 |
-
* @deprecated See UPGRADING.md for more information
|
505 |
-
*/
|
506 |
-
public function getAuth()
|
507 |
-
{
|
508 |
-
throw new BadMethodCallException(
|
509 |
-
'This function no longer exists. See UPGRADING.md for more information'
|
510 |
-
);
|
511 |
-
}
|
512 |
-
|
513 |
-
/**
|
514 |
-
* @deprecated See UPGRADING.md for more information
|
515 |
-
*/
|
516 |
-
public function setAuth($auth)
|
517 |
-
{
|
518 |
-
throw new BadMethodCallException(
|
519 |
-
'This function no longer exists. See UPGRADING.md for more information'
|
520 |
-
);
|
521 |
-
}
|
522 |
-
|
523 |
-
/**
|
524 |
-
* Set the OAuth 2.0 Client ID.
|
525 |
-
* @param string $clientId
|
526 |
-
*/
|
527 |
-
public function setClientId($clientId)
|
528 |
-
{
|
529 |
-
$this->config['client_id'] = $clientId;
|
530 |
-
}
|
531 |
-
|
532 |
-
public function getClientId()
|
533 |
-
{
|
534 |
-
return $this->config['client_id'];
|
535 |
-
}
|
536 |
-
|
537 |
-
/**
|
538 |
-
* Set the OAuth 2.0 Client Secret.
|
539 |
-
* @param string $clientSecret
|
540 |
-
*/
|
541 |
-
public function setClientSecret($clientSecret)
|
542 |
-
{
|
543 |
-
$this->config['client_secret'] = $clientSecret;
|
544 |
-
}
|
545 |
-
|
546 |
-
public function getClientSecret()
|
547 |
-
{
|
548 |
-
return $this->config['client_secret'];
|
549 |
-
}
|
550 |
-
|
551 |
-
/**
|
552 |
-
* Set the OAuth 2.0 Redirect URI.
|
553 |
-
* @param string $redirectUri
|
554 |
-
*/
|
555 |
-
public function setRedirectUri($redirectUri)
|
556 |
-
{
|
557 |
-
$this->config['redirect_uri'] = $redirectUri;
|
558 |
-
}
|
559 |
-
|
560 |
-
public function getRedirectUri()
|
561 |
-
{
|
562 |
-
return $this->config['redirect_uri'];
|
563 |
-
}
|
564 |
-
|
565 |
-
/**
|
566 |
-
* Set OAuth 2.0 "state" parameter to achieve per-request customization.
|
567 |
-
* @see http://tools.ietf.org/html/draft-ietf-oauth-v2-22#section-3.1.2.2
|
568 |
-
* @param string $state
|
569 |
-
*/
|
570 |
-
public function setState($state)
|
571 |
-
{
|
572 |
-
$this->config['state'] = $state;
|
573 |
-
}
|
574 |
-
|
575 |
-
/**
|
576 |
-
* @param string $accessType Possible values for access_type include:
|
577 |
-
* {@code "offline"} to request offline access from the user.
|
578 |
-
* {@code "online"} to request online access from the user.
|
579 |
-
*/
|
580 |
-
public function setAccessType($accessType)
|
581 |
-
{
|
582 |
-
$this->config['access_type'] = $accessType;
|
583 |
-
}
|
584 |
-
|
585 |
-
/**
|
586 |
-
* @param string $approvalPrompt Possible values for approval_prompt include:
|
587 |
-
* {@code "force"} to force the approval UI to appear.
|
588 |
-
* {@code "auto"} to request auto-approval when possible. (This is the default value)
|
589 |
-
*/
|
590 |
-
public function setApprovalPrompt($approvalPrompt)
|
591 |
-
{
|
592 |
-
$this->config['approval_prompt'] = $approvalPrompt;
|
593 |
-
}
|
594 |
-
|
595 |
-
/**
|
596 |
-
* Set the login hint, email address or sub id.
|
597 |
-
* @param string $loginHint
|
598 |
-
*/
|
599 |
-
public function setLoginHint($loginHint)
|
600 |
-
{
|
601 |
-
$this->config['login_hint'] = $loginHint;
|
602 |
-
}
|
603 |
-
|
604 |
-
/**
|
605 |
-
* Set the application name, this is included in the User-Agent HTTP header.
|
606 |
-
* @param string $applicationName
|
607 |
-
*/
|
608 |
-
public function setApplicationName($applicationName)
|
609 |
-
{
|
610 |
-
$this->config['application_name'] = $applicationName;
|
611 |
-
}
|
612 |
-
|
613 |
-
/**
|
614 |
-
* If 'plus.login' is included in the list of requested scopes, you can use
|
615 |
-
* this method to define types of app activities that your app will write.
|
616 |
-
* You can find a list of available types here:
|
617 |
-
* @link https://developers.google.com/+/api/moment-types
|
618 |
-
*
|
619 |
-
* @param array $requestVisibleActions Array of app activity types
|
620 |
-
*/
|
621 |
-
public function setRequestVisibleActions($requestVisibleActions)
|
622 |
-
{
|
623 |
-
if (is_array($requestVisibleActions)) {
|
624 |
-
$requestVisibleActions = implode(" ", $requestVisibleActions);
|
625 |
-
}
|
626 |
-
$this->config['request_visible_actions'] = $requestVisibleActions;
|
627 |
-
}
|
628 |
-
|
629 |
-
/**
|
630 |
-
* Set the developer key to use, these are obtained through the API Console.
|
631 |
-
* @see http://code.google.com/apis/console-help/#generatingdevkeys
|
632 |
-
* @param string $developerKey
|
633 |
-
*/
|
634 |
-
public function setDeveloperKey($developerKey)
|
635 |
-
{
|
636 |
-
$this->config['developer_key'] = $developerKey;
|
637 |
-
}
|
638 |
-
|
639 |
-
/**
|
640 |
-
* Set the hd (hosted domain) parameter streamlines the login process for
|
641 |
-
* Google Apps hosted accounts. By including the domain of the user, you
|
642 |
-
* restrict sign-in to accounts at that domain.
|
643 |
-
* @param $hd string - the domain to use.
|
644 |
-
*/
|
645 |
-
public function setHostedDomain($hd)
|
646 |
-
{
|
647 |
-
$this->config['hd'] = $hd;
|
648 |
-
}
|
649 |
-
|
650 |
-
/**
|
651 |
-
* Set the prompt hint. Valid values are none, consent and select_account.
|
652 |
-
* If no value is specified and the user has not previously authorized
|
653 |
-
* access, then the user is shown a consent screen.
|
654 |
-
* @param $prompt string
|
655 |
-
* {@code "none"} Do not display any authentication or consent screens. Must not be specified with other values.
|
656 |
-
* {@code "consent"} Prompt the user for consent.
|
657 |
-
* {@code "select_account"} Prompt the user to select an account.
|
658 |
-
*/
|
659 |
-
public function setPrompt($prompt)
|
660 |
-
{
|
661 |
-
$this->config['prompt'] = $prompt;
|
662 |
-
}
|
663 |
-
|
664 |
-
/**
|
665 |
-
* openid.realm is a parameter from the OpenID 2.0 protocol, not from OAuth
|
666 |
-
* 2.0. It is used in OpenID 2.0 requests to signify the URL-space for which
|
667 |
-
* an authentication request is valid.
|
668 |
-
* @param $realm string - the URL-space to use.
|
669 |
-
*/
|
670 |
-
public function setOpenidRealm($realm)
|
671 |
-
{
|
672 |
-
$this->config['openid.realm'] = $realm;
|
673 |
-
}
|
674 |
-
|
675 |
-
/**
|
676 |
-
* If this is provided with the value true, and the authorization request is
|
677 |
-
* granted, the authorization will include any previous authorizations
|
678 |
-
* granted to this user/application combination for other scopes.
|
679 |
-
* @param $include boolean - the URL-space to use.
|
680 |
-
*/
|
681 |
-
public function setIncludeGrantedScopes($include)
|
682 |
-
{
|
683 |
-
$this->config['include_granted_scopes'] = $include;
|
684 |
-
}
|
685 |
-
|
686 |
-
/**
|
687 |
-
* sets function to be called when an access token is fetched
|
688 |
-
* @param callable $tokenCallback - function ($cacheKey, $accessToken)
|
689 |
-
*/
|
690 |
-
public function setTokenCallback(callable $tokenCallback)
|
691 |
-
{
|
692 |
-
$this->config['token_callback'] = $tokenCallback;
|
693 |
-
}
|
694 |
-
|
695 |
-
/**
|
696 |
-
* Revoke an OAuth2 access token or refresh token. This method will revoke the current access
|
697 |
-
* token, if a token isn't provided.
|
698 |
-
*
|
699 |
-
* @param string|array|null $token The token (access token or a refresh token) that should be revoked.
|
700 |
-
* @return boolean Returns True if the revocation was successful, otherwise False.
|
701 |
-
*/
|
702 |
-
public function revokeToken($token = null)
|
703 |
-
{
|
704 |
-
$tokenRevoker = new Google_AccessToken_Revoke(
|
705 |
-
$this->getHttpClient()
|
706 |
-
);
|
707 |
-
|
708 |
-
return $tokenRevoker->revokeToken($token ?: $this->getAccessToken());
|
709 |
-
}
|
710 |
-
|
711 |
-
/**
|
712 |
-
* Verify an id_token. This method will verify the current id_token, if one
|
713 |
-
* isn't provided.
|
714 |
-
*
|
715 |
-
* @throws LogicException If no token was provided and no token was set using `setAccessToken`.
|
716 |
-
* @throws UnexpectedValueException If the token is not a valid JWT.
|
717 |
-
* @param string|null $idToken The token (id_token) that should be verified.
|
718 |
-
* @return array|false Returns the token payload as an array if the verification was
|
719 |
-
* successful, false otherwise.
|
720 |
-
*/
|
721 |
-
public function verifyIdToken($idToken = null)
|
722 |
-
{
|
723 |
-
$tokenVerifier = new Google_AccessToken_Verify(
|
724 |
-
$this->getHttpClient(),
|
725 |
-
$this->getCache(),
|
726 |
-
$this->config['jwt']
|
727 |
-
);
|
728 |
-
|
729 |
-
if (null === $idToken) {
|
730 |
-
$token = $this->getAccessToken();
|
731 |
-
if (!isset($token['id_token'])) {
|
732 |
-
throw new LogicException(
|
733 |
-
'id_token must be passed in or set as part of setAccessToken'
|
734 |
-
);
|
735 |
-
}
|
736 |
-
$idToken = $token['id_token'];
|
737 |
-
}
|
738 |
-
|
739 |
-
return $tokenVerifier->verifyIdToken(
|
740 |
-
$idToken,
|
741 |
-
$this->getClientId()
|
742 |
-
);
|
743 |
-
}
|
744 |
-
|
745 |
-
/**
|
746 |
-
* Set the scopes to be requested. Must be called before createAuthUrl().
|
747 |
-
* Will remove any previously configured scopes.
|
748 |
-
* @param string|array $scope_or_scopes, ie: array('https://www.googleapis.com/auth/plus.login',
|
749 |
-
* 'https://www.googleapis.com/auth/moderator')
|
750 |
-
*/
|
751 |
-
public function setScopes($scope_or_scopes)
|
752 |
-
{
|
753 |
-
$this->requestedScopes = array();
|
754 |
-
$this->addScope($scope_or_scopes);
|
755 |
-
}
|
756 |
-
|
757 |
-
/**
|
758 |
-
* This functions adds a scope to be requested as part of the OAuth2.0 flow.
|
759 |
-
* Will append any scopes not previously requested to the scope parameter.
|
760 |
-
* A single string will be treated as a scope to request. An array of strings
|
761 |
-
* will each be appended.
|
762 |
-
* @param $scope_or_scopes string|array e.g. "profile"
|
763 |
-
*/
|
764 |
-
public function addScope($scope_or_scopes)
|
765 |
-
{
|
766 |
-
if (is_string($scope_or_scopes) && !in_array($scope_or_scopes, $this->requestedScopes)) {
|
767 |
-
$this->requestedScopes[] = $scope_or_scopes;
|
768 |
-
} else if (is_array($scope_or_scopes)) {
|
769 |
-
foreach ($scope_or_scopes as $scope) {
|
770 |
-
$this->addScope($scope);
|
771 |
-
}
|
772 |
-
}
|
773 |
-
}
|
774 |
-
|
775 |
-
/**
|
776 |
-
* Returns the list of scopes requested by the client
|
777 |
-
* @return array the list of scopes
|
778 |
-
*
|
779 |
-
*/
|
780 |
-
public function getScopes()
|
781 |
-
{
|
782 |
-
return $this->requestedScopes;
|
783 |
-
}
|
784 |
-
|
785 |
-
/**
|
786 |
-
* @return string|null
|
787 |
-
* @visible For Testing
|
788 |
-
*/
|
789 |
-
public function prepareScopes()
|
790 |
-
{
|
791 |
-
if (empty($this->requestedScopes)) {
|
792 |
-
return null;
|
793 |
-
}
|
794 |
-
|
795 |
-
return implode(' ', $this->requestedScopes);
|
796 |
-
}
|
797 |
-
|
798 |
-
/**
|
799 |
-
* Helper method to execute deferred HTTP requests.
|
800 |
-
*
|
801 |
-
* @param $request Psr\Http\Message\RequestInterface|Google_Http_Batch
|
802 |
-
* @throws Google_Exception
|
803 |
-
* @return object of the type of the expected class or Psr\Http\Message\ResponseInterface.
|
804 |
-
*/
|
805 |
-
public function execute(RequestInterface $request, $expectedClass = null)
|
806 |
-
{
|
807 |
-
$request = $request
|
808 |
-
->withHeader(
|
809 |
-
'User-Agent',
|
810 |
-
sprintf(
|
811 |
-
'%s %s%s',
|
812 |
-
$this->config['application_name'],
|
813 |
-
self::USER_AGENT_SUFFIX,
|
814 |
-
$this->getLibraryVersion()
|
815 |
-
)
|
816 |
-
)
|
817 |
-
->withHeader(
|
818 |
-
'x-goog-api-client',
|
819 |
-
sprintf(
|
820 |
-
'gl-php/%s gdcl/%s',
|
821 |
-
phpversion(),
|
822 |
-
$this->getLibraryVersion()
|
823 |
-
)
|
824 |
-
);
|
825 |
-
|
826 |
-
if ($this->config['api_format_v2']) {
|
827 |
-
$request = $request->withHeader(
|
828 |
-
'X-GOOG-API-FORMAT-VERSION',
|
829 |
-
2
|
830 |
-
);
|
831 |
-
}
|
832 |
-
|
833 |
-
// call the authorize method
|
834 |
-
// this is where most of the grunt work is done
|
835 |
-
$http = $this->authorize();
|
836 |
-
|
837 |
-
return Google_Http_REST::execute(
|
838 |
-
$http,
|
839 |
-
$request,
|
840 |
-
$expectedClass,
|
841 |
-
$this->config['retry'],
|
842 |
-
$this->config['retry_map']
|
843 |
-
);
|
844 |
-
}
|
845 |
-
|
846 |
-
/**
|
847 |
-
* Declare whether batch calls should be used. This may increase throughput
|
848 |
-
* by making multiple requests in one connection.
|
849 |
-
*
|
850 |
-
* @param boolean $useBatch True if the batch support should
|
851 |
-
* be enabled. Defaults to False.
|
852 |
-
*/
|
853 |
-
public function setUseBatch($useBatch)
|
854 |
-
{
|
855 |
-
// This is actually an alias for setDefer.
|
856 |
-
$this->setDefer($useBatch);
|
857 |
-
}
|
858 |
-
|
859 |
-
/**
|
860 |
-
* Are we running in Google AppEngine?
|
861 |
-
* return bool
|
862 |
-
*/
|
863 |
-
public function isAppEngine()
|
864 |
-
{
|
865 |
-
return (isset($_SERVER['SERVER_SOFTWARE']) &&
|
866 |
-
strpos($_SERVER['SERVER_SOFTWARE'], 'Google App Engine') !== false);
|
867 |
-
}
|
868 |
-
|
869 |
-
public function setConfig($name, $value)
|
870 |
-
{
|
871 |
-
$this->config[$name] = $value;
|
872 |
-
}
|
873 |
-
|
874 |
-
public function getConfig($name, $default = null)
|
875 |
-
{
|
876 |
-
return isset($this->config[$name]) ? $this->config[$name] : $default;
|
877 |
-
}
|
878 |
-
|
879 |
-
/**
|
880 |
-
* For backwards compatibility
|
881 |
-
* alias for setAuthConfig
|
882 |
-
*
|
883 |
-
* @param string $file the configuration file
|
884 |
-
* @throws Google_Exception
|
885 |
-
* @deprecated
|
886 |
-
*/
|
887 |
-
public function setAuthConfigFile($file)
|
888 |
-
{
|
889 |
-
$this->setAuthConfig($file);
|
890 |
-
}
|
891 |
-
|
892 |
-
/**
|
893 |
-
* Set the auth config from new or deprecated JSON config.
|
894 |
-
* This structure should match the file downloaded from
|
895 |
-
* the "Download JSON" button on in the Google Developer
|
896 |
-
* Console.
|
897 |
-
* @param string|array $config the configuration json
|
898 |
-
* @throws Google_Exception
|
899 |
-
*/
|
900 |
-
public function setAuthConfig($config)
|
901 |
-
{
|
902 |
-
if (is_string($config)) {
|
903 |
-
if (!file_exists($config)) {
|
904 |
-
throw new InvalidArgumentException(sprintf('file "%s" does not exist', $config));
|
905 |
-
}
|
906 |
-
|
907 |
-
$json = file_get_contents($config);
|
908 |
-
|
909 |
-
if (!$config = json_decode($json, true)) {
|
910 |
-
throw new LogicException('invalid json for auth config');
|
911 |
-
}
|
912 |
-
}
|
913 |
-
|
914 |
-
$key = isset($config['installed']) ? 'installed' : 'web';
|
915 |
-
if (isset($config['type']) && $config['type'] == 'service_account') {
|
916 |
-
// application default credentials
|
917 |
-
$this->useApplicationDefaultCredentials();
|
918 |
-
|
919 |
-
// set the information from the config
|
920 |
-
$this->setClientId($config['client_id']);
|
921 |
-
$this->config['client_email'] = $config['client_email'];
|
922 |
-
$this->config['signing_key'] = $config['private_key'];
|
923 |
-
$this->config['signing_algorithm'] = 'HS256';
|
924 |
-
} elseif (isset($config[$key])) {
|
925 |
-
// old-style
|
926 |
-
$this->setClientId($config[$key]['client_id']);
|
927 |
-
$this->setClientSecret($config[$key]['client_secret']);
|
928 |
-
if (isset($config[$key]['redirect_uris'])) {
|
929 |
-
$this->setRedirectUri($config[$key]['redirect_uris'][0]);
|
930 |
-
}
|
931 |
-
} else {
|
932 |
-
// new-style
|
933 |
-
$this->setClientId($config['client_id']);
|
934 |
-
$this->setClientSecret($config['client_secret']);
|
935 |
-
if (isset($config['redirect_uris'])) {
|
936 |
-
$this->setRedirectUri($config['redirect_uris'][0]);
|
937 |
-
}
|
938 |
-
}
|
939 |
-
}
|
940 |
-
|
941 |
-
/**
|
942 |
-
* Use when the service account has been delegated domain wide access.
|
943 |
-
*
|
944 |
-
* @param string $subject an email address account to impersonate
|
945 |
-
*/
|
946 |
-
public function setSubject($subject)
|
947 |
-
{
|
948 |
-
$this->config['subject'] = $subject;
|
949 |
-
}
|
950 |
-
|
951 |
-
/**
|
952 |
-
* Declare whether making API calls should make the call immediately, or
|
953 |
-
* return a request which can be called with ->execute();
|
954 |
-
*
|
955 |
-
* @param boolean $defer True if calls should not be executed right away.
|
956 |
-
*/
|
957 |
-
public function setDefer($defer)
|
958 |
-
{
|
959 |
-
$this->deferExecution = $defer;
|
960 |
-
}
|
961 |
-
|
962 |
-
/**
|
963 |
-
* Whether or not to return raw requests
|
964 |
-
* @return boolean
|
965 |
-
*/
|
966 |
-
public function shouldDefer()
|
967 |
-
{
|
968 |
-
return $this->deferExecution;
|
969 |
-
}
|
970 |
-
|
971 |
-
/**
|
972 |
-
* @return Google\Auth\OAuth2 implementation
|
973 |
-
*/
|
974 |
-
public function getOAuth2Service()
|
975 |
-
{
|
976 |
-
if (!isset($this->auth)) {
|
977 |
-
$this->auth = $this->createOAuth2Service();
|
978 |
-
}
|
979 |
-
|
980 |
-
return $this->auth;
|
981 |
-
}
|
982 |
-
|
983 |
-
/**
|
984 |
-
* create a default google auth object
|
985 |
-
*/
|
986 |
-
protected function createOAuth2Service()
|
987 |
-
{
|
988 |
-
$auth = new OAuth2(
|
989 |
-
[
|
990 |
-
'clientId' => $this->getClientId(),
|
991 |
-
'clientSecret' => $this->getClientSecret(),
|
992 |
-
'authorizationUri' => self::OAUTH2_AUTH_URL,
|
993 |
-
'tokenCredentialUri' => self::OAUTH2_TOKEN_URI,
|
994 |
-
'redirectUri' => $this->getRedirectUri(),
|
995 |
-
'issuer' => $this->config['client_id'],
|
996 |
-
'signingKey' => $this->config['signing_key'],
|
997 |
-
'signingAlgorithm' => $this->config['signing_algorithm'],
|
998 |
-
]
|
999 |
-
);
|
1000 |
-
|
1001 |
-
return $auth;
|
1002 |
-
}
|
1003 |
-
|
1004 |
-
/**
|
1005 |
-
* Set the Cache object
|
1006 |
-
* @param Psr\Cache\CacheItemPoolInterface $cache
|
1007 |
-
*/
|
1008 |
-
public function setCache(CacheItemPoolInterface $cache)
|
1009 |
-
{
|
1010 |
-
$this->cache = $cache;
|
1011 |
-
}
|
1012 |
-
|
1013 |
-
/**
|
1014 |
-
* @return Psr\Cache\CacheItemPoolInterface Cache implementation
|
1015 |
-
*/
|
1016 |
-
public function getCache()
|
1017 |
-
{
|
1018 |
-
if (!$this->cache) {
|
1019 |
-
$this->cache = $this->createDefaultCache();
|
1020 |
-
}
|
1021 |
-
|
1022 |
-
return $this->cache;
|
1023 |
-
}
|
1024 |
-
|
1025 |
-
/**
|
1026 |
-
* @param array $cacheConfig
|
1027 |
-
*/
|
1028 |
-
public function setCacheConfig(array $cacheConfig)
|
1029 |
-
{
|
1030 |
-
$this->config['cache_config'] = $cacheConfig;
|
1031 |
-
}
|
1032 |
-
|
1033 |
-
/**
|
1034 |
-
* Set the Logger object
|
1035 |
-
* @param Psr\Log\LoggerInterface $logger
|
1036 |
-
*/
|
1037 |
-
public function setLogger(LoggerInterface $logger)
|
1038 |
-
{
|
1039 |
-
$this->logger = $logger;
|
1040 |
-
}
|
1041 |
-
|
1042 |
-
/**
|
1043 |
-
* @return Psr\Log\LoggerInterface implementation
|
1044 |
-
*/
|
1045 |
-
public function getLogger()
|
1046 |
-
{
|
1047 |
-
if (!isset($this->logger)) {
|
1048 |
-
$this->logger = $this->createDefaultLogger();
|
1049 |
-
}
|
1050 |
-
|
1051 |
-
return $this->logger;
|
1052 |
-
}
|
1053 |
-
|
1054 |
-
protected function createDefaultLogger()
|
1055 |
-
{
|
1056 |
-
$logger = new Logger('google-api-php-client');
|
1057 |
-
if ($this->isAppEngine()) {
|
1058 |
-
$handler = new MonologSyslogHandler('app', LOG_USER, Logger::NOTICE);
|
1059 |
-
} else {
|
1060 |
-
$handler = new MonologStreamHandler('php://stderr', Logger::NOTICE);
|
1061 |
-
}
|
1062 |
-
$logger->pushHandler($handler);
|
1063 |
-
|
1064 |
-
return $logger;
|
1065 |
-
}
|
1066 |
-
|
1067 |
-
protected function createDefaultCache()
|
1068 |
-
{
|
1069 |
-
return new MemoryCacheItemPool;
|
1070 |
-
}
|
1071 |
-
|
1072 |
-
/**
|
1073 |
-
* Set the Http Client object
|
1074 |
-
* @param GuzzleHttp\ClientInterface $http
|
1075 |
-
*/
|
1076 |
-
public function setHttpClient(ClientInterface $http)
|
1077 |
-
{
|
1078 |
-
$this->http = $http;
|
1079 |
-
}
|
1080 |
-
|
1081 |
-
/**
|
1082 |
-
* @return GuzzleHttp\ClientInterface implementation
|
1083 |
-
*/
|
1084 |
-
public function getHttpClient()
|
1085 |
-
{
|
1086 |
-
if (null === $this->http) {
|
1087 |
-
$this->http = $this->createDefaultHttpClient();
|
1088 |
-
}
|
1089 |
-
|
1090 |
-
return $this->http;
|
1091 |
-
}
|
1092 |
-
|
1093 |
-
/**
|
1094 |
-
* Set the API format version.
|
1095 |
-
*
|
1096 |
-
* `true` will use V2, which may return more useful error messages.
|
1097 |
-
*
|
1098 |
-
* @param bool $value
|
1099 |
-
*/
|
1100 |
-
public function setApiFormatV2($value)
|
1101 |
-
{
|
1102 |
-
$this->config['api_format_v2'] = (bool) $value;
|
1103 |
-
}
|
1104 |
-
|
1105 |
-
protected function createDefaultHttpClient()
|
1106 |
-
{
|
1107 |
-
$options = ['exceptions' => false];
|
1108 |
-
|
1109 |
-
$version = ClientInterface::VERSION;
|
1110 |
-
if ('5' === $version[0]) {
|
1111 |
-
$options = [
|
1112 |
-
'base_url' => $this->config['base_path'],
|
1113 |
-
'defaults' => $options,
|
1114 |
-
];
|
1115 |
-
if ($this->isAppEngine()) {
|
1116 |
-
// set StreamHandler on AppEngine by default
|
1117 |
-
$options['handler'] = new StreamHandler();
|
1118 |
-
$options['defaults']['verify'] = '/etc/ca-certificates.crt';
|
1119 |
-
}
|
1120 |
-
} else {
|
1121 |
-
// guzzle 6
|
1122 |
-
$options['base_uri'] = $this->config['base_path'];
|
1123 |
-
}
|
1124 |
-
|
1125 |
-
return new Client($options);
|
1126 |
-
}
|
1127 |
-
|
1128 |
-
private function createApplicationDefaultCredentials()
|
1129 |
-
{
|
1130 |
-
$scopes = $this->prepareScopes();
|
1131 |
-
$sub = $this->config['subject'];
|
1132 |
-
$signingKey = $this->config['signing_key'];
|
1133 |
-
|
1134 |
-
// create credentials using values supplied in setAuthConfig
|
1135 |
-
if ($signingKey) {
|
1136 |
-
$serviceAccountCredentials = array(
|
1137 |
-
'client_id' => $this->config['client_id'],
|
1138 |
-
'client_email' => $this->config['client_email'],
|
1139 |
-
'private_key' => $signingKey,
|
1140 |
-
'type' => 'service_account',
|
1141 |
-
);
|
1142 |
-
$credentials = CredentialsLoader::makeCredentials($scopes, $serviceAccountCredentials);
|
1143 |
-
} else {
|
1144 |
-
$credentials = ApplicationDefaultCredentials::getCredentials($scopes);
|
1145 |
-
}
|
1146 |
-
|
1147 |
-
// for service account domain-wide authority (impersonating a user)
|
1148 |
-
// @see https://developers.google.com/identity/protocols/OAuth2ServiceAccount
|
1149 |
-
if ($sub) {
|
1150 |
-
if (!$credentials instanceof ServiceAccountCredentials) {
|
1151 |
-
throw new DomainException('domain-wide authority requires service account credentials');
|
1152 |
-
}
|
1153 |
-
|
1154 |
-
$credentials->setSub($sub);
|
1155 |
-
}
|
1156 |
-
|
1157 |
-
return $credentials;
|
1158 |
-
}
|
1159 |
-
|
1160 |
-
protected function getAuthHandler()
|
1161 |
-
{
|
1162 |
-
// Be very careful using the cache, as the underlying auth library's cache
|
1163 |
-
// implementation is naive, and the cache keys do not account for user
|
1164 |
-
// sessions.
|
1165 |
-
//
|
1166 |
-
// @see https://github.com/google/google-api-php-client/issues/821
|
1167 |
-
return Google_AuthHandler_AuthHandlerFactory::build(
|
1168 |
-
$this->getCache(),
|
1169 |
-
$this->config['cache_config']
|
1170 |
-
);
|
1171 |
-
}
|
1172 |
-
|
1173 |
-
private function createUserRefreshCredentials($scope, $refreshToken)
|
1174 |
-
{
|
1175 |
-
$creds = array_filter(
|
1176 |
-
array(
|
1177 |
-
'client_id' => $this->getClientId(),
|
1178 |
-
'client_secret' => $this->getClientSecret(),
|
1179 |
-
'refresh_token' => $refreshToken,
|
1180 |
-
)
|
1181 |
-
);
|
1182 |
-
|
1183 |
-
return new UserRefreshCredentials($scope, $creds);
|
1184 |
-
}
|
1185 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient/src/Google/Collection.php
DELETED
@@ -1,100 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if (!class_exists('Google_Client')) {
|
4 |
-
require_once __DIR__ . '/autoload.php';
|
5 |
-
}
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Extension to the regular Google_Model that automatically
|
9 |
-
* exposes the items array for iteration, so you can just
|
10 |
-
* iterate over the object rather than a reference inside.
|
11 |
-
*/
|
12 |
-
class Google_Collection extends Google_Model implements Iterator, Countable
|
13 |
-
{
|
14 |
-
protected $collection_key = 'items';
|
15 |
-
|
16 |
-
public function rewind()
|
17 |
-
{
|
18 |
-
if (isset($this->{$this->collection_key})
|
19 |
-
&& is_array($this->{$this->collection_key})) {
|
20 |
-
reset($this->{$this->collection_key});
|
21 |
-
}
|
22 |
-
}
|
23 |
-
|
24 |
-
public function current()
|
25 |
-
{
|
26 |
-
$this->coerceType($this->key());
|
27 |
-
if (is_array($this->{$this->collection_key})) {
|
28 |
-
return current($this->{$this->collection_key});
|
29 |
-
}
|
30 |
-
}
|
31 |
-
|
32 |
-
public function key()
|
33 |
-
{
|
34 |
-
if (isset($this->{$this->collection_key})
|
35 |
-
&& is_array($this->{$this->collection_key})) {
|
36 |
-
return key($this->{$this->collection_key});
|
37 |
-
}
|
38 |
-
}
|
39 |
-
|
40 |
-
public function next()
|
41 |
-
{
|
42 |
-
return next($this->{$this->collection_key});
|
43 |
-
}
|
44 |
-
|
45 |
-
public function valid()
|
46 |
-
{
|
47 |
-
$key = $this->key();
|
48 |
-
return $key !== null && $key !== false;
|
49 |
-
}
|
50 |
-
|
51 |
-
public function count()
|
52 |
-
{
|
53 |
-
if (!isset($this->{$this->collection_key})) {
|
54 |
-
return 0;
|
55 |
-
}
|
56 |
-
return count($this->{$this->collection_key});
|
57 |
-
}
|
58 |
-
|
59 |
-
public function offsetExists($offset)
|
60 |
-
{
|
61 |
-
if (!is_numeric($offset)) {
|
62 |
-
return parent::offsetExists($offset);
|
63 |
-
}
|
64 |
-
return isset($this->{$this->collection_key}[$offset]);
|
65 |
-
}
|
66 |
-
|
67 |
-
public function offsetGet($offset)
|
68 |
-
{
|
69 |
-
if (!is_numeric($offset)) {
|
70 |
-
return parent::offsetGet($offset);
|
71 |
-
}
|
72 |
-
$this->coerceType($offset);
|
73 |
-
return $this->{$this->collection_key}[$offset];
|
74 |
-
}
|
75 |
-
|
76 |
-
public function offsetSet($offset, $value)
|
77 |
-
{
|
78 |
-
if (!is_numeric($offset)) {
|
79 |
-
return parent::offsetSet($offset, $value);
|
80 |
-
}
|
81 |
-
$this->{$this->collection_key}[$offset] = $value;
|
82 |
-
}
|
83 |
-
|
84 |
-
public function offsetUnset($offset)
|
85 |
-
{
|
86 |
-
if (!is_numeric($offset)) {
|
87 |
-
return parent::offsetUnset($offset);
|
88 |
-
}
|
89 |
-
unset($this->{$this->collection_key}[$offset]);
|
90 |
-
}
|
91 |
-
|
92 |
-
private function coerceType($offset)
|
93 |
-
{
|
94 |
-
$keyType = $this->keyType($this->collection_key);
|
95 |
-
if ($keyType && !is_object($this->{$this->collection_key}[$offset])) {
|
96 |
-
$this->{$this->collection_key}[$offset] =
|
97 |
-
new $keyType($this->{$this->collection_key}[$offset]);
|
98 |
-
}
|
99 |
-
}
|
100 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient/src/Google/Exception.php
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2013 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Exception extends Exception
|
19 |
-
{
|
20 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient/src/Google/Http/Batch.php
DELETED
@@ -1,253 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2012 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
use GuzzleHttp\Psr7;
|
19 |
-
use GuzzleHttp\Psr7\Request;
|
20 |
-
use GuzzleHttp\Psr7\Response;
|
21 |
-
use Psr\Http\Message\RequestInterface;
|
22 |
-
use Psr\Http\Message\ResponseInterface;
|
23 |
-
|
24 |
-
/**
|
25 |
-
* Class to handle batched requests to the Google API service.
|
26 |
-
*
|
27 |
-
* Note that calls to `Google_Http_Batch::execute()` do not clear the queued
|
28 |
-
* requests. To start a new batch, be sure to create a new instance of this
|
29 |
-
* class.
|
30 |
-
*/
|
31 |
-
class Google_Http_Batch
|
32 |
-
{
|
33 |
-
const BATCH_PATH = 'batch';
|
34 |
-
|
35 |
-
private static $CONNECTION_ESTABLISHED_HEADERS = array(
|
36 |
-
"HTTP/1.0 200 Connection established\r\n\r\n",
|
37 |
-
"HTTP/1.1 200 Connection established\r\n\r\n",
|
38 |
-
);
|
39 |
-
|
40 |
-
/** @var string Multipart Boundary. */
|
41 |
-
private $boundary;
|
42 |
-
|
43 |
-
/** @var array service requests to be executed. */
|
44 |
-
private $requests = array();
|
45 |
-
|
46 |
-
/** @var Google_Client */
|
47 |
-
private $client;
|
48 |
-
|
49 |
-
private $rootUrl;
|
50 |
-
|
51 |
-
private $batchPath;
|
52 |
-
|
53 |
-
public function __construct(
|
54 |
-
Google_Client $client,
|
55 |
-
$boundary = false,
|
56 |
-
$rootUrl = null,
|
57 |
-
$batchPath = null
|
58 |
-
) {
|
59 |
-
$this->client = $client;
|
60 |
-
$this->boundary = $boundary ?: mt_rand();
|
61 |
-
$this->rootUrl = rtrim($rootUrl ?: $this->client->getConfig('base_path'), '/');
|
62 |
-
$this->batchPath = $batchPath ?: self::BATCH_PATH;
|
63 |
-
}
|
64 |
-
|
65 |
-
public function add(RequestInterface $request, $key = false)
|
66 |
-
{
|
67 |
-
if (false == $key) {
|
68 |
-
$key = mt_rand();
|
69 |
-
}
|
70 |
-
|
71 |
-
$this->requests[$key] = $request;
|
72 |
-
}
|
73 |
-
|
74 |
-
public function execute()
|
75 |
-
{
|
76 |
-
$body = '';
|
77 |
-
$classes = array();
|
78 |
-
$batchHttpTemplate = <<<EOF
|
79 |
-
--%s
|
80 |
-
Content-Type: application/http
|
81 |
-
Content-Transfer-Encoding: binary
|
82 |
-
MIME-Version: 1.0
|
83 |
-
Content-ID: %s
|
84 |
-
|
85 |
-
%s
|
86 |
-
%s%s
|
87 |
-
|
88 |
-
|
89 |
-
EOF;
|
90 |
-
|
91 |
-
/** @var Google_Http_Request $req */
|
92 |
-
foreach ($this->requests as $key => $request) {
|
93 |
-
$firstLine = sprintf(
|
94 |
-
'%s %s HTTP/%s',
|
95 |
-
$request->getMethod(),
|
96 |
-
$request->getRequestTarget(),
|
97 |
-
$request->getProtocolVersion()
|
98 |
-
);
|
99 |
-
|
100 |
-
$content = (string) $request->getBody();
|
101 |
-
|
102 |
-
$headers = '';
|
103 |
-
foreach ($request->getHeaders() as $name => $values) {
|
104 |
-
$headers .= sprintf("%s:%s\r\n", $name, implode(', ', $values));
|
105 |
-
}
|
106 |
-
|
107 |
-
$body .= sprintf(
|
108 |
-
$batchHttpTemplate,
|
109 |
-
$this->boundary,
|
110 |
-
$key,
|
111 |
-
$firstLine,
|
112 |
-
$headers,
|
113 |
-
$content ? "\n".$content : ''
|
114 |
-
);
|
115 |
-
|
116 |
-
$classes['response-' . $key] = $request->getHeaderLine('X-Php-Expected-Class');
|
117 |
-
}
|
118 |
-
|
119 |
-
$body .= "--{$this->boundary}--";
|
120 |
-
$body = trim($body);
|
121 |
-
$url = $this->rootUrl . '/' . $this->batchPath;
|
122 |
-
$headers = array(
|
123 |
-
'Content-Type' => sprintf('multipart/mixed; boundary=%s', $this->boundary),
|
124 |
-
'Content-Length' => strlen($body),
|
125 |
-
);
|
126 |
-
|
127 |
-
$request = new Request(
|
128 |
-
'POST',
|
129 |
-
$url,
|
130 |
-
$headers,
|
131 |
-
$body
|
132 |
-
);
|
133 |
-
|
134 |
-
$response = $this->client->execute($request);
|
135 |
-
|
136 |
-
return $this->parseResponse($response, $classes);
|
137 |
-
}
|
138 |
-
|
139 |
-
public function parseResponse(ResponseInterface $response, $classes = array())
|
140 |
-
{
|
141 |
-
$contentType = $response->getHeaderLine('content-type');
|
142 |
-
$contentType = explode(';', $contentType);
|
143 |
-
$boundary = false;
|
144 |
-
foreach ($contentType as $part) {
|
145 |
-
$part = explode('=', $part, 2);
|
146 |
-
if (isset($part[0]) && 'boundary' == trim($part[0])) {
|
147 |
-
$boundary = $part[1];
|
148 |
-
}
|
149 |
-
}
|
150 |
-
|
151 |
-
$body = (string) $response->getBody();
|
152 |
-
if (!empty($body)) {
|
153 |
-
$body = str_replace("--$boundary--", "--$boundary", $body);
|
154 |
-
$parts = explode("--$boundary", $body);
|
155 |
-
$responses = array();
|
156 |
-
$requests = array_values($this->requests);
|
157 |
-
|
158 |
-
foreach ($parts as $i => $part) {
|
159 |
-
$part = trim($part);
|
160 |
-
if (!empty($part)) {
|
161 |
-
list($rawHeaders, $part) = explode("\r\n\r\n", $part, 2);
|
162 |
-
$headers = $this->parseRawHeaders($rawHeaders);
|
163 |
-
|
164 |
-
$status = substr($part, 0, strpos($part, "\n"));
|
165 |
-
$status = explode(" ", $status);
|
166 |
-
$status = $status[1];
|
167 |
-
|
168 |
-
list($partHeaders, $partBody) = $this->parseHttpResponse($part, false);
|
169 |
-
$response = new Response(
|
170 |
-
$status,
|
171 |
-
$partHeaders,
|
172 |
-
Psr7\stream_for($partBody)
|
173 |
-
);
|
174 |
-
|
175 |
-
// Need content id.
|
176 |
-
$key = $headers['content-id'];
|
177 |
-
|
178 |
-
try {
|
179 |
-
$response = Google_Http_REST::decodeHttpResponse($response, $requests[$i-1]);
|
180 |
-
} catch (Google_Service_Exception $e) {
|
181 |
-
// Store the exception as the response, so successful responses
|
182 |
-
// can be processed.
|
183 |
-
$response = $e;
|
184 |
-
}
|
185 |
-
|
186 |
-
$responses[$key] = $response;
|
187 |
-
}
|
188 |
-
}
|
189 |
-
|
190 |
-
return $responses;
|
191 |
-
}
|
192 |
-
|
193 |
-
return null;
|
194 |
-
}
|
195 |
-
|
196 |
-
private function parseRawHeaders($rawHeaders)
|
197 |
-
{
|
198 |
-
$headers = array();
|
199 |
-
$responseHeaderLines = explode("\r\n", $rawHeaders);
|
200 |
-
foreach ($responseHeaderLines as $headerLine) {
|
201 |
-
if ($headerLine && strpos($headerLine, ':') !== false) {
|
202 |
-
list($header, $value) = explode(': ', $headerLine, 2);
|
203 |
-
$header = strtolower($header);
|
204 |
-
if (isset($headers[$header])) {
|
205 |
-
$headers[$header] .= "\n" . $value;
|
206 |
-
} else {
|
207 |
-
$headers[$header] = $value;
|
208 |
-
}
|
209 |
-
}
|
210 |
-
}
|
211 |
-
return $headers;
|
212 |
-
}
|
213 |
-
|
214 |
-
/**
|
215 |
-
* Used by the IO lib and also the batch processing.
|
216 |
-
*
|
217 |
-
* @param $respData
|
218 |
-
* @param $headerSize
|
219 |
-
* @return array
|
220 |
-
*/
|
221 |
-
private function parseHttpResponse($respData, $headerSize)
|
222 |
-
{
|
223 |
-
// check proxy header
|
224 |
-
foreach (self::$CONNECTION_ESTABLISHED_HEADERS as $established_header) {
|
225 |
-
if (stripos($respData, $established_header) !== false) {
|
226 |
-
// existed, remove it
|
227 |
-
$respData = str_ireplace($established_header, '', $respData);
|
228 |
-
// Subtract the proxy header size unless the cURL bug prior to 7.30.0
|
229 |
-
// is present which prevented the proxy header size from being taken into
|
230 |
-
// account.
|
231 |
-
// @TODO look into this
|
232 |
-
// if (!$this->needsQuirk()) {
|
233 |
-
// $headerSize -= strlen($established_header);
|
234 |
-
// }
|
235 |
-
break;
|
236 |
-
}
|
237 |
-
}
|
238 |
-
|
239 |
-
if ($headerSize) {
|
240 |
-
$responseBody = substr($respData, $headerSize);
|
241 |
-
$responseHeaders = substr($respData, 0, $headerSize);
|
242 |
-
} else {
|
243 |
-
$responseSegments = explode("\r\n\r\n", $respData, 2);
|
244 |
-
$responseHeaders = $responseSegments[0];
|
245 |
-
$responseBody = isset($responseSegments[1]) ? $responseSegments[1] :
|
246 |
-
null;
|
247 |
-
}
|
248 |
-
|
249 |
-
$responseHeaders = $this->parseRawHeaders($responseHeaders);
|
250 |
-
|
251 |
-
return array($responseHeaders, $responseBody);
|
252 |
-
}
|
253 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient/src/Google/Http/MediaFileUpload.php
DELETED
@@ -1,353 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Copyright 2012 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
use GuzzleHttp\Psr7;
|
19 |
-
use GuzzleHttp\Psr7\Request;
|
20 |
-
use GuzzleHttp\Psr7\Uri;
|
21 |
-
use Psr\Http\Message\RequestInterface;
|
22 |
-
|
23 |
-
/**
|
24 |
-
* Manage large file uploads, which may be media but can be any type
|
25 |
-
* of sizable data.
|
26 |
-
*/
|
27 |
-
class Google_Http_MediaFileUpload
|
28 |
-
{
|
29 |
-
const UPLOAD_MEDIA_TYPE = 'media';
|
30 |
-
const UPLOAD_MULTIPART_TYPE = 'multipart';
|
31 |
-
const UPLOAD_RESUMABLE_TYPE = 'resumable';
|
32 |
-
|
33 |
-
/** @var string $mimeType */
|
34 |
-
private $mimeType;
|
35 |
-
|
36 |
-
/** @var string $data */
|
37 |
-
private $data;
|
38 |
-
|
39 |
-
/** @var bool $resumable */
|
40 |
-
private $resumable;
|
41 |
-
|
42 |
-
/** @var int $chunkSize */
|
43 |
-
private $chunkSize;
|
44 |
-
|
45 |
-
/** @var int $size */
|
46 |
-
private $size;
|
47 |
-
|
48 |
-
/** @var string $resumeUri */
|
49 |
-
private $resumeUri;
|
50 |
-
|
51 |
-
/** @var int $progress */
|
52 |
-
private $progress;
|
53 |
-
|
54 |
-
/** @var Google_Client */
|
55 |
-
private $client;
|
56 |
-
|
57 |
-
/** @var Psr\Http\Message\RequestInterface */
|
58 |
-
private $request;
|
59 |
-
|
60 |
-
/** @var string */
|
61 |
-
private $boundary;
|
62 |
-
|
63 |
-
/**
|
64 |
-
* Result code from last HTTP call
|
65 |
-
* @var int
|
66 |
-
*/
|
67 |
-
private $httpResultCode;
|
68 |
-
|
69 |
-
/**
|
70 |
-
* @param Google_Client $client
|
71 |
-
* @param RequestInterface $request
|
72 |
-
* @param string $mimeType
|
73 |
-
* @param string $data The bytes you want to upload.
|
74 |
-
* @param bool $resumable
|
75 |
-
* @param bool $chunkSize File will be uploaded in chunks of this many bytes.
|
76 |
-
* only used if resumable=True
|
77 |
-
*/
|
78 |
-
public function __construct(
|
79 |
-
Google_Client $client,
|
80 |
-
RequestInterface $request,
|
81 |
-
$mimeType,
|
82 |
-
$data,
|
83 |
-
$resumable = false,
|
84 |
-
$chunkSize = false
|
85 |
-
) {
|
86 |
-
$this->client = $client;
|
87 |
-
$this->request = $request;
|
88 |
-
$this->mimeType = $mimeType;
|
89 |
-
$this->data = $data;
|
90 |
-
$this->resumable = $resumable;
|
91 |
-
$this->chunkSize = $chunkSize;
|
92 |
-
$this->progress = 0;
|
93 |
-
|
94 |
-
$this->process();
|
95 |
-
}
|
96 |
-
|
97 |
-
/**
|
98 |
-
* Set the size of the file that is being uploaded.
|
99 |
-
* @param $size - int file size in bytes
|
100 |
-
*/
|
101 |
-
public function setFileSize($size)
|
102 |
-
{
|
103 |
-
$this->size = $size;
|
104 |
-
}
|
105 |
-
|
106 |
-
/**
|
107 |
-
* Return the progress on the upload
|
108 |
-
* @return int progress in bytes uploaded.
|
109 |
-
*/
|
110 |
-
public function getProgress()
|
111 |
-
{
|
112 |
-
return $this->progress;
|
113 |
-
}
|
114 |
-
|
115 |
-
/**
|
116 |
-
* Send the next part of the file to upload.
|
117 |
-
* @param [$chunk] the next set of bytes to send. If false will used $data passed
|
118 |
-
* at construct time.
|
119 |
-
*/
|
120 |
-
public function nextChunk($chunk = false)
|
121 |
-
{
|
122 |
-
$resumeUri = $this->getResumeUri();
|
123 |
-
|
124 |
-
if (false == $chunk) {
|
125 |
-
$chunk = substr($this->data, $this->progress, $this->chunkSize);
|
126 |
-
}
|
127 |
-
|
128 |
-
$lastBytePos = $this->progress + strlen($chunk) - 1;
|
129 |
-
$headers = array(
|
130 |
-
'content-range' => "bytes $this->progress-$lastBytePos/$this->size",
|
131 |
-
'content-length' => strlen($chunk),
|
132 |
-
'expect' => '',
|
133 |
-
);
|
134 |
-
|
135 |
-
$request = new Request(
|
136 |
-
'PUT',
|
137 |
-
$resumeUri,
|
138 |
-
$headers,
|
139 |
-
Psr7\stream_for($chunk)
|
140 |
-
);
|
141 |
-
|
142 |
-
return $this->makePutRequest($request);
|
143 |
-
}
|
144 |
-
|
145 |
-
/**
|
146 |
-
* Return the HTTP result code from the last call made.
|
147 |
-
* @return int code
|
148 |
-
*/
|
149 |
-
public function getHttpResultCode()
|
150 |
-
{
|
151 |
-
return $this->httpResultCode;
|
152 |
-
}
|
153 |
-
|
154 |
-
/**
|
155 |
-
* Sends a PUT-Request to google drive and parses the response,
|
156 |
-
* setting the appropiate variables from the response()
|
157 |
-
*
|
158 |
-
* @param Google_Http_Request $httpRequest the Reuqest which will be send
|
159 |
-
*
|
160 |
-
* @return false|mixed false when the upload is unfinished or the decoded http response
|
161 |
-
*
|
162 |
-
*/
|
163 |
-
private function makePutRequest(RequestInterface $request)
|
164 |
-
{
|
165 |
-
$response = $this->client->execute($request);
|
166 |
-
$this->httpResultCode = $response->getStatusCode();
|
167 |
-
|
168 |
-
if (308 == $this->httpResultCode) {
|
169 |
-
// Track the amount uploaded.
|
170 |
-
$range = $response->getHeaderLine('range');
|
171 |
-
if ($range) {
|
172 |
-
$range_array = explode('-', $range);
|
173 |
-
$this->progress = $range_array[1] + 1;
|
174 |
-
}
|
175 |
-
|
176 |
-
// Allow for changing upload URLs.
|
177 |
-
$location = $response->getHeaderLine('location');
|
178 |
-
if ($location) {
|
179 |
-
$this->resumeUri = $location;
|
180 |
-
}
|
181 |
-
|
182 |
-
// No problems, but upload not complete.
|
183 |
-
return false;
|
184 |
-
}
|
185 |
-
|
186 |
-
return Google_Http_REST::decodeHttpResponse($response, $this->request);
|
187 |
-
}
|
188 |
-
|
189 |
-
/**
|
190 |
-
* Resume a previously unfinished upload
|
191 |
-
* @param $resumeUri the resume-URI of the unfinished, resumable upload.
|
192 |
-
*/
|
193 |
-
public function resume($resumeUri)
|
194 |
-
{
|
195 |
-
$this->resumeUri = $resumeUri;
|
196 |
-
$headers = array(
|
197 |
-
'content-range' => "bytes */$this->size",
|
198 |
-
'content-length' => 0,
|
199 |
-
);
|
200 |
-
$httpRequest = new Request(
|
201 |
-
'PUT',
|
202 |
-
$this->resumeUri,
|
203 |
-
$headers
|
204 |
-
);
|
205 |
-
|
206 |
-
return $this->makePutRequest($httpRequest);
|
207 |
-
}
|
208 |
-
|
209 |
-
/**
|
210 |
-
* @return Psr\Http\Message\RequestInterface $request
|
211 |
-
* @visible for testing
|
212 |
-
*/
|
213 |
-
private function process()
|
214 |
-
{
|
215 |
-
$this->transformToUploadUrl();
|
216 |
-
$request = $this->request;
|
217 |
-
|
218 |
-
$postBody = '';
|
219 |
-
$contentType = false;
|
220 |
-
|
221 |
-
$meta = (string) $request->getBody();
|
222 |
-
$meta = is_string($meta) ? json_decode($meta, true) : $meta;
|
223 |
-
|
224 |
-
$uploadType = $this->getUploadType($meta);
|
225 |
-
$request = $request->withUri(
|
226 |
-
Uri::withQueryValue($request->getUri(), 'uploadType', $uploadType)
|
227 |
-
);
|
228 |
-
|
229 |
-
$mimeType = $this->mimeType ?: $request->getHeaderLine('content-type');
|
230 |
-
|
231 |
-
if (self::UPLOAD_RESUMABLE_TYPE == $uploadType) {
|
232 |
-
$contentType = $mimeType;
|
233 |
-
$postBody = is_string($meta) ? $meta : json_encode($meta);
|
234 |
-
} else if (self::UPLOAD_MEDIA_TYPE == $uploadType) {
|
235 |
-
$contentType = $mimeType;
|
236 |
-
$postBody = $this->data;
|
237 |
-
} else if (self::UPLOAD_MULTIPART_TYPE == $uploadType) {
|
238 |
-
// This is a multipart/related upload.
|
239 |
-
$boundary = $this->boundary ?: mt_rand();
|
240 |
-
$boundary = str_replace('"', '', $boundary);
|
241 |
-
$contentType = 'multipart/related; boundary=' . $boundary;
|
242 |
-
$related = "--$boundary\r\n";
|
243 |
-
$related .= "Content-Type: application/json; charset=UTF-8\r\n";
|
244 |
-
$related .= "\r\n" . json_encode($meta) . "\r\n";
|
245 |
-
$related .= "--$boundary\r\n";
|
246 |
-
$related .= "Content-Type: $mimeType\r\n";
|
247 |
-
$related .= "Content-Transfer-Encoding: base64\r\n";
|
248 |
-
$related .= "\r\n" . base64_encode($this->data) . "\r\n";
|
249 |
-
$related .= "--$boundary--";
|
250 |
-
$postBody = $related;
|
251 |
-
}
|
252 |
-
|
253 |
-
$request = $request->withBody(Psr7\stream_for($postBody));
|
254 |
-
|
255 |
-
if (isset($contentType) && $contentType) {
|
256 |
-
$request = $request->withHeader('content-type', $contentType);
|
257 |
-
}
|
258 |
-
|
259 |
-
return $this->request = $request;
|
260 |
-
}
|
261 |
-
|
262 |
-
/**
|
263 |
-
* Valid upload types:
|
264 |
-
* - resumable (UPLOAD_RESUMABLE_TYPE)
|
265 |
-
* - media (UPLOAD_MEDIA_TYPE)
|
266 |
-
* - multipart (UPLOAD_MULTIPART_TYPE)
|
267 |
-
* @param $meta
|
268 |
-
* @return string
|
269 |
-
* @visible for testing
|
270 |
-
*/
|
271 |
-
public function getUploadType($meta)
|
272 |
-
{
|
273 |
-
if ($this->resumable) {
|
274 |
-
return self::UPLOAD_RESUMABLE_TYPE;
|
275 |
-
}
|
276 |
-
|
277 |
-
if (false == $meta && $this->data) {
|
278 |
-
return self::UPLOAD_MEDIA_TYPE;
|
279 |
-
}
|
280 |
-
|
281 |
-
return self::UPLOAD_MULTIPART_TYPE;
|
282 |
-
}
|
283 |
-
|
284 |
-
public function getResumeUri()
|
285 |
-
{
|
286 |
-
if (null === $this->resumeUri) {
|
287 |
-
$this->resumeUri = $this->fetchResumeUri();
|
288 |
-
}
|
289 |
-
|
290 |
-
return $this->resumeUri;
|
291 |
-
}
|
292 |
-
|
293 |
-
private function fetchResumeUri()
|
294 |
-
{
|
295 |
-
$body = $this->request->getBody();
|
296 |
-
if ($body) {
|
297 |
-
$headers = array(
|
298 |
-
'content-type' => 'application/json; charset=UTF-8',
|
299 |
-
'content-length' => $body->getSize(),
|
300 |
-
'x-upload-content-type' => $this->mimeType,
|
301 |
-
'x-upload-content-length' => $this->size,
|
302 |
-
'expect' => '',
|
303 |
-
);
|
304 |
-
foreach ($headers as $key => $value) {
|
305 |
-
$this->request = $this->request->withHeader($key, $value);
|
306 |
-
}
|
307 |
-
}
|
308 |
-
|
309 |
-
$response = $this->client->execute($this->request, false);
|
310 |
-
$location = $response->getHeaderLine('location');
|
311 |
-
$code = $response->getStatusCode();
|
312 |
-
|
313 |
-
if (200 == $code && true == $location) {
|
314 |
-
return $location;
|
315 |
-
}
|
316 |
-
|
317 |
-
$message = $code;
|
318 |
-
$body = json_decode((string) $this->request->getBody(), true);
|
319 |
-
if (isset($body['error']['errors'])) {
|
320 |
-
$message .= ': ';
|
321 |
-
foreach ($body['error']['errors'] as $error) {
|
322 |
-
$message .= "{$error['domain']}, {$error['message']};";
|
323 |
-
}
|
324 |
-
$message = rtrim($message, ';');
|
325 |
-
}
|
326 |
-
|
327 |
-
$error = "Failed to start the resumable upload (HTTP {$message})";
|
328 |
-
$this->client->getLogger()->error($error);
|
329 |
-
|
330 |
-
throw new Google_Exception($error);
|
331 |
-
}
|
332 |
-
|
333 |
-
private function transformToUploadUrl()
|
334 |
-
{
|
335 |
-
$parts = parse_url((string) $this->request->getUri());
|
336 |
-
if (!isset($parts['path'])) {
|
337 |
-
$parts['path'] = '';
|
338 |
-
}
|
339 |
-
$parts['path'] = '/upload' . $parts['path'];
|
340 |
-
$uri = Uri::fromParts($parts);
|
341 |
-
$this->request = $this->request->withUri($uri);
|
342 |
-
}
|
343 |
-
|
344 |
-
public function setChunkSize($chunkSize)
|
345 |
-
{
|
346 |
-
$this->chunkSize = $chunkSize;
|
347 |
-
}
|
348 |
-
|
349 |
-
public function getRequest()
|
350 |
-
{
|
351 |
-
return $this->request;
|
352 |
-
}
|
353 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient/src/Google/Http/REST.php
DELETED
@@ -1,182 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2010 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
use Google\Auth\HttpHandler\HttpHandlerFactory;
|
19 |
-
use GuzzleHttp\ClientInterface;
|
20 |
-
use GuzzleHttp\Exception\RequestException;
|
21 |
-
use GuzzleHttp\Psr7\Response;
|
22 |
-
use Psr\Http\Message\RequestInterface;
|
23 |
-
use Psr\Http\Message\ResponseInterface;
|
24 |
-
|
25 |
-
/**
|
26 |
-
* This class implements the RESTful transport of apiServiceRequest()'s
|
27 |
-
*/
|
28 |
-
class Google_Http_REST
|
29 |
-
{
|
30 |
-
/**
|
31 |
-
* Executes a Psr\Http\Message\RequestInterface and (if applicable) automatically retries
|
32 |
-
* when errors occur.
|
33 |
-
*
|
34 |
-
* @param Google_Client $client
|
35 |
-
* @param Psr\Http\Message\RequestInterface $req
|
36 |
-
* @return array decoded result
|
37 |
-
* @throws Google_Service_Exception on server side error (ie: not authenticated,
|
38 |
-
* invalid or malformed post body, invalid url)
|
39 |
-
*/
|
40 |
-
public static function execute(
|
41 |
-
ClientInterface $client,
|
42 |
-
RequestInterface $request,
|
43 |
-
$expectedClass = null,
|
44 |
-
$config = array(),
|
45 |
-
$retryMap = null
|
46 |
-
) {
|
47 |
-
$runner = new Google_Task_Runner(
|
48 |
-
$config,
|
49 |
-
sprintf('%s %s', $request->getMethod(), (string) $request->getUri()),
|
50 |
-
array(get_class(), 'doExecute'),
|
51 |
-
array($client, $request, $expectedClass)
|
52 |
-
);
|
53 |
-
|
54 |
-
if (null !== $retryMap) {
|
55 |
-
$runner->setRetryMap($retryMap);
|
56 |
-
}
|
57 |
-
|
58 |
-
return $runner->run();
|
59 |
-
}
|
60 |
-
|
61 |
-
/**
|
62 |
-
* Executes a Psr\Http\Message\RequestInterface
|
63 |
-
*
|
64 |
-
* @param Google_Client $client
|
65 |
-
* @param Psr\Http\Message\RequestInterface $request
|
66 |
-
* @return array decoded result
|
67 |
-
* @throws Google_Service_Exception on server side error (ie: not authenticated,
|
68 |
-
* invalid or malformed post body, invalid url)
|
69 |
-
*/
|
70 |
-
public static function doExecute(ClientInterface $client, RequestInterface $request, $expectedClass = null)
|
71 |
-
{
|
72 |
-
try {
|
73 |
-
$httpHandler = HttpHandlerFactory::build($client);
|
74 |
-
$response = $httpHandler($request);
|
75 |
-
} catch (RequestException $e) {
|
76 |
-
// if Guzzle throws an exception, catch it and handle the response
|
77 |
-
if (!$e->hasResponse()) {
|
78 |
-
throw $e;
|
79 |
-
}
|
80 |
-
|
81 |
-
$response = $e->getResponse();
|
82 |
-
// specific checking for Guzzle 5: convert to PSR7 response
|
83 |
-
if ($response instanceof \GuzzleHttp\Message\ResponseInterface) {
|
84 |
-
$response = new Response(
|
85 |
-
$response->getStatusCode(),
|
86 |
-
$response->getHeaders() ?: [],
|
87 |
-
$response->getBody(),
|
88 |
-
$response->getProtocolVersion(),
|
89 |
-
$response->getReasonPhrase()
|
90 |
-
);
|
91 |
-
}
|
92 |
-
}
|
93 |
-
|
94 |
-
return self::decodeHttpResponse($response, $request, $expectedClass);
|
95 |
-
}
|
96 |
-
|
97 |
-
/**
|
98 |
-
* Decode an HTTP Response.
|
99 |
-
* @static
|
100 |
-
* @throws Google_Service_Exception
|
101 |
-
* @param Psr\Http\Message\RequestInterface $response The http response to be decoded.
|
102 |
-
* @param Psr\Http\Message\ResponseInterface $response
|
103 |
-
* @return mixed|null
|
104 |
-
*/
|
105 |
-
public static function decodeHttpResponse(
|
106 |
-
ResponseInterface $response,
|
107 |
-
RequestInterface $request = null,
|
108 |
-
$expectedClass = null
|
109 |
-
) {
|
110 |
-
$code = $response->getStatusCode();
|
111 |
-
|
112 |
-
// retry strategy
|
113 |
-
if (intVal($code) >= 400) {
|
114 |
-
// if we errored out, it should be safe to grab the response body
|
115 |
-
$body = (string) $response->getBody();
|
116 |
-
|
117 |
-
// Check if we received errors, and add those to the Exception for convenience
|
118 |
-
throw new Google_Service_Exception($body, $code, null, self::getResponseErrors($body));
|
119 |
-
}
|
120 |
-
|
121 |
-
// Ensure we only pull the entire body into memory if the request is not
|
122 |
-
// of media type
|
123 |
-
$body = self::decodeBody($response, $request);
|
124 |
-
|
125 |
-
if ($expectedClass = self::determineExpectedClass($expectedClass, $request)) {
|
126 |
-
$json = json_decode($body, true);
|
127 |
-
|
128 |
-
return new $expectedClass($json);
|
129 |
-
}
|
130 |
-
|
131 |
-
return $response;
|
132 |
-
}
|
133 |
-
|
134 |
-
private static function decodeBody(ResponseInterface $response, RequestInterface $request = null)
|
135 |
-
{
|
136 |
-
if (self::isAltMedia($request)) {
|
137 |
-
// don't decode the body, it's probably a really long string
|
138 |
-
return '';
|
139 |
-
}
|
140 |
-
|
141 |
-
return (string) $response->getBody();
|
142 |
-
}
|
143 |
-
|
144 |
-
private static function determineExpectedClass($expectedClass, RequestInterface $request = null)
|
145 |
-
{
|
146 |
-
// "false" is used to explicitly prevent an expected class from being returned
|
147 |
-
if (false === $expectedClass) {
|
148 |
-
return null;
|
149 |
-
}
|
150 |
-
|
151 |
-
// if we don't have a request, we just use what's passed in
|
152 |
-
if (null === $request) {
|
153 |
-
return $expectedClass;
|
154 |
-
}
|
155 |
-
|
156 |
-
// return what we have in the request header if one was not supplied
|
157 |
-
return $expectedClass ?: $request->getHeaderLine('X-Php-Expected-Class');
|
158 |
-
}
|
159 |
-
|
160 |
-
private static function getResponseErrors($body)
|
161 |
-
{
|
162 |
-
$json = json_decode($body, true);
|
163 |
-
|
164 |
-
if (isset($json['error']['errors'])) {
|
165 |
-
return $json['error']['errors'];
|
166 |
-
}
|
167 |
-
|
168 |
-
return null;
|
169 |
-
}
|
170 |
-
|
171 |
-
private static function isAltMedia(RequestInterface $request = null)
|
172 |
-
{
|
173 |
-
if ($request && $qs = $request->getUri()->getQuery()) {
|
174 |
-
parse_str($qs, $query);
|
175 |
-
if (isset($query['alt']) && $query['alt'] == 'media') {
|
176 |
-
return true;
|
177 |
-
}
|
178 |
-
}
|
179 |
-
|
180 |
-
return false;
|
181 |
-
}
|
182 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient/src/Google/Model.php
DELETED
@@ -1,317 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2011 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
/**
|
19 |
-
* This class defines attributes, valid values, and usage which is generated
|
20 |
-
* from a given json schema.
|
21 |
-
* http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5
|
22 |
-
*
|
23 |
-
*/
|
24 |
-
class Google_Model implements ArrayAccess
|
25 |
-
{
|
26 |
-
/**
|
27 |
-
* If you need to specify a NULL JSON value, use Google_Model::NULL_VALUE
|
28 |
-
* instead - it will be replaced when converting to JSON with a real null.
|
29 |
-
*/
|
30 |
-
const NULL_VALUE = "{}gapi-php-null";
|
31 |
-
protected $internal_gapi_mappings = array();
|
32 |
-
protected $modelData = array();
|
33 |
-
protected $processed = array();
|
34 |
-
|
35 |
-
/**
|
36 |
-
* Polymorphic - accepts a variable number of arguments dependent
|
37 |
-
* on the type of the model subclass.
|
38 |
-
*/
|
39 |
-
final public function __construct()
|
40 |
-
{
|
41 |
-
if (func_num_args() == 1 && is_array(func_get_arg(0))) {
|
42 |
-
// Initialize the model with the array's contents.
|
43 |
-
$array = func_get_arg(0);
|
44 |
-
$this->mapTypes($array);
|
45 |
-
}
|
46 |
-
$this->gapiInit();
|
47 |
-
}
|
48 |
-
|
49 |
-
/**
|
50 |
-
* Getter that handles passthrough access to the data array, and lazy object creation.
|
51 |
-
* @param string $key Property name.
|
52 |
-
* @return mixed The value if any, or null.
|
53 |
-
*/
|
54 |
-
public function __get($key)
|
55 |
-
{
|
56 |
-
$keyType = $this->keyType($key);
|
57 |
-
$keyDataType = $this->dataType($key);
|
58 |
-
if ($keyType && !isset($this->processed[$key])) {
|
59 |
-
if (isset($this->modelData[$key])) {
|
60 |
-
$val = $this->modelData[$key];
|
61 |
-
} elseif ($keyDataType == 'array' || $keyDataType == 'map') {
|
62 |
-
$val = array();
|
63 |
-
} else {
|
64 |
-
$val = null;
|
65 |
-
}
|
66 |
-
|
67 |
-
if ($this->isAssociativeArray($val)) {
|
68 |
-
if ($keyDataType && 'map' == $keyDataType) {
|
69 |
-
foreach ($val as $arrayKey => $arrayItem) {
|
70 |
-
$this->modelData[$key][$arrayKey] =
|
71 |
-
new $keyType($arrayItem);
|
72 |
-
}
|
73 |
-
} else {
|
74 |
-
$this->modelData[$key] = new $keyType($val);
|
75 |
-
}
|
76 |
-
} else if (is_array($val)) {
|
77 |
-
$arrayObject = array();
|
78 |
-
foreach ($val as $arrayIndex => $arrayItem) {
|
79 |
-
$arrayObject[$arrayIndex] = new $keyType($arrayItem);
|
80 |
-
}
|
81 |
-
$this->modelData[$key] = $arrayObject;
|
82 |
-
}
|
83 |
-
$this->processed[$key] = true;
|
84 |
-
}
|
85 |
-
|
86 |
-
return isset($this->modelData[$key]) ? $this->modelData[$key] : null;
|
87 |
-
}
|
88 |
-
|
89 |
-
/**
|
90 |
-
* Initialize this object's properties from an array.
|
91 |
-
*
|
92 |
-
* @param array $array Used to seed this object's properties.
|
93 |
-
* @return void
|
94 |
-
*/
|
95 |
-
protected function mapTypes($array)
|
96 |
-
{
|
97 |
-
// Hard initialise simple types, lazy load more complex ones.
|
98 |
-
foreach ($array as $key => $val) {
|
99 |
-
if ($keyType = $this->keyType($key)) {
|
100 |
-
$dataType = $this->dataType($key);
|
101 |
-
if ($dataType == 'array' || $dataType == 'map') {
|
102 |
-
$this->$key = array();
|
103 |
-
foreach ($val as $itemKey => $itemVal) {
|
104 |
-
if ($itemVal instanceof $keyType) {
|
105 |
-
$this->{$key}[$itemKey] = $itemVal;
|
106 |
-
} else {
|
107 |
-
$this->{$key}[$itemKey] = new $keyType($itemVal);
|
108 |
-
}
|
109 |
-
}
|
110 |
-
} elseif ($val instanceof $keyType) {
|
111 |
-
$this->$key = $val;
|
112 |
-
} else {
|
113 |
-
$this->$key = new $keyType($val);
|
114 |
-
}
|
115 |
-
unset($array[$key]);
|
116 |
-
} elseif (property_exists($this, $key)) {
|
117 |
-
$this->$key = $val;
|
118 |
-
unset($array[$key]);
|
119 |
-
} elseif (property_exists($this, $camelKey = $this->camelCase($key))) {
|
120 |
-
// This checks if property exists as camelCase, leaving it in array as snake_case
|
121 |
-
// in case of backwards compatibility issues.
|
122 |
-
$this->$camelKey = $val;
|
123 |
-
}
|
124 |
-
}
|
125 |
-
$this->modelData = $array;
|
126 |
-
}
|
127 |
-
|
128 |
-
/**
|
129 |
-
* Blank initialiser to be used in subclasses to do post-construction initialisation - this
|
130 |
-
* avoids the need for subclasses to have to implement the variadics handling in their
|
131 |
-
* constructors.
|
132 |
-
*/
|
133 |
-
protected function gapiInit()
|
134 |
-
{
|
135 |
-
return;
|
136 |
-
}
|
137 |
-
|
138 |
-
/**
|
139 |
-
* Create a simplified object suitable for straightforward
|
140 |
-
* conversion to JSON. This is relatively expensive
|
141 |
-
* due to the usage of reflection, but shouldn't be called
|
142 |
-
* a whole lot, and is the most straightforward way to filter.
|
143 |
-
*/
|
144 |
-
public function toSimpleObject()
|
145 |
-
{
|
146 |
-
$object = new stdClass();
|
147 |
-
|
148 |
-
// Process all other data.
|
149 |
-
foreach ($this->modelData as $key => $val) {
|
150 |
-
$result = $this->getSimpleValue($val);
|
151 |
-
if ($result !== null) {
|
152 |
-
$object->$key = $this->nullPlaceholderCheck($result);
|
153 |
-
}
|
154 |
-
}
|
155 |
-
|
156 |
-
// Process all public properties.
|
157 |
-
$reflect = new ReflectionObject($this);
|
158 |
-
$props = $reflect->getProperties(ReflectionProperty::IS_PUBLIC);
|
159 |
-
foreach ($props as $member) {
|
160 |
-
$name = $member->getName();
|
161 |
-
$result = $this->getSimpleValue($this->$name);
|
162 |
-
if ($result !== null) {
|
163 |
-
$name = $this->getMappedName($name);
|
164 |
-
$object->$name = $this->nullPlaceholderCheck($result);
|
165 |
-
}
|
166 |
-
}
|
167 |
-
|
168 |
-
return $object;
|
169 |
-
}
|
170 |
-
|
171 |
-
/**
|
172 |
-
* Handle different types of values, primarily
|
173 |
-
* other objects and map and array data types.
|
174 |
-
*/
|
175 |
-
private function getSimpleValue($value)
|
176 |
-
{
|
177 |
-
if ($value instanceof Google_Model) {
|
178 |
-
return $value->toSimpleObject();
|
179 |
-
} else if (is_array($value)) {
|
180 |
-
$return = array();
|
181 |
-
foreach ($value as $key => $a_value) {
|
182 |
-
$a_value = $this->getSimpleValue($a_value);
|
183 |
-
if ($a_value !== null) {
|
184 |
-
$key = $this->getMappedName($key);
|
185 |
-
$return[$key] = $this->nullPlaceholderCheck($a_value);
|
186 |
-
}
|
187 |
-
}
|
188 |
-
return $return;
|
189 |
-
}
|
190 |
-
return $value;
|
191 |
-
}
|
192 |
-
|
193 |
-
/**
|
194 |
-
* Check whether the value is the null placeholder and return true null.
|
195 |
-
*/
|
196 |
-
private function nullPlaceholderCheck($value)
|
197 |
-
{
|
198 |
-
if ($value === self::NULL_VALUE) {
|
199 |
-
return null;
|
200 |
-
}
|
201 |
-
return $value;
|
202 |
-
}
|
203 |
-
|
204 |
-
/**
|
205 |
-
* If there is an internal name mapping, use that.
|
206 |
-
*/
|
207 |
-
private function getMappedName($key)
|
208 |
-
{
|
209 |
-
if (isset($this->internal_gapi_mappings, $this->internal_gapi_mappings[$key])) {
|
210 |
-
$key = $this->internal_gapi_mappings[$key];
|
211 |
-
}
|
212 |
-
return $key;
|
213 |
-
}
|
214 |
-
|
215 |
-
/**
|
216 |
-
* Returns true only if the array is associative.
|
217 |
-
* @param array $array
|
218 |
-
* @return bool True if the array is associative.
|
219 |
-
*/
|
220 |
-
protected function isAssociativeArray($array)
|
221 |
-
{
|
222 |
-
if (!is_array($array)) {
|
223 |
-
return false;
|
224 |
-
}
|
225 |
-
$keys = array_keys($array);
|
226 |
-
foreach ($keys as $key) {
|
227 |
-
if (is_string($key)) {
|
228 |
-
return true;
|
229 |
-
}
|
230 |
-
}
|
231 |
-
return false;
|
232 |
-
}
|
233 |
-
|
234 |
-
/**
|
235 |
-
* Verify if $obj is an array.
|
236 |
-
* @throws Google_Exception Thrown if $obj isn't an array.
|
237 |
-
* @param array $obj Items that should be validated.
|
238 |
-
* @param string $method Method expecting an array as an argument.
|
239 |
-
*/
|
240 |
-
public function assertIsArray($obj, $method)
|
241 |
-
{
|
242 |
-
if ($obj && !is_array($obj)) {
|
243 |
-
throw new Google_Exception(
|
244 |
-
"Incorrect parameter type passed to $method(). Expected an array."
|
245 |
-
);
|
246 |
-
}
|
247 |
-
}
|
248 |
-
|
249 |
-
public function offsetExists($offset)
|
250 |
-
{
|
251 |
-
return isset($this->$offset) || isset($this->modelData[$offset]);
|
252 |
-
}
|
253 |
-
|
254 |
-
public function offsetGet($offset)
|
255 |
-
{
|
256 |
-
return isset($this->$offset) ?
|
257 |
-
$this->$offset :
|
258 |
-
$this->__get($offset);
|
259 |
-
}
|
260 |
-
|
261 |
-
public function offsetSet($offset, $value)
|
262 |
-
{
|
263 |
-
if (property_exists($this, $offset)) {
|
264 |
-
$this->$offset = $value;
|
265 |
-
} else {
|
266 |
-
$this->modelData[$offset] = $value;
|
267 |
-
$this->processed[$offset] = true;
|
268 |
-
}
|
269 |
-
}
|
270 |
-
|
271 |
-
public function offsetUnset($offset)
|
272 |
-
{
|
273 |
-
unset($this->modelData[$offset]);
|
274 |
-
}
|
275 |
-
|
276 |
-
protected function keyType($key)
|
277 |
-
{
|
278 |
-
$keyType = $key . "Type";
|
279 |
-
|
280 |
-
// ensure keyType is a valid class
|
281 |
-
if (property_exists($this, $keyType) && class_exists($this->$keyType)) {
|
282 |
-
return $this->$keyType;
|
283 |
-
}
|
284 |
-
}
|
285 |
-
|
286 |
-
protected function dataType($key)
|
287 |
-
{
|
288 |
-
$dataType = $key . "DataType";
|
289 |
-
|
290 |
-
if (property_exists($this, $dataType)) {
|
291 |
-
return $this->$dataType;
|
292 |
-
}
|
293 |
-
}
|
294 |
-
|
295 |
-
public function __isset($key)
|
296 |
-
{
|
297 |
-
return isset($this->modelData[$key]);
|
298 |
-
}
|
299 |
-
|
300 |
-
public function __unset($key)
|
301 |
-
{
|
302 |
-
unset($this->modelData[$key]);
|
303 |
-
}
|
304 |
-
|
305 |
-
/**
|
306 |
-
* Convert a string to camelCase
|
307 |
-
* @param string $value
|
308 |
-
* @return string
|
309 |
-
*/
|
310 |
-
private function camelCase($value)
|
311 |
-
{
|
312 |
-
$value = ucwords(str_replace(array('-', '_'), ' ', $value));
|
313 |
-
$value = str_replace(' ', '', $value);
|
314 |
-
$value[0] = strtolower($value[0]);
|
315 |
-
return $value;
|
316 |
-
}
|
317 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient/src/Google/Service.php
DELETED
@@ -1,56 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2010 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service
|
19 |
-
{
|
20 |
-
public $batchPath;
|
21 |
-
public $rootUrl;
|
22 |
-
public $version;
|
23 |
-
public $servicePath;
|
24 |
-
public $availableScopes;
|
25 |
-
public $resource;
|
26 |
-
private $client;
|
27 |
-
|
28 |
-
public function __construct(Google_Client $client)
|
29 |
-
{
|
30 |
-
$this->client = $client;
|
31 |
-
}
|
32 |
-
|
33 |
-
/**
|
34 |
-
* Return the associated Google_Client class.
|
35 |
-
* @return Google_Client
|
36 |
-
*/
|
37 |
-
public function getClient()
|
38 |
-
{
|
39 |
-
return $this->client;
|
40 |
-
}
|
41 |
-
|
42 |
-
/**
|
43 |
-
* Create a new HTTP Batch handler for this service
|
44 |
-
*
|
45 |
-
* @return Google_Http_Batch
|
46 |
-
*/
|
47 |
-
public function createBatch()
|
48 |
-
{
|
49 |
-
return new Google_Http_Batch(
|
50 |
-
$this->client,
|
51 |
-
false,
|
52 |
-
$this->rootUrl,
|
53 |
-
$this->batchPath
|
54 |
-
);
|
55 |
-
}
|
56 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient/src/Google/Service/Exception.php
DELETED
@@ -1,68 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_Exception extends Google_Exception
|
19 |
-
{
|
20 |
-
/**
|
21 |
-
* Optional list of errors returned in a JSON body of an HTTP error response.
|
22 |
-
*/
|
23 |
-
protected $errors = array();
|
24 |
-
|
25 |
-
/**
|
26 |
-
* Override default constructor to add the ability to set $errors and a retry
|
27 |
-
* map.
|
28 |
-
*
|
29 |
-
* @param string $message
|
30 |
-
* @param int $code
|
31 |
-
* @param Exception|null $previous
|
32 |
-
* @param [{string, string}] errors List of errors returned in an HTTP
|
33 |
-
* response. Defaults to [].
|
34 |
-
* @param array|null $retryMap Map of errors with retry counts.
|
35 |
-
*/
|
36 |
-
public function __construct(
|
37 |
-
$message,
|
38 |
-
$code = 0,
|
39 |
-
Exception $previous = null,
|
40 |
-
$errors = array()
|
41 |
-
) {
|
42 |
-
if (version_compare(PHP_VERSION, '5.3.0') >= 0) {
|
43 |
-
parent::__construct($message, $code, $previous);
|
44 |
-
} else {
|
45 |
-
parent::__construct($message, $code);
|
46 |
-
}
|
47 |
-
|
48 |
-
$this->errors = $errors;
|
49 |
-
}
|
50 |
-
|
51 |
-
/**
|
52 |
-
* An example of the possible errors returned.
|
53 |
-
*
|
54 |
-
* {
|
55 |
-
* "domain": "global",
|
56 |
-
* "reason": "authError",
|
57 |
-
* "message": "Invalid Credentials",
|
58 |
-
* "locationType": "header",
|
59 |
-
* "location": "Authorization",
|
60 |
-
* }
|
61 |
-
*
|
62 |
-
* @return [{string, string}] List of errors return in an HTTP response or [].
|
63 |
-
*/
|
64 |
-
public function getErrors()
|
65 |
-
{
|
66 |
-
return $this->errors;
|
67 |
-
}
|
68 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient/src/Google/Service/Resource.php
DELETED
@@ -1,302 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Copyright 2010 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
use GuzzleHttp\Psr7\Request;
|
19 |
-
|
20 |
-
/**
|
21 |
-
* Implements the actual methods/resources of the discovered Google API using magic function
|
22 |
-
* calling overloading (__call()), which on call will see if the method name (plus.activities.list)
|
23 |
-
* is available in this service, and if so construct an apiHttpRequest representing it.
|
24 |
-
*
|
25 |
-
*/
|
26 |
-
class Google_Service_Resource
|
27 |
-
{
|
28 |
-
// Valid query parameters that work, but don't appear in discovery.
|
29 |
-
private $stackParameters = array(
|
30 |
-
'alt' => array('type' => 'string', 'location' => 'query'),
|
31 |
-
'fields' => array('type' => 'string', 'location' => 'query'),
|
32 |
-
'trace' => array('type' => 'string', 'location' => 'query'),
|
33 |
-
'userIp' => array('type' => 'string', 'location' => 'query'),
|
34 |
-
'quotaUser' => array('type' => 'string', 'location' => 'query'),
|
35 |
-
'data' => array('type' => 'string', 'location' => 'body'),
|
36 |
-
'mimeType' => array('type' => 'string', 'location' => 'header'),
|
37 |
-
'uploadType' => array('type' => 'string', 'location' => 'query'),
|
38 |
-
'mediaUpload' => array('type' => 'complex', 'location' => 'query'),
|
39 |
-
'prettyPrint' => array('type' => 'string', 'location' => 'query'),
|
40 |
-
);
|
41 |
-
|
42 |
-
/** @var string $rootUrl */
|
43 |
-
private $rootUrl;
|
44 |
-
|
45 |
-
/** @var Google_Client $client */
|
46 |
-
private $client;
|
47 |
-
|
48 |
-
/** @var string $serviceName */
|
49 |
-
private $serviceName;
|
50 |
-
|
51 |
-
/** @var string $servicePath */
|
52 |
-
private $servicePath;
|
53 |
-
|
54 |
-
/** @var string $resourceName */
|
55 |
-
private $resourceName;
|
56 |
-
|
57 |
-
/** @var array $methods */
|
58 |
-
private $methods;
|
59 |
-
|
60 |
-
public function __construct($service, $serviceName, $resourceName, $resource)
|
61 |
-
{
|
62 |
-
$this->rootUrl = $service->rootUrl;
|
63 |
-
$this->client = $service->getClient();
|
64 |
-
$this->servicePath = $service->servicePath;
|
65 |
-
$this->serviceName = $serviceName;
|
66 |
-
$this->resourceName = $resourceName;
|
67 |
-
$this->methods = is_array($resource) && isset($resource['methods']) ?
|
68 |
-
$resource['methods'] :
|
69 |
-
array($resourceName => $resource);
|
70 |
-
}
|
71 |
-
|
72 |
-
/**
|
73 |
-
* TODO: This function needs simplifying.
|
74 |
-
* @param $name
|
75 |
-
* @param $arguments
|
76 |
-
* @param $expectedClass - optional, the expected class name
|
77 |
-
* @return Google_Http_Request|expectedClass
|
78 |
-
* @throws Google_Exception
|
79 |
-
*/
|
80 |
-
public function call($name, $arguments, $expectedClass = null)
|
81 |
-
{
|
82 |
-
if (! isset($this->methods[$name])) {
|
83 |
-
$this->client->getLogger()->error(
|
84 |
-
'Service method unknown',
|
85 |
-
array(
|
86 |
-
'service' => $this->serviceName,
|
87 |
-
'resource' => $this->resourceName,
|
88 |
-
'method' => $name
|
89 |
-
)
|
90 |
-
);
|
91 |
-
|
92 |
-
throw new Google_Exception(
|
93 |
-
"Unknown function: " .
|
94 |
-
"{$this->serviceName}->{$this->resourceName}->{$name}()"
|
95 |
-
);
|
96 |
-
}
|
97 |
-
$method = $this->methods[$name];
|
98 |
-
$parameters = $arguments[0];
|
99 |
-
|
100 |
-
// postBody is a special case since it's not defined in the discovery
|
101 |
-
// document as parameter, but we abuse the param entry for storing it.
|
102 |
-
$postBody = null;
|
103 |
-
if (isset($parameters['postBody'])) {
|
104 |
-
if ($parameters['postBody'] instanceof Google_Model) {
|
105 |
-
// In the cases the post body is an existing object, we want
|
106 |
-
// to use the smart method to create a simple object for
|
107 |
-
// for JSONification.
|
108 |
-
$parameters['postBody'] = $parameters['postBody']->toSimpleObject();
|
109 |
-
} else if (is_object($parameters['postBody'])) {
|
110 |
-
// If the post body is another kind of object, we will try and
|
111 |
-
// wrangle it into a sensible format.
|
112 |
-
$parameters['postBody'] =
|
113 |
-
$this->convertToArrayAndStripNulls($parameters['postBody']);
|
114 |
-
}
|
115 |
-
$postBody = (array) $parameters['postBody'];
|
116 |
-
unset($parameters['postBody']);
|
117 |
-
}
|
118 |
-
|
119 |
-
// TODO: optParams here probably should have been
|
120 |
-
// handled already - this may well be redundant code.
|
121 |
-
if (isset($parameters['optParams'])) {
|
122 |
-
$optParams = $parameters['optParams'];
|
123 |
-
unset($parameters['optParams']);
|
124 |
-
$parameters = array_merge($parameters, $optParams);
|
125 |
-
}
|
126 |
-
|
127 |
-
if (!isset($method['parameters'])) {
|
128 |
-
$method['parameters'] = array();
|
129 |
-
}
|
130 |
-
|
131 |
-
$method['parameters'] = array_merge(
|
132 |
-
$this->stackParameters,
|
133 |
-
$method['parameters']
|
134 |
-
);
|
135 |
-
|
136 |
-
foreach ($parameters as $key => $val) {
|
137 |
-
if ($key != 'postBody' && ! isset($method['parameters'][$key])) {
|
138 |
-
$this->client->getLogger()->error(
|
139 |
-
'Service parameter unknown',
|
140 |
-
array(
|
141 |
-
'service' => $this->serviceName,
|
142 |
-
'resource' => $this->resourceName,
|
143 |
-
'method' => $name,
|
144 |
-
'parameter' => $key
|
145 |
-
)
|
146 |
-
);
|
147 |
-
throw new Google_Exception("($name) unknown parameter: '$key'");
|
148 |
-
}
|
149 |
-
}
|
150 |
-
|
151 |
-
foreach ($method['parameters'] as $paramName => $paramSpec) {
|
152 |
-
if (isset($paramSpec['required']) &&
|
153 |
-
$paramSpec['required'] &&
|
154 |
-
! isset($parameters[$paramName])
|
155 |
-
) {
|
156 |
-
$this->client->getLogger()->error(
|
157 |
-
'Service parameter missing',
|
158 |
-
array(
|
159 |
-
'service' => $this->serviceName,
|
160 |
-
'resource' => $this->resourceName,
|
161 |
-
'method' => $name,
|
162 |
-
'parameter' => $paramName
|
163 |
-
)
|
164 |
-
);
|
165 |
-
throw new Google_Exception("($name) missing required param: '$paramName'");
|
166 |
-
}
|
167 |
-
if (isset($parameters[$paramName])) {
|
168 |
-
$value = $parameters[$paramName];
|
169 |
-
$parameters[$paramName] = $paramSpec;
|
170 |
-
$parameters[$paramName]['value'] = $value;
|
171 |
-
unset($parameters[$paramName]['required']);
|
172 |
-
} else {
|
173 |
-
// Ensure we don't pass nulls.
|
174 |
-
unset($parameters[$paramName]);
|
175 |
-
}
|
176 |
-
}
|
177 |
-
|
178 |
-
$this->client->getLogger()->info(
|
179 |
-
'Service Call',
|
180 |
-
array(
|
181 |
-
'service' => $this->serviceName,
|
182 |
-
'resource' => $this->resourceName,
|
183 |
-
'method' => $name,
|
184 |
-
'arguments' => $parameters,
|
185 |
-
)
|
186 |
-
);
|
187 |
-
|
188 |
-
// build the service uri
|
189 |
-
$url = $this->createRequestUri(
|
190 |
-
$method['path'],
|
191 |
-
$parameters
|
192 |
-
);
|
193 |
-
|
194 |
-
// NOTE: because we're creating the request by hand,
|
195 |
-
// and because the service has a rootUrl property
|
196 |
-
// the "base_uri" of the Http Client is not accounted for
|
197 |
-
$request = new Request(
|
198 |
-
$method['httpMethod'],
|
199 |
-
$url,
|
200 |
-
['content-type' => 'application/json'],
|
201 |
-
$postBody ? json_encode($postBody) : ''
|
202 |
-
);
|
203 |
-
|
204 |
-
// support uploads
|
205 |
-
if (isset($parameters['data'])) {
|
206 |
-
$mimeType = isset($parameters['mimeType'])
|
207 |
-
? $parameters['mimeType']['value']
|
208 |
-
: 'application/octet-stream';
|
209 |
-
$data = $parameters['data']['value'];
|
210 |
-
$upload = new Google_Http_MediaFileUpload($this->client, $request, $mimeType, $data);
|
211 |
-
|
212 |
-
// pull down the modified request
|
213 |
-
$request = $upload->getRequest();
|
214 |
-
}
|
215 |
-
|
216 |
-
// if this is a media type, we will return the raw response
|
217 |
-
// rather than using an expected class
|
218 |
-
if (isset($parameters['alt']) && $parameters['alt']['value'] == 'media') {
|
219 |
-
$expectedClass = null;
|
220 |
-
}
|
221 |
-
|
222 |
-
// if the client is marked for deferring, rather than
|
223 |
-
// execute the request, return the response
|
224 |
-
if ($this->client->shouldDefer()) {
|
225 |
-
// @TODO find a better way to do this
|
226 |
-
$request = $request
|
227 |
-
->withHeader('X-Php-Expected-Class', $expectedClass);
|
228 |
-
|
229 |
-
return $request;
|
230 |
-
}
|
231 |
-
|
232 |
-
return $this->client->execute($request, $expectedClass);
|
233 |
-
}
|
234 |
-
|
235 |
-
protected function convertToArrayAndStripNulls($o)
|
236 |
-
{
|
237 |
-
$o = (array) $o;
|
238 |
-
foreach ($o as $k => $v) {
|
239 |
-
if ($v === null) {
|
240 |
-
unset($o[$k]);
|
241 |
-
} elseif (is_object($v) || is_array($v)) {
|
242 |
-
$o[$k] = $this->convertToArrayAndStripNulls($o[$k]);
|
243 |
-
}
|
244 |
-
}
|
245 |
-
return $o;
|
246 |
-
}
|
247 |
-
|
248 |
-
/**
|
249 |
-
* Parse/expand request parameters and create a fully qualified
|
250 |
-
* request uri.
|
251 |
-
* @static
|
252 |
-
* @param string $restPath
|
253 |
-
* @param array $params
|
254 |
-
* @return string $requestUrl
|
255 |
-
*/
|
256 |
-
public function createRequestUri($restPath, $params)
|
257 |
-
{
|
258 |
-
// Override the default servicePath address if the $restPath use a /
|
259 |
-
if ('/' == substr($restPath, 0, 1)) {
|
260 |
-
$requestUrl = substr($restPath, 1);
|
261 |
-
} else {
|
262 |
-
$requestUrl = $this->servicePath . $restPath;
|
263 |
-
}
|
264 |
-
|
265 |
-
// code for leading slash
|
266 |
-
if ($this->rootUrl) {
|
267 |
-
if ('/' !== substr($this->rootUrl, -1) && '/' !== substr($requestUrl, 0, 1)) {
|
268 |
-
$requestUrl = '/' . $requestUrl;
|
269 |
-
}
|
270 |
-
$requestUrl = $this->rootUrl . $requestUrl;
|
271 |
-
}
|
272 |
-
$uriTemplateVars = array();
|
273 |
-
$queryVars = array();
|
274 |
-
foreach ($params as $paramName => $paramSpec) {
|
275 |
-
if ($paramSpec['type'] == 'boolean') {
|
276 |
-
$paramSpec['value'] = $paramSpec['value'] ? 'true' : 'false';
|
277 |
-
}
|
278 |
-
if ($paramSpec['location'] == 'path') {
|
279 |
-
$uriTemplateVars[$paramName] = $paramSpec['value'];
|
280 |
-
} else if ($paramSpec['location'] == 'query') {
|
281 |
-
if (is_array($paramSpec['value'])) {
|
282 |
-
foreach ($paramSpec['value'] as $value) {
|
283 |
-
$queryVars[] = $paramName . '=' . rawurlencode(rawurldecode($value));
|
284 |
-
}
|
285 |
-
} else {
|
286 |
-
$queryVars[] = $paramName . '=' . rawurlencode(rawurldecode($paramSpec['value']));
|
287 |
-
}
|
288 |
-
}
|
289 |
-
}
|
290 |
-
|
291 |
-
if (count($uriTemplateVars)) {
|
292 |
-
$uriTemplateParser = new Google_Utils_UriTemplate();
|
293 |
-
$requestUrl = $uriTemplateParser->parse($requestUrl, $uriTemplateVars);
|
294 |
-
}
|
295 |
-
|
296 |
-
if (count($queryVars)) {
|
297 |
-
$requestUrl .= '?' . implode('&', $queryVars);
|
298 |
-
}
|
299 |
-
|
300 |
-
return $requestUrl;
|
301 |
-
}
|
302 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient/src/Google/Task/Exception.php
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Task_Exception extends Google_Exception
|
19 |
-
{
|
20 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient/src/Google/Task/Retryable.php
DELETED
@@ -1,24 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
/**
|
19 |
-
* Interface for checking how many times a given task can be retried following
|
20 |
-
* a failure.
|
21 |
-
*/
|
22 |
-
interface Google_Task_Retryable
|
23 |
-
{
|
24 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient/src/Google/Task/Runner.php
DELETED
@@ -1,281 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
/**
|
19 |
-
* A task runner with exponential backoff support.
|
20 |
-
*
|
21 |
-
* @see https://developers.google.com/drive/web/handle-errors#implementing_exponential_backoff
|
22 |
-
*/
|
23 |
-
class Google_Task_Runner
|
24 |
-
{
|
25 |
-
const TASK_RETRY_NEVER = 0;
|
26 |
-
const TASK_RETRY_ONCE = 1;
|
27 |
-
const TASK_RETRY_ALWAYS = -1;
|
28 |
-
|
29 |
-
/**
|
30 |
-
* @var integer $maxDelay The max time (in seconds) to wait before a retry.
|
31 |
-
*/
|
32 |
-
private $maxDelay = 60;
|
33 |
-
/**
|
34 |
-
* @var integer $delay The previous delay from which the next is calculated.
|
35 |
-
*/
|
36 |
-
private $delay = 1;
|
37 |
-
|
38 |
-
/**
|
39 |
-
* @var integer $factor The base number for the exponential back off.
|
40 |
-
*/
|
41 |
-
private $factor = 2;
|
42 |
-
/**
|
43 |
-
* @var float $jitter A random number between -$jitter and $jitter will be
|
44 |
-
* added to $factor on each iteration to allow for a better distribution of
|
45 |
-
* retries.
|
46 |
-
*/
|
47 |
-
private $jitter = 0.5;
|
48 |
-
|
49 |
-
/**
|
50 |
-
* @var integer $attempts The number of attempts that have been tried so far.
|
51 |
-
*/
|
52 |
-
private $attempts = 0;
|
53 |
-
/**
|
54 |
-
* @var integer $maxAttempts The max number of attempts allowed.
|
55 |
-
*/
|
56 |
-
private $maxAttempts = 1;
|
57 |
-
|
58 |
-
/**
|
59 |
-
* @var callable $action The task to run and possibly retry.
|
60 |
-
*/
|
61 |
-
private $action;
|
62 |
-
/**
|
63 |
-
* @var array $arguments The task arguments.
|
64 |
-
*/
|
65 |
-
private $arguments;
|
66 |
-
|
67 |
-
/**
|
68 |
-
* @var array $retryMap Map of errors with retry counts.
|
69 |
-
*/
|
70 |
-
protected $retryMap = [
|
71 |
-
'500' => self::TASK_RETRY_ALWAYS,
|
72 |
-
'503' => self::TASK_RETRY_ALWAYS,
|
73 |
-
'rateLimitExceeded' => self::TASK_RETRY_ALWAYS,
|
74 |
-
'userRateLimitExceeded' => self::TASK_RETRY_ALWAYS,
|
75 |
-
6 => self::TASK_RETRY_ALWAYS, // CURLE_COULDNT_RESOLVE_HOST
|
76 |
-
7 => self::TASK_RETRY_ALWAYS, // CURLE_COULDNT_CONNECT
|
77 |
-
28 => self::TASK_RETRY_ALWAYS, // CURLE_OPERATION_TIMEOUTED
|
78 |
-
35 => self::TASK_RETRY_ALWAYS, // CURLE_SSL_CONNECT_ERROR
|
79 |
-
52 => self::TASK_RETRY_ALWAYS // CURLE_GOT_NOTHING
|
80 |
-
];
|
81 |
-
|
82 |
-
/**
|
83 |
-
* Creates a new task runner with exponential backoff support.
|
84 |
-
*
|
85 |
-
* @param array $config The task runner config
|
86 |
-
* @param string $name The name of the current task (used for logging)
|
87 |
-
* @param callable $action The task to run and possibly retry
|
88 |
-
* @param array $arguments The task arguments
|
89 |
-
* @throws Google_Task_Exception when misconfigured
|
90 |
-
*/
|
91 |
-
public function __construct(
|
92 |
-
$config,
|
93 |
-
$name,
|
94 |
-
$action,
|
95 |
-
array $arguments = array()
|
96 |
-
) {
|
97 |
-
if (isset($config['initial_delay'])) {
|
98 |
-
if ($config['initial_delay'] < 0) {
|
99 |
-
throw new Google_Task_Exception(
|
100 |
-
'Task configuration `initial_delay` must not be negative.'
|
101 |
-
);
|
102 |
-
}
|
103 |
-
|
104 |
-
$this->delay = $config['initial_delay'];
|
105 |
-
}
|
106 |
-
|
107 |
-
if (isset($config['max_delay'])) {
|
108 |
-
if ($config['max_delay'] <= 0) {
|
109 |
-
throw new Google_Task_Exception(
|
110 |
-
'Task configuration `max_delay` must be greater than 0.'
|
111 |
-
);
|
112 |
-
}
|
113 |
-
|
114 |
-
$this->maxDelay = $config['max_delay'];
|
115 |
-
}
|
116 |
-
|
117 |
-
if (isset($config['factor'])) {
|
118 |
-
if ($config['factor'] <= 0) {
|
119 |
-
throw new Google_Task_Exception(
|
120 |
-
'Task configuration `factor` must be greater than 0.'
|
121 |
-
);
|
122 |
-
}
|
123 |
-
|
124 |
-
$this->factor = $config['factor'];
|
125 |
-
}
|
126 |
-
|
127 |
-
if (isset($config['jitter'])) {
|
128 |
-
if ($config['jitter'] <= 0) {
|
129 |
-
throw new Google_Task_Exception(
|
130 |
-
'Task configuration `jitter` must be greater than 0.'
|
131 |
-
);
|
132 |
-
}
|
133 |
-
|
134 |
-
$this->jitter = $config['jitter'];
|
135 |
-
}
|
136 |
-
|
137 |
-
if (isset($config['retries'])) {
|
138 |
-
if ($config['retries'] < 0) {
|
139 |
-
throw new Google_Task_Exception(
|
140 |
-
'Task configuration `retries` must not be negative.'
|
141 |
-
);
|
142 |
-
}
|
143 |
-
$this->maxAttempts += $config['retries'];
|
144 |
-
}
|
145 |
-
|
146 |
-
if (!is_callable($action)) {
|
147 |
-
throw new Google_Task_Exception(
|
148 |
-
'Task argument `$action` must be a valid callable.'
|
149 |
-
);
|
150 |
-
}
|
151 |
-
|
152 |
-
$this->action = $action;
|
153 |
-
$this->arguments = $arguments;
|
154 |
-
}
|
155 |
-
|
156 |
-
/**
|
157 |
-
* Checks if a retry can be attempted.
|
158 |
-
*
|
159 |
-
* @return boolean
|
160 |
-
*/
|
161 |
-
public function canAttempt()
|
162 |
-
{
|
163 |
-
return $this->attempts < $this->maxAttempts;
|
164 |
-
}
|
165 |
-
|
166 |
-
/**
|
167 |
-
* Runs the task and (if applicable) automatically retries when errors occur.
|
168 |
-
*
|
169 |
-
* @return mixed
|
170 |
-
* @throws Google_Task_Retryable on failure when no retries are available.
|
171 |
-
*/
|
172 |
-
public function run()
|
173 |
-
{
|
174 |
-
while ($this->attempt()) {
|
175 |
-
try {
|
176 |
-
return call_user_func_array($this->action, $this->arguments);
|
177 |
-
} catch (Google_Service_Exception $exception) {
|
178 |
-
$allowedRetries = $this->allowedRetries(
|
179 |
-
$exception->getCode(),
|
180 |
-
$exception->getErrors()
|
181 |
-
);
|
182 |
-
|
183 |
-
if (!$this->canAttempt() || !$allowedRetries) {
|
184 |
-
throw $exception;
|
185 |
-
}
|
186 |
-
|
187 |
-
if ($allowedRetries > 0) {
|
188 |
-
$this->maxAttempts = min(
|
189 |
-
$this->maxAttempts,
|
190 |
-
$this->attempts + $allowedRetries
|
191 |
-
);
|
192 |
-
}
|
193 |
-
}
|
194 |
-
}
|
195 |
-
}
|
196 |
-
|
197 |
-
/**
|
198 |
-
* Runs a task once, if possible. This is useful for bypassing the `run()`
|
199 |
-
* loop.
|
200 |
-
*
|
201 |
-
* NOTE: If this is not the first attempt, this function will sleep in
|
202 |
-
* accordance to the backoff configurations before running the task.
|
203 |
-
*
|
204 |
-
* @return boolean
|
205 |
-
*/
|
206 |
-
public function attempt()
|
207 |
-
{
|
208 |
-
if (!$this->canAttempt()) {
|
209 |
-
return false;
|
210 |
-
}
|
211 |
-
|
212 |
-
if ($this->attempts > 0) {
|
213 |
-
$this->backOff();
|
214 |
-
}
|
215 |
-
|
216 |
-
$this->attempts++;
|
217 |
-
return true;
|
218 |
-
}
|
219 |
-
|
220 |
-
/**
|
221 |
-
* Sleeps in accordance to the backoff configurations.
|
222 |
-
*/
|
223 |
-
private function backOff()
|
224 |
-
{
|
225 |
-
$delay = $this->getDelay();
|
226 |
-
|
227 |
-
usleep($delay * 1000000);
|
228 |
-
}
|
229 |
-
|
230 |
-
/**
|
231 |
-
* Gets the delay (in seconds) for the current backoff period.
|
232 |
-
*
|
233 |
-
* @return float
|
234 |
-
*/
|
235 |
-
private function getDelay()
|
236 |
-
{
|
237 |
-
$jitter = $this->getJitter();
|
238 |
-
$factor = $this->attempts > 1 ? $this->factor + $jitter : 1 + abs($jitter);
|
239 |
-
|
240 |
-
return $this->delay = min($this->maxDelay, $this->delay * $factor);
|
241 |
-
}
|
242 |
-
|
243 |
-
/**
|
244 |
-
* Gets the current jitter (random number between -$this->jitter and
|
245 |
-
* $this->jitter).
|
246 |
-
*
|
247 |
-
* @return float
|
248 |
-
*/
|
249 |
-
private function getJitter()
|
250 |
-
{
|
251 |
-
return $this->jitter * 2 * mt_rand() / mt_getrandmax() - $this->jitter;
|
252 |
-
}
|
253 |
-
|
254 |
-
/**
|
255 |
-
* Gets the number of times the associated task can be retried.
|
256 |
-
*
|
257 |
-
* NOTE: -1 is returned if the task can be retried indefinitely
|
258 |
-
*
|
259 |
-
* @return integer
|
260 |
-
*/
|
261 |
-
public function allowedRetries($code, $errors = array())
|
262 |
-
{
|
263 |
-
if (isset($this->retryMap[$code])) {
|
264 |
-
return $this->retryMap[$code];
|
265 |
-
}
|
266 |
-
|
267 |
-
if (
|
268 |
-
!empty($errors) &&
|
269 |
-
isset($errors[0]['reason'], $this->retryMap[$errors[0]['reason']])
|
270 |
-
) {
|
271 |
-
return $this->retryMap[$errors[0]['reason']];
|
272 |
-
}
|
273 |
-
|
274 |
-
return 0;
|
275 |
-
}
|
276 |
-
|
277 |
-
public function setRetryMap($retryMap)
|
278 |
-
{
|
279 |
-
$this->retryMap = $retryMap;
|
280 |
-
}
|
281 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient/src/Google/Utils/UriTemplate.php
DELETED
@@ -1,333 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2013 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
/**
|
19 |
-
* Implementation of levels 1-3 of the URI Template spec.
|
20 |
-
* @see http://tools.ietf.org/html/rfc6570
|
21 |
-
*/
|
22 |
-
class Google_Utils_UriTemplate
|
23 |
-
{
|
24 |
-
const TYPE_MAP = "1";
|
25 |
-
const TYPE_LIST = "2";
|
26 |
-
const TYPE_SCALAR = "4";
|
27 |
-
|
28 |
-
/**
|
29 |
-
* @var $operators array
|
30 |
-
* These are valid at the start of a template block to
|
31 |
-
* modify the way in which the variables inside are
|
32 |
-
* processed.
|
33 |
-
*/
|
34 |
-
private $operators = array(
|
35 |
-
"+" => "reserved",
|
36 |
-
"/" => "segments",
|
37 |
-
"." => "dotprefix",
|
38 |
-
"#" => "fragment",
|
39 |
-
";" => "semicolon",
|
40 |
-
"?" => "form",
|
41 |
-
"&" => "continuation"
|
42 |
-
);
|
43 |
-
|
44 |
-
/**
|
45 |
-
* @var reserved array
|
46 |
-
* These are the characters which should not be URL encoded in reserved
|
47 |
-
* strings.
|
48 |
-
*/
|
49 |
-
private $reserved = array(
|
50 |
-
"=", ",", "!", "@", "|", ":", "/", "?", "#",
|
51 |
-
"[", "]",'$', "&", "'", "(", ")", "*", "+", ";"
|
52 |
-
);
|
53 |
-
private $reservedEncoded = array(
|
54 |
-
"%3D", "%2C", "%21", "%40", "%7C", "%3A", "%2F", "%3F",
|
55 |
-
"%23", "%5B", "%5D", "%24", "%26", "%27", "%28", "%29",
|
56 |
-
"%2A", "%2B", "%3B"
|
57 |
-
);
|
58 |
-
|
59 |
-
public function parse($string, array $parameters)
|
60 |
-
{
|
61 |
-
return $this->resolveNextSection($string, $parameters);
|
62 |
-
}
|
63 |
-
|
64 |
-
/**
|
65 |
-
* This function finds the first matching {...} block and
|
66 |
-
* executes the replacement. It then calls itself to find
|
67 |
-
* subsequent blocks, if any.
|
68 |
-
*/
|
69 |
-
private function resolveNextSection($string, $parameters)
|
70 |
-
{
|
71 |
-
$start = strpos($string, "{");
|
72 |
-
if ($start === false) {
|
73 |
-
return $string;
|
74 |
-
}
|
75 |
-
$end = strpos($string, "}");
|
76 |
-
if ($end === false) {
|
77 |
-
return $string;
|
78 |
-
}
|
79 |
-
$string = $this->replace($string, $start, $end, $parameters);
|
80 |
-
return $this->resolveNextSection($string, $parameters);
|
81 |
-
}
|
82 |
-
|
83 |
-
private function replace($string, $start, $end, $parameters)
|
84 |
-
{
|
85 |
-
// We know a data block will have {} round it, so we can strip that.
|
86 |
-
$data = substr($string, $start + 1, $end - $start - 1);
|
87 |
-
|
88 |
-
// If the first character is one of the reserved operators, it effects
|
89 |
-
// the processing of the stream.
|
90 |
-
if (isset($this->operators[$data[0]])) {
|
91 |
-
$op = $this->operators[$data[0]];
|
92 |
-
$data = substr($data, 1);
|
93 |
-
$prefix = "";
|
94 |
-
$prefix_on_missing = false;
|
95 |
-
|
96 |
-
switch ($op) {
|
97 |
-
case "reserved":
|
98 |
-
// Reserved means certain characters should not be URL encoded
|
99 |
-
$data = $this->replaceVars($data, $parameters, ",", null, true);
|
100 |
-
break;
|
101 |
-
case "fragment":
|
102 |
-
// Comma separated with fragment prefix. Bare values only.
|
103 |
-
$prefix = "#";
|
104 |
-
$prefix_on_missing = true;
|
105 |
-
$data = $this->replaceVars($data, $parameters, ",", null, true);
|
106 |
-
break;
|
107 |
-
case "segments":
|
108 |
-
// Slash separated data. Bare values only.
|
109 |
-
$prefix = "/";
|
110 |
-
$data =$this->replaceVars($data, $parameters, "/");
|
111 |
-
break;
|
112 |
-
case "dotprefix":
|
113 |
-
// Dot separated data. Bare values only.
|
114 |
-
$prefix = ".";
|
115 |
-
$prefix_on_missing = true;
|
116 |
-
$data = $this->replaceVars($data, $parameters, ".");
|
117 |
-
break;
|
118 |
-
case "semicolon":
|
119 |
-
// Semicolon prefixed and separated. Uses the key name
|
120 |
-
$prefix = ";";
|
121 |
-
$data = $this->replaceVars($data, $parameters, ";", "=", false, true, false);
|
122 |
-
break;
|
123 |
-
case "form":
|
124 |
-
// Standard URL format. Uses the key name
|
125 |
-
$prefix = "?";
|
126 |
-
$data = $this->replaceVars($data, $parameters, "&", "=");
|
127 |
-
break;
|
128 |
-
case "continuation":
|
129 |
-
// Standard URL, but with leading ampersand. Uses key name.
|
130 |
-
$prefix = "&";
|
131 |
-
$data = $this->replaceVars($data, $parameters, "&", "=");
|
132 |
-
break;
|
133 |
-
}
|
134 |
-
|
135 |
-
// Add the initial prefix character if data is valid.
|
136 |
-
if ($data || ($data !== false && $prefix_on_missing)) {
|
137 |
-
$data = $prefix . $data;
|
138 |
-
}
|
139 |
-
|
140 |
-
} else {
|
141 |
-
// If no operator we replace with the defaults.
|
142 |
-
$data = $this->replaceVars($data, $parameters);
|
143 |
-
}
|
144 |
-
// This is chops out the {...} and replaces with the new section.
|
145 |
-
return substr($string, 0, $start) . $data . substr($string, $end + 1);
|
146 |
-
}
|
147 |
-
|
148 |
-
private function replaceVars(
|
149 |
-
$section,
|
150 |
-
$parameters,
|
151 |
-
$sep = ",",
|
152 |
-
$combine = null,
|
153 |
-
$reserved = false,
|
154 |
-
$tag_empty = false,
|
155 |
-
$combine_on_empty = true
|
156 |
-
) {
|
157 |
-
if (strpos($section, ",") === false) {
|
158 |
-
// If we only have a single value, we can immediately process.
|
159 |
-
return $this->combine(
|
160 |
-
$section,
|
161 |
-
$parameters,
|
162 |
-
$sep,
|
163 |
-
$combine,
|
164 |
-
$reserved,
|
165 |
-
$tag_empty,
|
166 |
-
$combine_on_empty
|
167 |
-
);
|
168 |
-
} else {
|
169 |
-
// If we have multiple values, we need to split and loop over them.
|
170 |
-
// Each is treated individually, then glued together with the
|
171 |
-
// separator character.
|
172 |
-
$vars = explode(",", $section);
|
173 |
-
return $this->combineList(
|
174 |
-
$vars,
|
175 |
-
$sep,
|
176 |
-
$parameters,
|
177 |
-
$combine,
|
178 |
-
$reserved,
|
179 |
-
false, // Never emit empty strings in multi-param replacements
|
180 |
-
$combine_on_empty
|
181 |
-
);
|
182 |
-
}
|
183 |
-
}
|
184 |
-
|
185 |
-
public function combine(
|
186 |
-
$key,
|
187 |
-
$parameters,
|
188 |
-
$sep,
|
189 |
-
$combine,
|
190 |
-
$reserved,
|
191 |
-
$tag_empty,
|
192 |
-
$combine_on_empty
|
193 |
-
) {
|
194 |
-
$length = false;
|
195 |
-
$explode = false;
|
196 |
-
$skip_final_combine = false;
|
197 |
-
$value = false;
|
198 |
-
|
199 |
-
// Check for length restriction.
|
200 |
-
if (strpos($key, ":") !== false) {
|
201 |
-
list($key, $length) = explode(":", $key);
|
202 |
-
}
|
203 |
-
|
204 |
-
// Check for explode parameter.
|
205 |
-
if ($key[strlen($key) - 1] == "*") {
|
206 |
-
$explode = true;
|
207 |
-
$key = substr($key, 0, -1);
|
208 |
-
$skip_final_combine = true;
|
209 |
-
}
|
210 |
-
|
211 |
-
// Define the list separator.
|
212 |
-
$list_sep = $explode ? $sep : ",";
|
213 |
-
|
214 |
-
if (isset($parameters[$key])) {
|
215 |
-
$data_type = $this->getDataType($parameters[$key]);
|
216 |
-
switch ($data_type) {
|
217 |
-
case self::TYPE_SCALAR:
|
218 |
-
$value = $this->getValue($parameters[$key], $length);
|
219 |
-
break;
|
220 |
-
case self::TYPE_LIST:
|
221 |
-
$values = array();
|
222 |
-
foreach ($parameters[$key] as $pkey => $pvalue) {
|
223 |
-
$pvalue = $this->getValue($pvalue, $length);
|
224 |
-
if ($combine && $explode) {
|
225 |
-
$values[$pkey] = $key . $combine . $pvalue;
|
226 |
-
} else {
|
227 |
-
$values[$pkey] = $pvalue;
|
228 |
-
}
|
229 |
-
}
|
230 |
-
$value = implode($list_sep, $values);
|
231 |
-
if ($value == '') {
|
232 |
-
return '';
|
233 |
-
}
|
234 |
-
break;
|
235 |
-
case self::TYPE_MAP:
|
236 |
-
$values = array();
|
237 |
-
foreach ($parameters[$key] as $pkey => $pvalue) {
|
238 |
-
$pvalue = $this->getValue($pvalue, $length);
|
239 |
-
if ($explode) {
|
240 |
-
$pkey = $this->getValue($pkey, $length);
|
241 |
-
$values[] = $pkey . "=" . $pvalue; // Explode triggers = combine.
|
242 |
-
} else {
|
243 |
-
$values[] = $pkey;
|
244 |
-
$values[] = $pvalue;
|
245 |
-
}
|
246 |
-
}
|
247 |
-
$value = implode($list_sep, $values);
|
248 |
-
if ($value == '') {
|
249 |
-
return false;
|
250 |
-
}
|
251 |
-
break;
|
252 |
-
}
|
253 |
-
} else if ($tag_empty) {
|
254 |
-
// If we are just indicating empty values with their key name, return that.
|
255 |
-
return $key;
|
256 |
-
} else {
|
257 |
-
// Otherwise we can skip this variable due to not being defined.
|
258 |
-
return false;
|
259 |
-
}
|
260 |
-
|
261 |
-
if ($reserved) {
|
262 |
-
$value = str_replace($this->reservedEncoded, $this->reserved, $value);
|
263 |
-
}
|
264 |
-
|
265 |
-
// If we do not need to include the key name, we just return the raw
|
266 |
-
// value.
|
267 |
-
if (!$combine || $skip_final_combine) {
|
268 |
-
return $value;
|
269 |
-
}
|
270 |
-
|
271 |
-
// Else we combine the key name: foo=bar, if value is not the empty string.
|
272 |
-
return $key . ($value != '' || $combine_on_empty ? $combine . $value : '');
|
273 |
-
}
|
274 |
-
|
275 |
-
/**
|
276 |
-
* Return the type of a passed in value
|
277 |
-
*/
|
278 |
-
private function getDataType($data)
|
279 |
-
{
|
280 |
-
if (is_array($data)) {
|
281 |
-
reset($data);
|
282 |
-
if (key($data) !== 0) {
|
283 |
-
return self::TYPE_MAP;
|
284 |
-
}
|
285 |
-
return self::TYPE_LIST;
|
286 |
-
}
|
287 |
-
return self::TYPE_SCALAR;
|
288 |
-
}
|
289 |
-
|
290 |
-
/**
|
291 |
-
* Utility function that merges multiple combine calls
|
292 |
-
* for multi-key templates.
|
293 |
-
*/
|
294 |
-
private function combineList(
|
295 |
-
$vars,
|
296 |
-
$sep,
|
297 |
-
$parameters,
|
298 |
-
$combine,
|
299 |
-
$reserved,
|
300 |
-
$tag_empty,
|
301 |
-
$combine_on_empty
|
302 |
-
) {
|
303 |
-
$ret = array();
|
304 |
-
foreach ($vars as $var) {
|
305 |
-
$response = $this->combine(
|
306 |
-
$var,
|
307 |
-
$parameters,
|
308 |
-
$sep,
|
309 |
-
$combine,
|
310 |
-
$reserved,
|
311 |
-
$tag_empty,
|
312 |
-
$combine_on_empty
|
313 |
-
);
|
314 |
-
if ($response === false) {
|
315 |
-
continue;
|
316 |
-
}
|
317 |
-
$ret[] = $response;
|
318 |
-
}
|
319 |
-
return implode($sep, $ret);
|
320 |
-
}
|
321 |
-
|
322 |
-
/**
|
323 |
-
* Utility function to encode and trim values
|
324 |
-
*/
|
325 |
-
private function getValue($value, $length)
|
326 |
-
{
|
327 |
-
if ($length) {
|
328 |
-
$value = substr($value, 0, $length);
|
329 |
-
}
|
330 |
-
$value = rawurlencode($value);
|
331 |
-
return $value;
|
332 |
-
}
|
333 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/apiclient/src/Google/autoload.php
DELETED
@@ -1,21 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* THIS FILE IS FOR BACKWARDS COMPATIBLITY ONLY
|
5 |
-
*
|
6 |
-
* If you were not already including this file in your project, please ignore it
|
7 |
-
*/
|
8 |
-
|
9 |
-
$file = __DIR__ . '/../../vendor/autoload.php';
|
10 |
-
|
11 |
-
if (!file_exists($file)) {
|
12 |
-
$exception = 'This library must be installed via composer or by downloading the full package.';
|
13 |
-
$exception .= ' See the instructions at https://github.com/google/google-api-php-client#installation.';
|
14 |
-
throw new Exception($exception);
|
15 |
-
}
|
16 |
-
|
17 |
-
$error = 'google-api-php-client\'s autoloader was moved to vendor/autoload.php in 2.0.0. This ';
|
18 |
-
$error .= 'redirect will be removed in 2.1. Please adjust your code to use the new location.';
|
19 |
-
trigger_error($error, E_USER_DEPRECATED);
|
20 |
-
|
21 |
-
require_once $file;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/COPYING
DELETED
@@ -1,202 +0,0 @@
|
|
1 |
-
|
2 |
-
Apache License
|
3 |
-
Version 2.0, January 2004
|
4 |
-
http://www.apache.org/licenses/
|
5 |
-
|
6 |
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7 |
-
|
8 |
-
1. Definitions.
|
9 |
-
|
10 |
-
"License" shall mean the terms and conditions for use, reproduction,
|
11 |
-
and distribution as defined by Sections 1 through 9 of this document.
|
12 |
-
|
13 |
-
"Licensor" shall mean the copyright owner or entity authorized by
|
14 |
-
the copyright owner that is granting the License.
|
15 |
-
|
16 |
-
"Legal Entity" shall mean the union of the acting entity and all
|
17 |
-
other entities that control, are controlled by, or are under common
|
18 |
-
control with that entity. For the purposes of this definition,
|
19 |
-
"control" means (i) the power, direct or indirect, to cause the
|
20 |
-
direction or management of such entity, whether by contract or
|
21 |
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22 |
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
23 |
-
|
24 |
-
"You" (or "Your") shall mean an individual or Legal Entity
|
25 |
-
exercising permissions granted by this License.
|
26 |
-
|
27 |
-
"Source" form shall mean the preferred form for making modifications,
|
28 |
-
including but not limited to software source code, documentation
|
29 |
-
source, and configuration files.
|
30 |
-
|
31 |
-
"Object" form shall mean any form resulting from mechanical
|
32 |
-
transformation or translation of a Source form, including but
|
33 |
-
not limited to compiled object code, generated documentation,
|
34 |
-
and conversions to other media types.
|
35 |
-
|
36 |
-
"Work" shall mean the work of authorship, whether in Source or
|
37 |
-
Object form, made available under the License, as indicated by a
|
38 |
-
copyright notice that is included in or attached to the work
|
39 |
-
(an example is provided in the Appendix below).
|
40 |
-
|
41 |
-
"Derivative Works" shall mean any work, whether in Source or Object
|
42 |
-
form, that is based on (or derived from) the Work and for which the
|
43 |
-
editorial revisions, annotations, elaborations, or other modifications
|
44 |
-
represent, as a whole, an original work of authorship. For the purposes
|
45 |
-
of this License, Derivative Works shall not include works that remain
|
46 |
-
separable from, or merely link (or bind by name) to the interfaces of,
|
47 |
-
the Work and Derivative Works thereof.
|
48 |
-
|
49 |
-
"Contribution" shall mean any work of authorship, including
|
50 |
-
the original version of the Work and any modifications or additions
|
51 |
-
to that Work or Derivative Works thereof, that is intentionally
|
52 |
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
53 |
-
or by an individual or Legal Entity authorized to submit on behalf of
|
54 |
-
the copyright owner. For the purposes of this definition, "submitted"
|
55 |
-
means any form of electronic, verbal, or written communication sent
|
56 |
-
to the Licensor or its representatives, including but not limited to
|
57 |
-
communication on electronic mailing lists, source code control systems,
|
58 |
-
and issue tracking systems that are managed by, or on behalf of, the
|
59 |
-
Licensor for the purpose of discussing and improving the Work, but
|
60 |
-
excluding communication that is conspicuously marked or otherwise
|
61 |
-
designated in writing by the copyright owner as "Not a Contribution."
|
62 |
-
|
63 |
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64 |
-
on behalf of whom a Contribution has been received by Licensor and
|
65 |
-
subsequently incorporated within the Work.
|
66 |
-
|
67 |
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
68 |
-
this License, each Contributor hereby grants to You a perpetual,
|
69 |
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70 |
-
copyright license to reproduce, prepare Derivative Works of,
|
71 |
-
publicly display, publicly perform, sublicense, and distribute the
|
72 |
-
Work and such Derivative Works in Source or Object form.
|
73 |
-
|
74 |
-
3. Grant of Patent License. Subject to the terms and conditions of
|
75 |
-
this License, each Contributor hereby grants to You a perpetual,
|
76 |
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77 |
-
(except as stated in this section) patent license to make, have made,
|
78 |
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79 |
-
where such license applies only to those patent claims licensable
|
80 |
-
by such Contributor that are necessarily infringed by their
|
81 |
-
Contribution(s) alone or by combination of their Contribution(s)
|
82 |
-
with the Work to which such Contribution(s) was submitted. If You
|
83 |
-
institute patent litigation against any entity (including a
|
84 |
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85 |
-
or a Contribution incorporated within the Work constitutes direct
|
86 |
-
or contributory patent infringement, then any patent licenses
|
87 |
-
granted to You under this License for that Work shall terminate
|
88 |
-
as of the date such litigation is filed.
|
89 |
-
|
90 |
-
4. Redistribution. You may reproduce and distribute copies of the
|
91 |
-
Work or Derivative Works thereof in any medium, with or without
|
92 |
-
modifications, and in Source or Object form, provided that You
|
93 |
-
meet the following conditions:
|
94 |
-
|
95 |
-
(a) You must give any other recipients of the Work or
|
96 |
-
Derivative Works a copy of this License; and
|
97 |
-
|
98 |
-
(b) You must cause any modified files to carry prominent notices
|
99 |
-
stating that You changed the files; and
|
100 |
-
|
101 |
-
(c) You must retain, in the Source form of any Derivative Works
|
102 |
-
that You distribute, all copyright, patent, trademark, and
|
103 |
-
attribution notices from the Source form of the Work,
|
104 |
-
excluding those notices that do not pertain to any part of
|
105 |
-
the Derivative Works; and
|
106 |
-
|
107 |
-
(d) If the Work includes a "NOTICE" text file as part of its
|
108 |
-
distribution, then any Derivative Works that You distribute must
|
109 |
-
include a readable copy of the attribution notices contained
|
110 |
-
within such NOTICE file, excluding those notices that do not
|
111 |
-
pertain to any part of the Derivative Works, in at least one
|
112 |
-
of the following places: within a NOTICE text file distributed
|
113 |
-
as part of the Derivative Works; within the Source form or
|
114 |
-
documentation, if provided along with the Derivative Works; or,
|
115 |
-
within a display generated by the Derivative Works, if and
|
116 |
-
wherever such third-party notices normally appear. The contents
|
117 |
-
of the NOTICE file are for informational purposes only and
|
118 |
-
do not modify the License. You may add Your own attribution
|
119 |
-
notices within Derivative Works that You distribute, alongside
|
120 |
-
or as an addendum to the NOTICE text from the Work, provided
|
121 |
-
that such additional attribution notices cannot be construed
|
122 |
-
as modifying the License.
|
123 |
-
|
124 |
-
You may add Your own copyright statement to Your modifications and
|
125 |
-
may provide additional or different license terms and conditions
|
126 |
-
for use, reproduction, or distribution of Your modifications, or
|
127 |
-
for any such Derivative Works as a whole, provided Your use,
|
128 |
-
reproduction, and distribution of the Work otherwise complies with
|
129 |
-
the conditions stated in this License.
|
130 |
-
|
131 |
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132 |
-
any Contribution intentionally submitted for inclusion in the Work
|
133 |
-
by You to the Licensor shall be under the terms and conditions of
|
134 |
-
this License, without any additional terms or conditions.
|
135 |
-
Notwithstanding the above, nothing herein shall supersede or modify
|
136 |
-
the terms of any separate license agreement you may have executed
|
137 |
-
with Licensor regarding such Contributions.
|
138 |
-
|
139 |
-
6. Trademarks. This License does not grant permission to use the trade
|
140 |
-
names, trademarks, service marks, or product names of the Licensor,
|
141 |
-
except as required for reasonable and customary use in describing the
|
142 |
-
origin of the Work and reproducing the content of the NOTICE file.
|
143 |
-
|
144 |
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
145 |
-
agreed to in writing, Licensor provides the Work (and each
|
146 |
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147 |
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148 |
-
implied, including, without limitation, any warranties or conditions
|
149 |
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150 |
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151 |
-
appropriateness of using or redistributing the Work and assume any
|
152 |
-
risks associated with Your exercise of permissions under this License.
|
153 |
-
|
154 |
-
8. Limitation of Liability. In no event and under no legal theory,
|
155 |
-
whether in tort (including negligence), contract, or otherwise,
|
156 |
-
unless required by applicable law (such as deliberate and grossly
|
157 |
-
negligent acts) or agreed to in writing, shall any Contributor be
|
158 |
-
liable to You for damages, including any direct, indirect, special,
|
159 |
-
incidental, or consequential damages of any character arising as a
|
160 |
-
result of this License or out of the use or inability to use the
|
161 |
-
Work (including but not limited to damages for loss of goodwill,
|
162 |
-
work stoppage, computer failure or malfunction, or any and all
|
163 |
-
other commercial damages or losses), even if such Contributor
|
164 |
-
has been advised of the possibility of such damages.
|
165 |
-
|
166 |
-
9. Accepting Warranty or Additional Liability. While redistributing
|
167 |
-
the Work or Derivative Works thereof, You may choose to offer,
|
168 |
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
169 |
-
or other liability obligations and/or rights consistent with this
|
170 |
-
License. However, in accepting such obligations, You may act only
|
171 |
-
on Your own behalf and on Your sole responsibility, not on behalf
|
172 |
-
of any other Contributor, and only if You agree to indemnify,
|
173 |
-
defend, and hold each Contributor harmless for any liability
|
174 |
-
incurred by, or claims asserted against, such Contributor by reason
|
175 |
-
of your accepting any such warranty or additional liability.
|
176 |
-
|
177 |
-
END OF TERMS AND CONDITIONS
|
178 |
-
|
179 |
-
APPENDIX: How to apply the Apache License to your work.
|
180 |
-
|
181 |
-
To apply the Apache License to your work, attach the following
|
182 |
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
183 |
-
replaced with your own identifying information. (Don't include
|
184 |
-
the brackets!) The text should be enclosed in the appropriate
|
185 |
-
comment syntax for the file format. We also recommend that a
|
186 |
-
file or class name and description of purpose be included on the
|
187 |
-
same "printed page" as the copyright notice for easier
|
188 |
-
identification within third-party archives.
|
189 |
-
|
190 |
-
Copyright 2015 Google Inc.
|
191 |
-
|
192 |
-
Licensed under the Apache License, Version 2.0 (the "License");
|
193 |
-
you may not use this file except in compliance with the License.
|
194 |
-
You may obtain a copy of the License at
|
195 |
-
|
196 |
-
http://www.apache.org/licenses/LICENSE-2.0
|
197 |
-
|
198 |
-
Unless required by applicable law or agreed to in writing, software
|
199 |
-
distributed under the License is distributed on an "AS IS" BASIS,
|
200 |
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201 |
-
See the License for the specific language governing permissions and
|
202 |
-
limitations under the License.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/LICENSE
DELETED
@@ -1,203 +0,0 @@
|
|
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/auth/autoload.php
DELETED
@@ -1,34 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
function oauth2client_php_autoload($className)
|
19 |
-
{
|
20 |
-
$classPath = explode('_', $className);
|
21 |
-
if ($classPath[0] != 'Google') {
|
22 |
-
return;
|
23 |
-
}
|
24 |
-
if (count($classPath) > 3) {
|
25 |
-
// Maximum class file path depth in this project is 3.
|
26 |
-
$classPath = array_slice($classPath, 0, 3);
|
27 |
-
}
|
28 |
-
$filePath = dirname(__FILE__) . '/src/' . implode('/', $classPath) . '.php';
|
29 |
-
if (file_exists($filePath)) {
|
30 |
-
require_once $filePath;
|
31 |
-
}
|
32 |
-
}
|
33 |
-
|
34 |
-
spl_autoload_register('oauth2client_php_autoload');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/AccessToken.php
DELETED
@@ -1,479 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2019 Google LLC
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace Google\Auth;
|
19 |
-
|
20 |
-
use DateTime;
|
21 |
-
use Exception;
|
22 |
-
use Firebase\JWT\ExpiredException;
|
23 |
-
use Firebase\JWT\JWT;
|
24 |
-
use Firebase\JWT\SignatureInvalidException;
|
25 |
-
use Google\Auth\Cache\MemoryCacheItemPool;
|
26 |
-
use Google\Auth\HttpHandler\HttpClientCache;
|
27 |
-
use Google\Auth\HttpHandler\HttpHandlerFactory;
|
28 |
-
use GuzzleHttp\Psr7;
|
29 |
-
use GuzzleHttp\Psr7\Request;
|
30 |
-
use InvalidArgumentException;
|
31 |
-
use phpseclib\Crypt\RSA;
|
32 |
-
use phpseclib\Math\BigInteger;
|
33 |
-
use Psr\Cache\CacheItemPoolInterface;
|
34 |
-
use RuntimeException;
|
35 |
-
use SimpleJWT\InvalidTokenException;
|
36 |
-
use SimpleJWT\JWT as SimpleJWT;
|
37 |
-
use SimpleJWT\Keys\KeyFactory;
|
38 |
-
use SimpleJWT\Keys\KeySet;
|
39 |
-
use UnexpectedValueException;
|
40 |
-
|
41 |
-
/**
|
42 |
-
* Wrapper around Google Access Tokens which provides convenience functions.
|
43 |
-
*
|
44 |
-
* @experimental
|
45 |
-
*/
|
46 |
-
class AccessToken
|
47 |
-
{
|
48 |
-
const FEDERATED_SIGNON_CERT_URL = 'https://www.googleapis.com/oauth2/v3/certs';
|
49 |
-
const IAP_CERT_URL = 'https://www.gstatic.com/iap/verify/public_key-jwk';
|
50 |
-
const IAP_ISSUER = 'https://cloud.google.com/iap';
|
51 |
-
const OAUTH2_ISSUER = 'accounts.google.com';
|
52 |
-
const OAUTH2_ISSUER_HTTPS = 'https://accounts.google.com';
|
53 |
-
const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke';
|
54 |
-
|
55 |
-
/**
|
56 |
-
* @var callable
|
57 |
-
*/
|
58 |
-
private $httpHandler;
|
59 |
-
|
60 |
-
/**
|
61 |
-
* @var CacheItemPoolInterface
|
62 |
-
*/
|
63 |
-
private $cache;
|
64 |
-
|
65 |
-
/**
|
66 |
-
* @param callable $httpHandler [optional] An HTTP Handler to deliver PSR-7 requests.
|
67 |
-
* @param CacheItemPoolInterface $cache [optional] A PSR-6 compatible cache implementation.
|
68 |
-
*/
|
69 |
-
public function __construct(
|
70 |
-
callable $httpHandler = null,
|
71 |
-
CacheItemPoolInterface $cache = null
|
72 |
-
) {
|
73 |
-
$this->httpHandler = $httpHandler
|
74 |
-
?: HttpHandlerFactory::build(HttpClientCache::getHttpClient());
|
75 |
-
$this->cache = $cache ?: new MemoryCacheItemPool();
|
76 |
-
}
|
77 |
-
|
78 |
-
/**
|
79 |
-
* Verifies an id token and returns the authenticated apiLoginTicket.
|
80 |
-
* Throws an exception if the id token is not valid.
|
81 |
-
* The audience parameter can be used to control which id tokens are
|
82 |
-
* accepted. By default, the id token must have been issued to this OAuth2 client.
|
83 |
-
*
|
84 |
-
* @param string $token The JSON Web Token to be verified.
|
85 |
-
* @param array $options [optional] Configuration options.
|
86 |
-
* @param string $options.audience The indended recipient of the token.
|
87 |
-
* @param string $options.issuer The intended issuer of the token.
|
88 |
-
* @param string $options.cacheKey The cache key of the cached certs. Defaults to
|
89 |
-
* the sha1 of $certsLocation if provided, otherwise is set to
|
90 |
-
* "federated_signon_certs_v3".
|
91 |
-
* @param string $options.certsLocation The location (remote or local) from which
|
92 |
-
* to retrieve certificates, if not cached. This value should only be
|
93 |
-
* provided in limited circumstances in which you are sure of the
|
94 |
-
* behavior.
|
95 |
-
* @param bool $options.throwException Whether the function should throw an
|
96 |
-
* exception if the verification fails. This is useful for
|
97 |
-
* determining the reason verification failed.
|
98 |
-
* @return array|bool the token payload, if successful, or false if not.
|
99 |
-
* @throws InvalidArgumentException If certs could not be retrieved from a local file.
|
100 |
-
* @throws InvalidArgumentException If received certs are in an invalid format.
|
101 |
-
* @throws InvalidArgumentException If the cert alg is not supported.
|
102 |
-
* @throws RuntimeException If certs could not be retrieved from a remote location.
|
103 |
-
* @throws UnexpectedValueException If the token issuer does not match.
|
104 |
-
* @throws UnexpectedValueException If the token audience does not match.
|
105 |
-
*/
|
106 |
-
public function verify($token, array $options = [])
|
107 |
-
{
|
108 |
-
$audience = isset($options['audience'])
|
109 |
-
? $options['audience']
|
110 |
-
: null;
|
111 |
-
$issuer = isset($options['issuer'])
|
112 |
-
? $options['issuer']
|
113 |
-
: null;
|
114 |
-
$certsLocation = isset($options['certsLocation'])
|
115 |
-
? $options['certsLocation']
|
116 |
-
: self::FEDERATED_SIGNON_CERT_URL;
|
117 |
-
$cacheKey = isset($options['cacheKey'])
|
118 |
-
? $options['cacheKey']
|
119 |
-
: $this->getCacheKeyFromCertLocation($certsLocation);
|
120 |
-
$throwException = isset($options['throwException'])
|
121 |
-
? $options['throwException']
|
122 |
-
: false; // for backwards compatibility
|
123 |
-
|
124 |
-
// Check signature against each available cert.
|
125 |
-
$certs = $this->getCerts($certsLocation, $cacheKey, $options);
|
126 |
-
$alg = $this->determineAlg($certs);
|
127 |
-
if (!in_array($alg, ['RS256', 'ES256'])) {
|
128 |
-
throw new InvalidArgumentException(
|
129 |
-
'unrecognized "alg" in certs, expected ES256 or RS256'
|
130 |
-
);
|
131 |
-
}
|
132 |
-
try {
|
133 |
-
if ($alg == 'RS256') {
|
134 |
-
return $this->verifyRs256($token, $certs, $audience, $issuer);
|
135 |
-
}
|
136 |
-
return $this->verifyEs256($token, $certs, $audience, $issuer);
|
137 |
-
} catch (ExpiredException $e) { // firebase/php-jwt 3+
|
138 |
-
} catch (\ExpiredException $e) { // firebase/php-jwt 2
|
139 |
-
} catch (SignatureInvalidException $e) { // firebase/php-jwt 3+
|
140 |
-
} catch (\SignatureInvalidException $e) { // firebase/php-jwt 2
|
141 |
-
} catch (InvalidTokenException $e) { // simplejwt
|
142 |
-
} catch (DomainException $e) {
|
143 |
-
} catch (InvalidArgumentException $e) {
|
144 |
-
} catch (UnexpectedValueException $e) {
|
145 |
-
}
|
146 |
-
|
147 |
-
if ($throwException) {
|
148 |
-
throw $e;
|
149 |
-
}
|
150 |
-
|
151 |
-
return false;
|
152 |
-
}
|
153 |
-
|
154 |
-
/**
|
155 |
-
* Identifies the expected algorithm to verify by looking at the "alg" key
|
156 |
-
* of the provided certs.
|
157 |
-
*
|
158 |
-
* @param array $certs Certificate array according to the JWK spec (see
|
159 |
-
* https://tools.ietf.org/html/rfc7517).
|
160 |
-
* @return string The expected algorithm, such as "ES256" or "RS256".
|
161 |
-
*/
|
162 |
-
private function determineAlg(array $certs)
|
163 |
-
{
|
164 |
-
$alg = null;
|
165 |
-
foreach ($certs as $cert) {
|
166 |
-
if (empty($cert['alg'])) {
|
167 |
-
throw new InvalidArgumentException(
|
168 |
-
'certs expects "alg" to be set'
|
169 |
-
);
|
170 |
-
}
|
171 |
-
$alg = $alg ?: $cert['alg'];
|
172 |
-
|
173 |
-
if ($alg != $cert['alg']) {
|
174 |
-
throw new InvalidArgumentException(
|
175 |
-
'More than one alg detected in certs'
|
176 |
-
);
|
177 |
-
}
|
178 |
-
}
|
179 |
-
return $alg;
|
180 |
-
}
|
181 |
-
|
182 |
-
/**
|
183 |
-
* Verifies an ES256-signed JWT.
|
184 |
-
*
|
185 |
-
* @param string $token The JSON Web Token to be verified.
|
186 |
-
* @param array $certs Certificate array according to the JWK spec (see
|
187 |
-
* https://tools.ietf.org/html/rfc7517).
|
188 |
-
* @param string|null $audience If set, returns false if the provided
|
189 |
-
* audience does not match the "aud" claim on the JWT.
|
190 |
-
* @param string|null $issuer If set, returns false if the provided
|
191 |
-
* issuer does not match the "iss" claim on the JWT.
|
192 |
-
* @return array|bool the token payload, if successful, or false if not.
|
193 |
-
*/
|
194 |
-
private function verifyEs256($token, array $certs, $audience = null, $issuer = null)
|
195 |
-
{
|
196 |
-
$this->checkSimpleJwt();
|
197 |
-
|
198 |
-
$jwkset = new KeySet();
|
199 |
-
foreach ($certs as $cert) {
|
200 |
-
$jwkset->add(KeyFactory::create($cert, 'php'));
|
201 |
-
}
|
202 |
-
|
203 |
-
// Validate the signature using the key set and ES256 algorithm.
|
204 |
-
$jwt = $this->callSimpleJwtDecode([$token, $jwkset, 'ES256']);
|
205 |
-
$payload = $jwt->getClaims();
|
206 |
-
|
207 |
-
if (isset($payload['aud'])) {
|
208 |
-
if ($audience && $payload['aud'] != $audience) {
|
209 |
-
throw new UnexpectedValueException('Audience does not match');
|
210 |
-
}
|
211 |
-
}
|
212 |
-
|
213 |
-
// @see https://cloud.google.com/iap/docs/signed-headers-howto#verifying_the_jwt_payload
|
214 |
-
$issuer = $issuer ?: self::IAP_ISSUER;
|
215 |
-
if (!isset($payload['iss']) || $payload['iss'] !== $issuer) {
|
216 |
-
throw new UnexpectedValueException('Issuer does not match');
|
217 |
-
}
|
218 |
-
|
219 |
-
return $payload;
|
220 |
-
}
|
221 |
-
|
222 |
-
/**
|
223 |
-
* Verifies an RS256-signed JWT.
|
224 |
-
*
|
225 |
-
* @param string $token The JSON Web Token to be verified.
|
226 |
-
* @param array $certs Certificate array according to the JWK spec (see
|
227 |
-
* https://tools.ietf.org/html/rfc7517).
|
228 |
-
* @param string|null $audience If set, returns false if the provided
|
229 |
-
* audience does not match the "aud" claim on the JWT.
|
230 |
-
* @param string|null $issuer If set, returns false if the provided
|
231 |
-
* issuer does not match the "iss" claim on the JWT.
|
232 |
-
* @return array|bool the token payload, if successful, or false if not.
|
233 |
-
*/
|
234 |
-
private function verifyRs256($token, array $certs, $audience = null, $issuer = null)
|
235 |
-
{
|
236 |
-
$this->checkAndInitializePhpsec();
|
237 |
-
$keys = [];
|
238 |
-
foreach ($certs as $cert) {
|
239 |
-
if (empty($cert['kid'])) {
|
240 |
-
throw new InvalidArgumentException(
|
241 |
-
'certs expects "kid" to be set'
|
242 |
-
);
|
243 |
-
}
|
244 |
-
if (empty($cert['n']) || empty($cert['e'])) {
|
245 |
-
throw new InvalidArgumentException(
|
246 |
-
'RSA certs expects "n" and "e" to be set'
|
247 |
-
);
|
248 |
-
}
|
249 |
-
$rsa = new RSA();
|
250 |
-
$rsa->loadKey([
|
251 |
-
'n' => new BigInteger($this->callJwtStatic('urlsafeB64Decode', [
|
252 |
-
$cert['n'],
|
253 |
-
]), 256),
|
254 |
-
'e' => new BigInteger($this->callJwtStatic('urlsafeB64Decode', [
|
255 |
-
$cert['e']
|
256 |
-
]), 256),
|
257 |
-
]);
|
258 |
-
|
259 |
-
// create an array of key IDs to certs for the JWT library
|
260 |
-
$keys[$cert['kid']] = $rsa->getPublicKey();
|
261 |
-
}
|
262 |
-
|
263 |
-
$payload = $this->callJwtStatic('decode', [
|
264 |
-
$token,
|
265 |
-
$keys,
|
266 |
-
['RS256']
|
267 |
-
]);
|
268 |
-
|
269 |
-
if (property_exists($payload, 'aud')) {
|
270 |
-
if ($audience && $payload->aud != $audience) {
|
271 |
-
throw new UnexpectedValueException('Audience does not match');
|
272 |
-
}
|
273 |
-
}
|
274 |
-
|
275 |
-
// support HTTP and HTTPS issuers
|
276 |
-
// @see https://developers.google.com/identity/sign-in/web/backend-auth
|
277 |
-
$issuers = $issuer ? [$issuer] : [self::OAUTH2_ISSUER, self::OAUTH2_ISSUER_HTTPS];
|
278 |
-
if (!isset($payload->iss) || !in_array($payload->iss, $issuers)) {
|
279 |
-
throw new UnexpectedValueException('Issuer does not match');
|
280 |
-
}
|
281 |
-
|
282 |
-
return (array) $payload;
|
283 |
-
}
|
284 |
-
|
285 |
-
/**
|
286 |
-
* Revoke an OAuth2 access token or refresh token. This method will revoke the current access
|
287 |
-
* token, if a token isn't provided.
|
288 |
-
*
|
289 |
-
* @param string|array $token The token (access token or a refresh token) that should be revoked.
|
290 |
-
* @param array $options [optional] Configuration options.
|
291 |
-
* @return bool Returns True if the revocation was successful, otherwise False.
|
292 |
-
*/
|
293 |
-
public function revoke($token, array $options = [])
|
294 |
-
{
|
295 |
-
if (is_array($token)) {
|
296 |
-
if (isset($token['refresh_token'])) {
|
297 |
-
$token = $token['refresh_token'];
|
298 |
-
} else {
|
299 |
-
$token = $token['access_token'];
|
300 |
-
}
|
301 |
-
}
|
302 |
-
|
303 |
-
$body = Psr7\stream_for(http_build_query(['token' => $token]));
|
304 |
-
$request = new Request('POST', self::OAUTH2_REVOKE_URI, [
|
305 |
-
'Cache-Control' => 'no-store',
|
306 |
-
'Content-Type' => 'application/x-www-form-urlencoded',
|
307 |
-
], $body);
|
308 |
-
|
309 |
-
$httpHandler = $this->httpHandler;
|
310 |
-
|
311 |
-
$response = $httpHandler($request, $options);
|
312 |
-
|
313 |
-
return $response->getStatusCode() == 200;
|
314 |
-
}
|
315 |
-
|
316 |
-
/**
|
317 |
-
* Gets federated sign-on certificates to use for verifying identity tokens.
|
318 |
-
* Returns certs as array structure, where keys are key ids, and values
|
319 |
-
* are PEM encoded certificates.
|
320 |
-
*
|
321 |
-
* @param string $location The location from which to retrieve certs.
|
322 |
-
* @param string $cacheKey The key under which to cache the retrieved certs.
|
323 |
-
* @param array $options [optional] Configuration options.
|
324 |
-
* @return array
|
325 |
-
* @throws InvalidArgumentException If received certs are in an invalid format.
|
326 |
-
*/
|
327 |
-
private function getCerts($location, $cacheKey, array $options = [])
|
328 |
-
{
|
329 |
-
$cacheItem = $this->cache->getItem($cacheKey);
|
330 |
-
$certs = $cacheItem ? $cacheItem->get() : null;
|
331 |
-
|
332 |
-
$gotNewCerts = false;
|
333 |
-
if (!$certs) {
|
334 |
-
$certs = $this->retrieveCertsFromLocation($location, $options);
|
335 |
-
|
336 |
-
$gotNewCerts = true;
|
337 |
-
}
|
338 |
-
|
339 |
-
if (!isset($certs['keys'])) {
|
340 |
-
if ($location !== self::IAP_CERT_URL) {
|
341 |
-
throw new InvalidArgumentException(
|
342 |
-
'federated sign-on certs expects "keys" to be set'
|
343 |
-
);
|
344 |
-
}
|
345 |
-
throw new InvalidArgumentException(
|
346 |
-
'certs expects "keys" to be set'
|
347 |
-
);
|
348 |
-
}
|
349 |
-
|
350 |
-
// Push caching off until after verifying certs are in a valid format.
|
351 |
-
// Don't want to cache bad data.
|
352 |
-
if ($gotNewCerts) {
|
353 |
-
$cacheItem->expiresAt(new DateTime('+1 hour'));
|
354 |
-
$cacheItem->set($certs);
|
355 |
-
$this->cache->save($cacheItem);
|
356 |
-
}
|
357 |
-
|
358 |
-
return $certs['keys'];
|
359 |
-
}
|
360 |
-
|
361 |
-
/**
|
362 |
-
* Retrieve and cache a certificates file.
|
363 |
-
*
|
364 |
-
* @param $url string location
|
365 |
-
* @param array $options [optional] Configuration options.
|
366 |
-
* @return array certificates
|
367 |
-
* @throws InvalidArgumentException If certs could not be retrieved from a local file.
|
368 |
-
* @throws RuntimeException If certs could not be retrieved from a remote location.
|
369 |
-
*/
|
370 |
-
private function retrieveCertsFromLocation($url, array $options = [])
|
371 |
-
{
|
372 |
-
// If we're retrieving a local file, just grab it.
|
373 |
-
if (strpos($url, 'http') !== 0) {
|
374 |
-
if (!file_exists($url)) {
|
375 |
-
throw new InvalidArgumentException(sprintf(
|
376 |
-
'Failed to retrieve verification certificates from path: %s.',
|
377 |
-
$url
|
378 |
-
));
|
379 |
-
}
|
380 |
-
|
381 |
-
return json_decode(file_get_contents($url), true);
|
382 |
-
}
|
383 |
-
|
384 |
-
$httpHandler = $this->httpHandler;
|
385 |
-
$response = $httpHandler(new Request('GET', $url), $options);
|
386 |
-
|
387 |
-
if ($response->getStatusCode() == 200) {
|
388 |
-
return json_decode((string) $response->getBody(), true);
|
389 |
-
}
|
390 |
-
|
391 |
-
throw new RuntimeException(sprintf(
|
392 |
-
'Failed to retrieve verification certificates: "%s".',
|
393 |
-
$response->getBody()->getContents()
|
394 |
-
), $response->getStatusCode());
|
395 |
-
}
|
396 |
-
|
397 |
-
private function checkAndInitializePhpsec()
|
398 |
-
{
|
399 |
-
// @codeCoverageIgnoreStart
|
400 |
-
if (!class_exists('phpseclib\Crypt\RSA')) {
|
401 |
-
throw new RuntimeException('Please require phpseclib/phpseclib v2 to use this utility.');
|
402 |
-
}
|
403 |
-
// @codeCoverageIgnoreEnd
|
404 |
-
|
405 |
-
$this->setPhpsecConstants();
|
406 |
-
}
|
407 |
-
|
408 |
-
private function checkSimpleJwt()
|
409 |
-
{
|
410 |
-
// @codeCoverageIgnoreStart
|
411 |
-
if (!class_exists('SimpleJWT\JWT')) {
|
412 |
-
throw new RuntimeException('Please require kelvinmo/simplejwt ^0.2 to use this utility.');
|
413 |
-
}
|
414 |
-
// @codeCoverageIgnoreEnd
|
415 |
-
}
|
416 |
-
|
417 |
-
/**
|
418 |
-
* phpseclib calls "phpinfo" by default, which requires special
|
419 |
-
* whitelisting in the AppEngine VM environment. This function
|
420 |
-
* sets constants to bypass the need for phpseclib to check phpinfo
|
421 |
-
*
|
422 |
-
* @see phpseclib/Math/BigInteger
|
423 |
-
* @see https://github.com/GoogleCloudPlatform/getting-started-php/issues/85
|
424 |
-
* @codeCoverageIgnore
|
425 |
-
*/
|
426 |
-
private function setPhpsecConstants()
|
427 |
-
{
|
428 |
-
if (filter_var(getenv('GAE_VM'), FILTER_VALIDATE_BOOLEAN)) {
|
429 |
-
if (!defined('MATH_BIGINTEGER_OPENSSL_ENABLED')) {
|
430 |
-
define('MATH_BIGINTEGER_OPENSSL_ENABLED', true);
|
431 |
-
}
|
432 |
-
if (!defined('CRYPT_RSA_MODE')) {
|
433 |
-
define('CRYPT_RSA_MODE', RSA::MODE_OPENSSL);
|
434 |
-
}
|
435 |
-
}
|
436 |
-
}
|
437 |
-
|
438 |
-
/**
|
439 |
-
* Provide a hook to mock calls to the JWT static methods.
|
440 |
-
*
|
441 |
-
* @param string $method
|
442 |
-
* @param array $args
|
443 |
-
* @return mixed
|
444 |
-
*/
|
445 |
-
protected function callJwtStatic($method, array $args = [])
|
446 |
-
{
|
447 |
-
$class = class_exists('Firebase\JWT\JWT')
|
448 |
-
? 'Firebase\JWT\JWT'
|
449 |
-
: 'JWT';
|
450 |
-
return call_user_func_array([$class, $method], $args);
|
451 |
-
}
|
452 |
-
|
453 |
-
/**
|
454 |
-
* Provide a hook to mock calls to the JWT static methods.
|
455 |
-
*
|
456 |
-
* @param array $args
|
457 |
-
* @return mixed
|
458 |
-
*/
|
459 |
-
protected function callSimpleJwtDecode(array $args = [])
|
460 |
-
{
|
461 |
-
return call_user_func_array(['SimpleJWT\JWT', 'decode'], $args);
|
462 |
-
}
|
463 |
-
|
464 |
-
/**
|
465 |
-
* Generate a cache key based on the cert location using sha1 with the
|
466 |
-
* exception of using "federated_signon_certs_v3" to preserve BC.
|
467 |
-
*
|
468 |
-
* @param string $certsLocation
|
469 |
-
* @return string
|
470 |
-
*/
|
471 |
-
private function getCacheKeyFromCertLocation($certsLocation)
|
472 |
-
{
|
473 |
-
$key = $certsLocation === self::FEDERATED_SIGNON_CERT_URL
|
474 |
-
? 'federated_signon_certs_v3'
|
475 |
-
: sha1($certsLocation);
|
476 |
-
|
477 |
-
return 'google_auth_certs_cache|' . $key;
|
478 |
-
}
|
479 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/ApplicationDefaultCredentials.php
DELETED
@@ -1,279 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2015 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace Google\Auth;
|
19 |
-
|
20 |
-
use DomainException;
|
21 |
-
use Google\Auth\Credentials\AppIdentityCredentials;
|
22 |
-
use Google\Auth\Credentials\GCECredentials;
|
23 |
-
use Google\Auth\Credentials\ServiceAccountCredentials;
|
24 |
-
use Google\Auth\HttpHandler\HttpClientCache;
|
25 |
-
use Google\Auth\HttpHandler\HttpHandlerFactory;
|
26 |
-
use Google\Auth\Middleware\AuthTokenMiddleware;
|
27 |
-
use Google\Auth\Subscriber\AuthTokenSubscriber;
|
28 |
-
use GuzzleHttp\Client;
|
29 |
-
use InvalidArgumentException;
|
30 |
-
use Psr\Cache\CacheItemPoolInterface;
|
31 |
-
|
32 |
-
/**
|
33 |
-
* ApplicationDefaultCredentials obtains the default credentials for
|
34 |
-
* authorizing a request to a Google service.
|
35 |
-
*
|
36 |
-
* Application Default Credentials are described here:
|
37 |
-
* https://developers.google.com/accounts/docs/application-default-credentials
|
38 |
-
*
|
39 |
-
* This class implements the search for the application default credentials as
|
40 |
-
* described in the link.
|
41 |
-
*
|
42 |
-
* It provides three factory methods:
|
43 |
-
* - #get returns the computed credentials object
|
44 |
-
* - #getSubscriber returns an AuthTokenSubscriber built from the credentials object
|
45 |
-
* - #getMiddleware returns an AuthTokenMiddleware built from the credentials object
|
46 |
-
*
|
47 |
-
* This allows it to be used as follows with GuzzleHttp\Client:
|
48 |
-
*
|
49 |
-
* ```
|
50 |
-
* use Google\Auth\ApplicationDefaultCredentials;
|
51 |
-
* use GuzzleHttp\Client;
|
52 |
-
* use GuzzleHttp\HandlerStack;
|
53 |
-
*
|
54 |
-
* $middleware = ApplicationDefaultCredentials::getMiddleware(
|
55 |
-
* 'https://www.googleapis.com/auth/taskqueue'
|
56 |
-
* );
|
57 |
-
* $stack = HandlerStack::create();
|
58 |
-
* $stack->push($middleware);
|
59 |
-
*
|
60 |
-
* $client = new Client([
|
61 |
-
* 'handler' => $stack,
|
62 |
-
* 'base_uri' => 'https://www.googleapis.com/taskqueue/v1beta2/projects/',
|
63 |
-
* 'auth' => 'google_auth' // authorize all requests
|
64 |
-
* ]);
|
65 |
-
*
|
66 |
-
* $res = $client->get('myproject/taskqueues/myqueue');
|
67 |
-
* ```
|
68 |
-
*/
|
69 |
-
class ApplicationDefaultCredentials
|
70 |
-
{
|
71 |
-
/**
|
72 |
-
* Obtains an AuthTokenSubscriber that uses the default FetchAuthTokenInterface
|
73 |
-
* implementation to use in this environment.
|
74 |
-
*
|
75 |
-
* If supplied, $scope is used to in creating the credentials instance if
|
76 |
-
* this does not fallback to the compute engine defaults.
|
77 |
-
*
|
78 |
-
* @param string|array scope the scope of the access request, expressed
|
79 |
-
* either as an Array or as a space-delimited String.
|
80 |
-
* @param callable $httpHandler callback which delivers psr7 request
|
81 |
-
* @param array $cacheConfig configuration for the cache when it's present
|
82 |
-
* @param CacheItemPoolInterface $cache A cache implementation, may be
|
83 |
-
* provided if you have one already available for use.
|
84 |
-
* @return AuthTokenSubscriber
|
85 |
-
* @throws DomainException if no implementation can be obtained.
|
86 |
-
*/
|
87 |
-
public static function getSubscriber(
|
88 |
-
$scope = null,
|
89 |
-
callable $httpHandler = null,
|
90 |
-
array $cacheConfig = null,
|
91 |
-
CacheItemPoolInterface $cache = null
|
92 |
-
) {
|
93 |
-
$creds = self::getCredentials($scope, $httpHandler, $cacheConfig, $cache);
|
94 |
-
|
95 |
-
return new AuthTokenSubscriber($creds, $httpHandler);
|
96 |
-
}
|
97 |
-
|
98 |
-
/**
|
99 |
-
* Obtains an AuthTokenMiddleware that uses the default FetchAuthTokenInterface
|
100 |
-
* implementation to use in this environment.
|
101 |
-
*
|
102 |
-
* If supplied, $scope is used to in creating the credentials instance if
|
103 |
-
* this does not fallback to the compute engine defaults.
|
104 |
-
*
|
105 |
-
* @param string|array scope the scope of the access request, expressed
|
106 |
-
* either as an Array or as a space-delimited String.
|
107 |
-
* @param callable $httpHandler callback which delivers psr7 request
|
108 |
-
* @param array $cacheConfig configuration for the cache when it's present
|
109 |
-
* @param CacheItemPoolInterface $cache A cache implementation, may be
|
110 |
-
* provided if you have one already available for use.
|
111 |
-
* @return AuthTokenMiddleware
|
112 |
-
* @throws DomainException if no implementation can be obtained.
|
113 |
-
*/
|
114 |
-
public static function getMiddleware(
|
115 |
-
$scope = null,
|
116 |
-
callable $httpHandler = null,
|
117 |
-
array $cacheConfig = null,
|
118 |
-
CacheItemPoolInterface $cache = null
|
119 |
-
) {
|
120 |
-
$creds = self::getCredentials($scope, $httpHandler, $cacheConfig, $cache);
|
121 |
-
|
122 |
-
return new AuthTokenMiddleware($creds, $httpHandler);
|
123 |
-
}
|
124 |
-
|
125 |
-
/**
|
126 |
-
* Obtains an AuthTokenMiddleware which will fetch an access token to use in
|
127 |
-
* the Authorization header. The middleware is configured with the default
|
128 |
-
* FetchAuthTokenInterface implementation to use in this environment.
|
129 |
-
*
|
130 |
-
* If supplied, $scope is used to in creating the credentials instance if
|
131 |
-
* this does not fallback to the Compute Engine defaults.
|
132 |
-
*
|
133 |
-
* @param string|array scope the scope of the access request, expressed
|
134 |
-
* either as an Array or as a space-delimited String.
|
135 |
-
* @param callable $httpHandler callback which delivers psr7 request
|
136 |
-
* @param array $cacheConfig configuration for the cache when it's present
|
137 |
-
* @param CacheItemPoolInterface $cache A cache implementation, may be
|
138 |
-
* provided if you have one already available for use.
|
139 |
-
* @param string $quotaProject specifies a project to bill for access
|
140 |
-
* charges associated with the request.
|
141 |
-
*
|
142 |
-
* @return CredentialsLoader
|
143 |
-
* @throws DomainException if no implementation can be obtained.
|
144 |
-
*/
|
145 |
-
public static function getCredentials(
|
146 |
-
$scope = null,
|
147 |
-
callable $httpHandler = null,
|
148 |
-
array $cacheConfig = null,
|
149 |
-
CacheItemPoolInterface $cache = null,
|
150 |
-
$quotaProject = null
|
151 |
-
) {
|
152 |
-
$creds = null;
|
153 |
-
$jsonKey = CredentialsLoader::fromEnv()
|
154 |
-
?: CredentialsLoader::fromWellKnownFile();
|
155 |
-
|
156 |
-
if (!$httpHandler) {
|
157 |
-
if (!($client = HttpClientCache::getHttpClient())) {
|
158 |
-
$client = new Client();
|
159 |
-
HttpClientCache::setHttpClient($client);
|
160 |
-
}
|
161 |
-
|
162 |
-
$httpHandler = HttpHandlerFactory::build($client);
|
163 |
-
}
|
164 |
-
|
165 |
-
if (!is_null($jsonKey)) {
|
166 |
-
$jsonKey['quota_project'] = $quotaProject;
|
167 |
-
$creds = CredentialsLoader::makeCredentials($scope, $jsonKey);
|
168 |
-
} elseif (AppIdentityCredentials::onAppEngine() && !GCECredentials::onAppEngineFlexible()) {
|
169 |
-
$creds = new AppIdentityCredentials($scope);
|
170 |
-
} elseif (GCECredentials::onGce($httpHandler)) {
|
171 |
-
$creds = new GCECredentials(null, $scope, null, $quotaProject);
|
172 |
-
}
|
173 |
-
|
174 |
-
if (is_null($creds)) {
|
175 |
-
throw new DomainException(self::notFound());
|
176 |
-
}
|
177 |
-
if (!is_null($cache)) {
|
178 |
-
$creds = new FetchAuthTokenCache($creds, $cacheConfig, $cache);
|
179 |
-
}
|
180 |
-
return $creds;
|
181 |
-
}
|
182 |
-
|
183 |
-
/**
|
184 |
-
* Obtains an AuthTokenMiddleware which will fetch an ID token to use in the
|
185 |
-
* Authorization header. The middleware is configured with the default
|
186 |
-
* FetchAuthTokenInterface implementation to use in this environment.
|
187 |
-
*
|
188 |
-
* If supplied, $targetAudience is used to set the "aud" on the resulting
|
189 |
-
* ID token.
|
190 |
-
*
|
191 |
-
* @param string $targetAudience The audience for the ID token.
|
192 |
-
* @param callable $httpHandler callback which delivers psr7 request
|
193 |
-
* @param array $cacheConfig configuration for the cache when it's present
|
194 |
-
* @param CacheItemPoolInterface $cache A cache implementation, may be
|
195 |
-
* provided if you have one already available for use.
|
196 |
-
* @return AuthTokenMiddleware
|
197 |
-
* @throws DomainException if no implementation can be obtained.
|
198 |
-
*/
|
199 |
-
public static function getIdTokenMiddleware(
|
200 |
-
$targetAudience,
|
201 |
-
callable $httpHandler = null,
|
202 |
-
array $cacheConfig = null,
|
203 |
-
CacheItemPoolInterface $cache = null
|
204 |
-
) {
|
205 |
-
$creds = self::getIdTokenCredentials($targetAudience, $httpHandler, $cacheConfig, $cache);
|
206 |
-
|
207 |
-
return new AuthTokenMiddleware($creds, $httpHandler);
|
208 |
-
}
|
209 |
-
|
210 |
-
/**
|
211 |
-
* Obtains the default FetchAuthTokenInterface implementation to use
|
212 |
-
* in this environment, configured with a $targetAudience for fetching an ID
|
213 |
-
* token.
|
214 |
-
*
|
215 |
-
* @param string $targetAudience The audience for the ID token.
|
216 |
-
* @param callable $httpHandler callback which delivers psr7 request
|
217 |
-
* @param array $cacheConfig configuration for the cache when it's present
|
218 |
-
* @param CacheItemPoolInterface $cache A cache implementation, may be
|
219 |
-
* provided if you have one already available for use.
|
220 |
-
* @return CredentialsLoader
|
221 |
-
* @throws DomainException if no implementation can be obtained.
|
222 |
-
* @throws InvalidArgumentException if JSON "type" key is invalid
|
223 |
-
*/
|
224 |
-
public static function getIdTokenCredentials(
|
225 |
-
$targetAudience,
|
226 |
-
callable $httpHandler = null,
|
227 |
-
array $cacheConfig = null,
|
228 |
-
CacheItemPoolInterface $cache = null
|
229 |
-
) {
|
230 |
-
$creds = null;
|
231 |
-
$jsonKey = CredentialsLoader::fromEnv()
|
232 |
-
?: CredentialsLoader::fromWellKnownFile();
|
233 |
-
|
234 |
-
if (!$httpHandler) {
|
235 |
-
if (!($client = HttpClientCache::getHttpClient())) {
|
236 |
-
$client = new Client();
|
237 |
-
HttpClientCache::setHttpClient($client);
|
238 |
-
}
|
239 |
-
|
240 |
-
$httpHandler = HttpHandlerFactory::build($client);
|
241 |
-
}
|
242 |
-
|
243 |
-
if (!is_null($jsonKey)) {
|
244 |
-
if (!array_key_exists('type', $jsonKey)) {
|
245 |
-
throw new \InvalidArgumentException('json key is missing the type field');
|
246 |
-
}
|
247 |
-
|
248 |
-
if ($jsonKey['type'] == 'authorized_user') {
|
249 |
-
throw new InvalidArgumentException('ID tokens are not supported for end user credentials');
|
250 |
-
}
|
251 |
-
|
252 |
-
if ($jsonKey['type'] != 'service_account') {
|
253 |
-
throw new InvalidArgumentException('invalid value in the type field');
|
254 |
-
}
|
255 |
-
|
256 |
-
$creds = new ServiceAccountCredentials(null, $jsonKey, null, $targetAudience);
|
257 |
-
} elseif (GCECredentials::onGce($httpHandler)) {
|
258 |
-
$creds = new GCECredentials(null, null, $targetAudience);
|
259 |
-
}
|
260 |
-
|
261 |
-
if (is_null($creds)) {
|
262 |
-
throw new DomainException(self::notFound());
|
263 |
-
}
|
264 |
-
if (!is_null($cache)) {
|
265 |
-
$creds = new FetchAuthTokenCache($creds, $cacheConfig, $cache);
|
266 |
-
}
|
267 |
-
return $creds;
|
268 |
-
}
|
269 |
-
|
270 |
-
private static function notFound()
|
271 |
-
{
|
272 |
-
$msg = 'Could not load the default credentials. Browse to ';
|
273 |
-
$msg .= 'https://developers.google.com';
|
274 |
-
$msg .= '/accounts/docs/application-default-credentials';
|
275 |
-
$msg .= ' for more information';
|
276 |
-
|
277 |
-
return $msg;
|
278 |
-
}
|
279 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/Cache/InvalidArgumentException.php
DELETED
@@ -1,24 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2016 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace Google\Auth\Cache;
|
19 |
-
|
20 |
-
use Psr\Cache\InvalidArgumentException as PsrInvalidArgumentException;
|
21 |
-
|
22 |
-
class InvalidArgumentException extends \InvalidArgumentException implements PsrInvalidArgumentException
|
23 |
-
{
|
24 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/Cache/Item.php
DELETED
@@ -1,190 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2016 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace Google\Auth\Cache;
|
19 |
-
|
20 |
-
use Psr\Cache\CacheItemInterface;
|
21 |
-
|
22 |
-
/**
|
23 |
-
* A cache item.
|
24 |
-
*/
|
25 |
-
final class Item implements CacheItemInterface
|
26 |
-
{
|
27 |
-
/**
|
28 |
-
* @var string
|
29 |
-
*/
|
30 |
-
private $key;
|
31 |
-
|
32 |
-
/**
|
33 |
-
* @var mixed
|
34 |
-
*/
|
35 |
-
private $value;
|
36 |
-
|
37 |
-
/**
|
38 |
-
* @var \DateTime|null
|
39 |
-
*/
|
40 |
-
private $expiration;
|
41 |
-
|
42 |
-
/**
|
43 |
-
* @var bool
|
44 |
-
*/
|
45 |
-
private $isHit = false;
|
46 |
-
|
47 |
-
/**
|
48 |
-
* @param string $key
|
49 |
-
*/
|
50 |
-
public function __construct($key)
|
51 |
-
{
|
52 |
-
$this->key = $key;
|
53 |
-
}
|
54 |
-
|
55 |
-
/**
|
56 |
-
* {@inheritdoc}
|
57 |
-
*/
|
58 |
-
public function getKey()
|
59 |
-
{
|
60 |
-
return $this->key;
|
61 |
-
}
|
62 |
-
|
63 |
-
/**
|
64 |
-
* {@inheritdoc}
|
65 |
-
*/
|
66 |
-
public function get()
|
67 |
-
{
|
68 |
-
return $this->isHit() ? $this->value : null;
|
69 |
-
}
|
70 |
-
|
71 |
-
/**
|
72 |
-
* {@inheritdoc}
|
73 |
-
*/
|
74 |
-
public function isHit()
|
75 |
-
{
|
76 |
-
if (!$this->isHit) {
|
77 |
-
return false;
|
78 |
-
}
|
79 |
-
|
80 |
-
if ($this->expiration === null) {
|
81 |
-
return true;
|
82 |
-
}
|
83 |
-
|
84 |
-
return $this->currentTime()->getTimestamp() < $this->expiration->getTimestamp();
|
85 |
-
}
|
86 |
-
|
87 |
-
/**
|
88 |
-
* {@inheritdoc}
|
89 |
-
*/
|
90 |
-
public function set($value)
|
91 |
-
{
|
92 |
-
$this->isHit = true;
|
93 |
-
$this->value = $value;
|
94 |
-
|
95 |
-
return $this;
|
96 |
-
}
|
97 |
-
|
98 |
-
/**
|
99 |
-
* {@inheritdoc}
|
100 |
-
*/
|
101 |
-
public function expiresAt($expiration)
|
102 |
-
{
|
103 |
-
if ($this->isValidExpiration($expiration)) {
|
104 |
-
$this->expiration = $expiration;
|
105 |
-
|
106 |
-
return $this;
|
107 |
-
}
|
108 |
-
|
109 |
-
$implementationMessage = interface_exists('DateTimeInterface')
|
110 |
-
? 'implement interface DateTimeInterface'
|
111 |
-
: 'be an instance of DateTime';
|
112 |
-
|
113 |
-
$error = sprintf(
|
114 |
-
'Argument 1 passed to %s::expiresAt() must %s, %s given',
|
115 |
-
get_class($this),
|
116 |
-
$implementationMessage,
|
117 |
-
gettype($expiration)
|
118 |
-
);
|
119 |
-
|
120 |
-
$this->handleError($error);
|
121 |
-
}
|
122 |
-
|
123 |
-
/**
|
124 |
-
* {@inheritdoc}
|
125 |
-
*/
|
126 |
-
public function expiresAfter($time)
|
127 |
-
{
|
128 |
-
if (is_int($time)) {
|
129 |
-
$this->expiration = $this->currentTime()->add(new \DateInterval("PT{$time}S"));
|
130 |
-
} elseif ($time instanceof \DateInterval) {
|
131 |
-
$this->expiration = $this->currentTime()->add($time);
|
132 |
-
} elseif ($time === null) {
|
133 |
-
$this->expiration = $time;
|
134 |
-
} else {
|
135 |
-
$message = 'Argument 1 passed to %s::expiresAfter() must be an ' .
|
136 |
-
'instance of DateInterval or of the type integer, %s given';
|
137 |
-
$error = sprintf($message, get_class($this), gettype($time));
|
138 |
-
|
139 |
-
$this->handleError($error);
|
140 |
-
}
|
141 |
-
|
142 |
-
return $this;
|
143 |
-
}
|
144 |
-
|
145 |
-
/**
|
146 |
-
* Handles an error.
|
147 |
-
*
|
148 |
-
* @param string $error
|
149 |
-
* @throws \TypeError
|
150 |
-
*/
|
151 |
-
private function handleError($error)
|
152 |
-
{
|
153 |
-
if (class_exists('TypeError')) {
|
154 |
-
throw new \TypeError($error);
|
155 |
-
}
|
156 |
-
|
157 |
-
trigger_error($error, E_USER_ERROR);
|
158 |
-
}
|
159 |
-
|
160 |
-
/**
|
161 |
-
* Determines if an expiration is valid based on the rules defined by PSR6.
|
162 |
-
*
|
163 |
-
* @param mixed $expiration
|
164 |
-
* @return bool
|
165 |
-
*/
|
166 |
-
private function isValidExpiration($expiration)
|
167 |
-
{
|
168 |
-
if ($expiration === null) {
|
169 |
-
return true;
|
170 |
-
}
|
171 |
-
|
172 |
-
// We test for two types here due to the fact the DateTimeInterface
|
173 |
-
// was not introduced until PHP 5.5. Checking for the DateTime type as
|
174 |
-
// well allows us to support 5.4.
|
175 |
-
if ($expiration instanceof \DateTimeInterface) {
|
176 |
-
return true;
|
177 |
-
}
|
178 |
-
|
179 |
-
if ($expiration instanceof \DateTime) {
|
180 |
-
return true;
|
181 |
-
}
|
182 |
-
|
183 |
-
return false;
|
184 |
-
}
|
185 |
-
|
186 |
-
protected function currentTime()
|
187 |
-
{
|
188 |
-
return new \DateTime('now', new \DateTimeZone('UTC'));
|
189 |
-
}
|
190 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/Cache/MemoryCacheItemPool.php
DELETED
@@ -1,154 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2016 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace Google\Auth\Cache;
|
19 |
-
|
20 |
-
use Psr\Cache\CacheItemInterface;
|
21 |
-
use Psr\Cache\CacheItemPoolInterface;
|
22 |
-
|
23 |
-
/**
|
24 |
-
* Simple in-memory cache implementation.
|
25 |
-
*/
|
26 |
-
final class MemoryCacheItemPool implements CacheItemPoolInterface
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* @var CacheItemInterface[]
|
30 |
-
*/
|
31 |
-
private $items;
|
32 |
-
|
33 |
-
/**
|
34 |
-
* @var CacheItemInterface[]
|
35 |
-
*/
|
36 |
-
private $deferredItems;
|
37 |
-
|
38 |
-
/**
|
39 |
-
* {@inheritdoc}
|
40 |
-
*/
|
41 |
-
public function getItem($key)
|
42 |
-
{
|
43 |
-
return current($this->getItems([$key]));
|
44 |
-
}
|
45 |
-
|
46 |
-
/**
|
47 |
-
* {@inheritdoc}
|
48 |
-
*/
|
49 |
-
public function getItems(array $keys = [])
|
50 |
-
{
|
51 |
-
$items = [];
|
52 |
-
|
53 |
-
foreach ($keys as $key) {
|
54 |
-
$items[$key] = $this->hasItem($key) ? clone $this->items[$key] : new Item($key);
|
55 |
-
}
|
56 |
-
|
57 |
-
return $items;
|
58 |
-
}
|
59 |
-
|
60 |
-
/**
|
61 |
-
* {@inheritdoc}
|
62 |
-
*/
|
63 |
-
public function hasItem($key)
|
64 |
-
{
|
65 |
-
$this->isValidKey($key);
|
66 |
-
|
67 |
-
return isset($this->items[$key]) && $this->items[$key]->isHit();
|
68 |
-
}
|
69 |
-
|
70 |
-
/**
|
71 |
-
* {@inheritdoc}
|
72 |
-
*/
|
73 |
-
public function clear()
|
74 |
-
{
|
75 |
-
$this->items = [];
|
76 |
-
$this->deferredItems = [];
|
77 |
-
|
78 |
-
return true;
|
79 |
-
}
|
80 |
-
|
81 |
-
/**
|
82 |
-
* {@inheritdoc}
|
83 |
-
*/
|
84 |
-
public function deleteItem($key)
|
85 |
-
{
|
86 |
-
return $this->deleteItems([$key]);
|
87 |
-
}
|
88 |
-
|
89 |
-
/**
|
90 |
-
* {@inheritdoc}
|
91 |
-
*/
|
92 |
-
public function deleteItems(array $keys)
|
93 |
-
{
|
94 |
-
array_walk($keys, [$this, 'isValidKey']);
|
95 |
-
|
96 |
-
foreach ($keys as $key) {
|
97 |
-
unset($this->items[$key]);
|
98 |
-
}
|
99 |
-
|
100 |
-
return true;
|
101 |
-
}
|
102 |
-
|
103 |
-
/**
|
104 |
-
* {@inheritdoc}
|
105 |
-
*/
|
106 |
-
public function save(CacheItemInterface $item)
|
107 |
-
{
|
108 |
-
$this->items[$item->getKey()] = $item;
|
109 |
-
|
110 |
-
return true;
|
111 |
-
}
|
112 |
-
|
113 |
-
/**
|
114 |
-
* {@inheritdoc}
|
115 |
-
*/
|
116 |
-
public function saveDeferred(CacheItemInterface $item)
|
117 |
-
{
|
118 |
-
$this->deferredItems[$item->getKey()] = $item;
|
119 |
-
|
120 |
-
return true;
|
121 |
-
}
|
122 |
-
|
123 |
-
/**
|
124 |
-
* {@inheritdoc}
|
125 |
-
*/
|
126 |
-
public function commit()
|
127 |
-
{
|
128 |
-
foreach ($this->deferredItems as $item) {
|
129 |
-
$this->save($item);
|
130 |
-
}
|
131 |
-
|
132 |
-
$this->deferredItems = [];
|
133 |
-
|
134 |
-
return true;
|
135 |
-
}
|
136 |
-
|
137 |
-
/**
|
138 |
-
* Determines if the provided key is valid.
|
139 |
-
*
|
140 |
-
* @param string $key
|
141 |
-
* @return bool
|
142 |
-
* @throws InvalidArgumentException
|
143 |
-
*/
|
144 |
-
private function isValidKey($key)
|
145 |
-
{
|
146 |
-
$invalidCharacters = '{}()/\\\\@:';
|
147 |
-
|
148 |
-
if (!is_string($key) || preg_match("#[$invalidCharacters]#", $key)) {
|
149 |
-
throw new InvalidArgumentException('The provided key is not valid: ' . var_export($key, true));
|
150 |
-
}
|
151 |
-
|
152 |
-
return true;
|
153 |
-
}
|
154 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/Cache/SysVCacheItemPool.php
DELETED
@@ -1,241 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Copyright 2018 Google Inc. All Rights Reserved.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
namespace Google\Auth\Cache;
|
18 |
-
|
19 |
-
use Psr\Cache\CacheItemInterface;
|
20 |
-
use Psr\Cache\CacheItemPoolInterface;
|
21 |
-
|
22 |
-
/**
|
23 |
-
* SystemV shared memory based CacheItemPool implementation.
|
24 |
-
*
|
25 |
-
* This CacheItemPool implementation can be used among multiple processes, but
|
26 |
-
* it doesn't provide any locking mechanism. If multiple processes write to
|
27 |
-
* this ItemPool, you have to avoid race condition manually in your code.
|
28 |
-
*/
|
29 |
-
class SysVCacheItemPool implements CacheItemPoolInterface
|
30 |
-
{
|
31 |
-
const VAR_KEY = 1;
|
32 |
-
|
33 |
-
const DEFAULT_PROJ = 'A';
|
34 |
-
|
35 |
-
const DEFAULT_MEMSIZE = 10000;
|
36 |
-
|
37 |
-
const DEFAULT_PERM = 0600;
|
38 |
-
|
39 |
-
/** @var int */
|
40 |
-
private $sysvKey;
|
41 |
-
|
42 |
-
/**
|
43 |
-
* @var CacheItemInterface[]
|
44 |
-
*/
|
45 |
-
private $items;
|
46 |
-
|
47 |
-
/**
|
48 |
-
* @var CacheItemInterface[]
|
49 |
-
*/
|
50 |
-
private $deferredItems;
|
51 |
-
|
52 |
-
/**
|
53 |
-
* @var array
|
54 |
-
*/
|
55 |
-
private $options;
|
56 |
-
|
57 |
-
/*
|
58 |
-
* @var bool
|
59 |
-
*/
|
60 |
-
private $hasLoadedItems = false;
|
61 |
-
|
62 |
-
/**
|
63 |
-
* Create a SystemV shared memory based CacheItemPool.
|
64 |
-
*
|
65 |
-
* @param array $options [optional] Configuration options.
|
66 |
-
* @param int $options.variableKey The variable key for getting the data from
|
67 |
-
* the shared memory. **Defaults to** 1.
|
68 |
-
* @param $options.proj string The project identifier for ftok. This needs to
|
69 |
-
* be a one character string. **Defaults to** 'A'.
|
70 |
-
* @param $options.memsize int The memory size in bytes for shm_attach.
|
71 |
-
* **Defaults to** 10000.
|
72 |
-
* @param $options.perm int The permission for shm_attach. **Defaults to**
|
73 |
-
* 0600.
|
74 |
-
*/
|
75 |
-
public function __construct($options = [])
|
76 |
-
{
|
77 |
-
if (! extension_loaded('sysvshm')) {
|
78 |
-
throw new \RuntimeException(
|
79 |
-
'sysvshm extension is required to use this ItemPool'
|
80 |
-
);
|
81 |
-
}
|
82 |
-
$this->options = $options + [
|
83 |
-
'variableKey' => self::VAR_KEY,
|
84 |
-
'proj' => self::DEFAULT_PROJ,
|
85 |
-
'memsize' => self::DEFAULT_MEMSIZE,
|
86 |
-
'perm' => self::DEFAULT_PERM
|
87 |
-
];
|
88 |
-
$this->items = [];
|
89 |
-
$this->deferredItems = [];
|
90 |
-
$this->sysvKey = ftok(__FILE__, $this->options['proj']);
|
91 |
-
}
|
92 |
-
|
93 |
-
public function getItem($key)
|
94 |
-
{
|
95 |
-
$this->loadItems();
|
96 |
-
return current($this->getItems([$key]));
|
97 |
-
}
|
98 |
-
|
99 |
-
/**
|
100 |
-
* {@inheritdoc}
|
101 |
-
*/
|
102 |
-
public function getItems(array $keys = [])
|
103 |
-
{
|
104 |
-
$this->loadItems();
|
105 |
-
$items = [];
|
106 |
-
foreach ($keys as $key) {
|
107 |
-
$items[$key] = $this->hasItem($key) ?
|
108 |
-
clone $this->items[$key] :
|
109 |
-
new Item($key);
|
110 |
-
}
|
111 |
-
return $items;
|
112 |
-
}
|
113 |
-
|
114 |
-
/**
|
115 |
-
* {@inheritdoc}
|
116 |
-
*/
|
117 |
-
public function hasItem($key)
|
118 |
-
{
|
119 |
-
$this->loadItems();
|
120 |
-
return isset($this->items[$key]) && $this->items[$key]->isHit();
|
121 |
-
}
|
122 |
-
|
123 |
-
/**
|
124 |
-
* {@inheritdoc}
|
125 |
-
*/
|
126 |
-
public function clear()
|
127 |
-
{
|
128 |
-
$this->items = [];
|
129 |
-
$this->deferredItems = [];
|
130 |
-
return $this->saveCurrentItems();
|
131 |
-
}
|
132 |
-
|
133 |
-
/**
|
134 |
-
* {@inheritdoc}
|
135 |
-
*/
|
136 |
-
public function deleteItem($key)
|
137 |
-
{
|
138 |
-
return $this->deleteItems([$key]);
|
139 |
-
}
|
140 |
-
|
141 |
-
/**
|
142 |
-
* {@inheritdoc}
|
143 |
-
*/
|
144 |
-
public function deleteItems(array $keys)
|
145 |
-
{
|
146 |
-
if (!$this->hasLoadedItems) {
|
147 |
-
$this->loadItems();
|
148 |
-
}
|
149 |
-
|
150 |
-
foreach ($keys as $key) {
|
151 |
-
unset($this->items[$key]);
|
152 |
-
}
|
153 |
-
return $this->saveCurrentItems();
|
154 |
-
}
|
155 |
-
|
156 |
-
/**
|
157 |
-
* {@inheritdoc}
|
158 |
-
*/
|
159 |
-
public function save(CacheItemInterface $item)
|
160 |
-
{
|
161 |
-
if (!$this->hasLoadedItems) {
|
162 |
-
$this->loadItems();
|
163 |
-
}
|
164 |
-
|
165 |
-
$this->items[$item->getKey()] = $item;
|
166 |
-
return $this->saveCurrentItems();
|
167 |
-
}
|
168 |
-
|
169 |
-
/**
|
170 |
-
* {@inheritdoc}
|
171 |
-
*/
|
172 |
-
public function saveDeferred(CacheItemInterface $item)
|
173 |
-
{
|
174 |
-
$this->deferredItems[$item->getKey()] = $item;
|
175 |
-
return true;
|
176 |
-
}
|
177 |
-
|
178 |
-
/**
|
179 |
-
* {@inheritdoc}
|
180 |
-
*/
|
181 |
-
public function commit()
|
182 |
-
{
|
183 |
-
foreach ($this->deferredItems as $item) {
|
184 |
-
if ($this->save($item) === false) {
|
185 |
-
return false;
|
186 |
-
}
|
187 |
-
}
|
188 |
-
$this->deferredItems = [];
|
189 |
-
return true;
|
190 |
-
}
|
191 |
-
|
192 |
-
/**
|
193 |
-
* Save the current items.
|
194 |
-
*
|
195 |
-
* @return bool true when success, false upon failure
|
196 |
-
*/
|
197 |
-
private function saveCurrentItems()
|
198 |
-
{
|
199 |
-
$shmid = shm_attach(
|
200 |
-
$this->sysvKey,
|
201 |
-
$this->options['memsize'],
|
202 |
-
$this->options['perm']
|
203 |
-
);
|
204 |
-
if ($shmid !== false) {
|
205 |
-
$ret = shm_put_var(
|
206 |
-
$shmid,
|
207 |
-
$this->options['variableKey'],
|
208 |
-
$this->items
|
209 |
-
);
|
210 |
-
shm_detach($shmid);
|
211 |
-
return $ret;
|
212 |
-
}
|
213 |
-
return false;
|
214 |
-
}
|
215 |
-
|
216 |
-
/**
|
217 |
-
* Load the items from the shared memory.
|
218 |
-
*
|
219 |
-
* @return bool true when success, false upon failure
|
220 |
-
*/
|
221 |
-
private function loadItems()
|
222 |
-
{
|
223 |
-
$shmid = shm_attach(
|
224 |
-
$this->sysvKey,
|
225 |
-
$this->options['memsize'],
|
226 |
-
$this->options['perm']
|
227 |
-
);
|
228 |
-
if ($shmid !== false) {
|
229 |
-
$data = @shm_get_var($shmid, $this->options['variableKey']);
|
230 |
-
if (!empty($data)) {
|
231 |
-
$this->items = $data;
|
232 |
-
} else {
|
233 |
-
$this->items = [];
|
234 |
-
}
|
235 |
-
shm_detach($shmid);
|
236 |
-
$this->hasLoadedItems = true;
|
237 |
-
return true;
|
238 |
-
}
|
239 |
-
return false;
|
240 |
-
}
|
241 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/CacheTrait.php
DELETED
@@ -1,83 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2015 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace Google\Auth;
|
19 |
-
|
20 |
-
trait CacheTrait
|
21 |
-
{
|
22 |
-
private $maxKeyLength = 64;
|
23 |
-
|
24 |
-
/**
|
25 |
-
* Gets the cached value if it is present in the cache when that is
|
26 |
-
* available.
|
27 |
-
*/
|
28 |
-
private function getCachedValue($k)
|
29 |
-
{
|
30 |
-
if (is_null($this->cache)) {
|
31 |
-
return;
|
32 |
-
}
|
33 |
-
|
34 |
-
$key = $this->getFullCacheKey($k);
|
35 |
-
if (is_null($key)) {
|
36 |
-
return;
|
37 |
-
}
|
38 |
-
|
39 |
-
$cacheItem = $this->cache->getItem($key);
|
40 |
-
if ($cacheItem->isHit()) {
|
41 |
-
return $cacheItem->get();
|
42 |
-
}
|
43 |
-
}
|
44 |
-
|
45 |
-
/**
|
46 |
-
* Saves the value in the cache when that is available.
|
47 |
-
*/
|
48 |
-
private function setCachedValue($k, $v)
|
49 |
-
{
|
50 |
-
if (is_null($this->cache)) {
|
51 |
-
return;
|
52 |
-
}
|
53 |
-
|
54 |
-
$key = $this->getFullCacheKey($k);
|
55 |
-
if (is_null($key)) {
|
56 |
-
return;
|
57 |
-
}
|
58 |
-
|
59 |
-
$cacheItem = $this->cache->getItem($key);
|
60 |
-
$cacheItem->set($v);
|
61 |
-
$cacheItem->expiresAfter($this->cacheConfig['lifetime']);
|
62 |
-
return $this->cache->save($cacheItem);
|
63 |
-
}
|
64 |
-
|
65 |
-
private function getFullCacheKey($key)
|
66 |
-
{
|
67 |
-
if (is_null($key)) {
|
68 |
-
return;
|
69 |
-
}
|
70 |
-
|
71 |
-
$key = $this->cacheConfig['prefix'] . $key;
|
72 |
-
|
73 |
-
// ensure we do not have illegal characters
|
74 |
-
$key = preg_replace('|[^a-zA-Z0-9_\.!]|', '', $key);
|
75 |
-
|
76 |
-
// Hash keys if they exceed $maxKeyLength (defaults to 64)
|
77 |
-
if ($this->maxKeyLength && strlen($key) > $this->maxKeyLength) {
|
78 |
-
$key = substr(hash('sha256', $key), 0, $this->maxKeyLength);
|
79 |
-
}
|
80 |
-
|
81 |
-
return $key;
|
82 |
-
}
|
83 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/Credentials/AppIdentityCredentials.php
DELETED
@@ -1,230 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2015 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace Google\Auth\Credentials;
|
19 |
-
|
20 |
-
/*
|
21 |
-
* The AppIdentityService class is automatically defined on App Engine,
|
22 |
-
* so including this dependency is not necessary, and will result in a
|
23 |
-
* PHP fatal error in the App Engine environment.
|
24 |
-
*/
|
25 |
-
use google\appengine\api\app_identity\AppIdentityService;
|
26 |
-
use Google\Auth\CredentialsLoader;
|
27 |
-
use Google\Auth\ProjectIdProviderInterface;
|
28 |
-
use Google\Auth\SignBlobInterface;
|
29 |
-
|
30 |
-
/**
|
31 |
-
* AppIdentityCredentials supports authorization on Google App Engine.
|
32 |
-
*
|
33 |
-
* It can be used to authorize requests using the AuthTokenMiddleware or
|
34 |
-
* AuthTokenSubscriber, but will only succeed if being run on App Engine:
|
35 |
-
*
|
36 |
-
* Example:
|
37 |
-
* ```
|
38 |
-
* use Google\Auth\Credentials\AppIdentityCredentials;
|
39 |
-
* use Google\Auth\Middleware\AuthTokenMiddleware;
|
40 |
-
* use GuzzleHttp\Client;
|
41 |
-
* use GuzzleHttp\HandlerStack;
|
42 |
-
*
|
43 |
-
* $gae = new AppIdentityCredentials('https://www.googleapis.com/auth/books');
|
44 |
-
* $middleware = new AuthTokenMiddleware($gae);
|
45 |
-
* $stack = HandlerStack::create();
|
46 |
-
* $stack->push($middleware);
|
47 |
-
*
|
48 |
-
* $client = new Client([
|
49 |
-
* 'handler' => $stack,
|
50 |
-
* 'base_uri' => 'https://www.googleapis.com/books/v1',
|
51 |
-
* 'auth' => 'google_auth'
|
52 |
-
* ]);
|
53 |
-
*
|
54 |
-
* $res = $client->get('volumes?q=Henry+David+Thoreau&country=US');
|
55 |
-
* ```
|
56 |
-
*/
|
57 |
-
class AppIdentityCredentials extends CredentialsLoader implements
|
58 |
-
SignBlobInterface,
|
59 |
-
ProjectIdProviderInterface
|
60 |
-
{
|
61 |
-
/**
|
62 |
-
* Result of fetchAuthToken.
|
63 |
-
*
|
64 |
-
* @var array
|
65 |
-
*/
|
66 |
-
protected $lastReceivedToken;
|
67 |
-
|
68 |
-
/**
|
69 |
-
* Array of OAuth2 scopes to be requested.
|
70 |
-
*
|
71 |
-
* @var array
|
72 |
-
*/
|
73 |
-
private $scope;
|
74 |
-
|
75 |
-
/**
|
76 |
-
* @var string
|
77 |
-
*/
|
78 |
-
private $clientName;
|
79 |
-
|
80 |
-
/**
|
81 |
-
* @param array $scope One or more scopes.
|
82 |
-
*/
|
83 |
-
public function __construct($scope = array())
|
84 |
-
{
|
85 |
-
$this->scope = $scope;
|
86 |
-
}
|
87 |
-
|
88 |
-
/**
|
89 |
-
* Determines if this an App Engine instance, by accessing the
|
90 |
-
* SERVER_SOFTWARE environment variable (prod) or the APPENGINE_RUNTIME
|
91 |
-
* environment variable (dev).
|
92 |
-
*
|
93 |
-
* @return bool true if this an App Engine Instance, false otherwise
|
94 |
-
*/
|
95 |
-
public static function onAppEngine()
|
96 |
-
{
|
97 |
-
$appEngineProduction = isset($_SERVER['SERVER_SOFTWARE']) &&
|
98 |
-
0 === strpos($_SERVER['SERVER_SOFTWARE'], 'Google App Engine');
|
99 |
-
if ($appEngineProduction) {
|
100 |
-
return true;
|
101 |
-
}
|
102 |
-
$appEngineDevAppServer = isset($_SERVER['APPENGINE_RUNTIME']) &&
|
103 |
-
$_SERVER['APPENGINE_RUNTIME'] == 'php';
|
104 |
-
if ($appEngineDevAppServer) {
|
105 |
-
return true;
|
106 |
-
}
|
107 |
-
return false;
|
108 |
-
}
|
109 |
-
|
110 |
-
/**
|
111 |
-
* Implements FetchAuthTokenInterface#fetchAuthToken.
|
112 |
-
*
|
113 |
-
* Fetches the auth tokens using the AppIdentityService if available.
|
114 |
-
* As the AppIdentityService uses protobufs to fetch the access token,
|
115 |
-
* the GuzzleHttp\ClientInterface instance passed in will not be used.
|
116 |
-
*
|
117 |
-
* @param callable $httpHandler callback which delivers psr7 request
|
118 |
-
* @return array A set of auth related metadata, containing the following
|
119 |
-
* keys:
|
120 |
-
* - access_token (string)
|
121 |
-
* - expiration_time (string)
|
122 |
-
*/
|
123 |
-
public function fetchAuthToken(callable $httpHandler = null)
|
124 |
-
{
|
125 |
-
try {
|
126 |
-
$this->checkAppEngineContext();
|
127 |
-
} catch (\Exception $e) {
|
128 |
-
return [];
|
129 |
-
}
|
130 |
-
|
131 |
-
// AppIdentityService expects an array when multiple scopes are supplied
|
132 |
-
$scope = is_array($this->scope) ? $this->scope : explode(' ', $this->scope);
|
133 |
-
|
134 |
-
$token = AppIdentityService::getAccessToken($scope);
|
135 |
-
$this->lastReceivedToken = $token;
|
136 |
-
|
137 |
-
return $token;
|
138 |
-
}
|
139 |
-
|
140 |
-
/**
|
141 |
-
* Sign a string using AppIdentityService.
|
142 |
-
*
|
143 |
-
* @param string $stringToSign The string to sign.
|
144 |
-
* @param bool $forceOpenSsl [optional] Does not apply to this credentials
|
145 |
-
* type.
|
146 |
-
* @return string The signature, base64-encoded.
|
147 |
-
* @throws \Exception If AppEngine SDK or mock is not available.
|
148 |
-
*/
|
149 |
-
public function signBlob($stringToSign, $forceOpenSsl = false)
|
150 |
-
{
|
151 |
-
$this->checkAppEngineContext();
|
152 |
-
|
153 |
-
return base64_encode(AppIdentityService::signForApp($stringToSign)['signature']);
|
154 |
-
}
|
155 |
-
|
156 |
-
/**
|
157 |
-
* Get the project ID from AppIdentityService.
|
158 |
-
*
|
159 |
-
* Returns null if AppIdentityService is unavailable.
|
160 |
-
*
|
161 |
-
* @param callable $httpHandler Not used by this type.
|
162 |
-
* @return string|null
|
163 |
-
*/
|
164 |
-
public function getProjectId(callable $httpHander = null)
|
165 |
-
{
|
166 |
-
try {
|
167 |
-
$this->checkAppEngineContext();
|
168 |
-
} catch (\Exception $e) {
|
169 |
-
return null;
|
170 |
-
}
|
171 |
-
|
172 |
-
return AppIdentityService::getApplicationId();
|
173 |
-
}
|
174 |
-
|
175 |
-
/**
|
176 |
-
* Get the client name from AppIdentityService.
|
177 |
-
*
|
178 |
-
* Subsequent calls to this method will return a cached value.
|
179 |
-
*
|
180 |
-
* @param callable $httpHandler Not used in this implementation.
|
181 |
-
* @return string
|
182 |
-
* @throws \Exception If AppEngine SDK or mock is not available.
|
183 |
-
*/
|
184 |
-
public function getClientName(callable $httpHandler = null)
|
185 |
-
{
|
186 |
-
$this->checkAppEngineContext();
|
187 |
-
|
188 |
-
if (!$this->clientName) {
|
189 |
-
$this->clientName = AppIdentityService::getServiceAccountName();
|
190 |
-
}
|
191 |
-
|
192 |
-
return $this->clientName;
|
193 |
-
}
|
194 |
-
|
195 |
-
/**
|
196 |
-
* @return array|null
|
197 |
-
*/
|
198 |
-
public function getLastReceivedToken()
|
199 |
-
{
|
200 |
-
if ($this->lastReceivedToken) {
|
201 |
-
return [
|
202 |
-
'access_token' => $this->lastReceivedToken['access_token'],
|
203 |
-
'expires_at' => $this->lastReceivedToken['expiration_time'],
|
204 |
-
];
|
205 |
-
}
|
206 |
-
|
207 |
-
return null;
|
208 |
-
}
|
209 |
-
|
210 |
-
/**
|
211 |
-
* Caching is handled by the underlying AppIdentityService, return empty string
|
212 |
-
* to prevent caching.
|
213 |
-
*
|
214 |
-
* @return string
|
215 |
-
*/
|
216 |
-
public function getCacheKey()
|
217 |
-
{
|
218 |
-
return '';
|
219 |
-
}
|
220 |
-
|
221 |
-
private function checkAppEngineContext()
|
222 |
-
{
|
223 |
-
if (!self::onAppEngine() || !class_exists('google\appengine\api\app_identity\AppIdentityService')) {
|
224 |
-
throw new \Exception(
|
225 |
-
'This class must be run in App Engine, or you must include the AppIdentityService '
|
226 |
-
. 'mock class defined in tests/mocks/AppIdentityService.php'
|
227 |
-
);
|
228 |
-
}
|
229 |
-
}
|
230 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/Credentials/GCECredentials.php
DELETED
@@ -1,485 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2015 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace Google\Auth\Credentials;
|
19 |
-
|
20 |
-
use Google\Auth\CredentialsLoader;
|
21 |
-
use Google\Auth\GetQuotaProjectInterface;
|
22 |
-
use Google\Auth\HttpHandler\HttpClientCache;
|
23 |
-
use Google\Auth\HttpHandler\HttpHandlerFactory;
|
24 |
-
use Google\Auth\Iam;
|
25 |
-
use Google\Auth\ProjectIdProviderInterface;
|
26 |
-
use Google\Auth\SignBlobInterface;
|
27 |
-
use GuzzleHttp\Exception\ClientException;
|
28 |
-
use GuzzleHttp\Exception\ConnectException;
|
29 |
-
use GuzzleHttp\Exception\RequestException;
|
30 |
-
use GuzzleHttp\Exception\ServerException;
|
31 |
-
use GuzzleHttp\Psr7\Request;
|
32 |
-
use InvalidArgumentException;
|
33 |
-
|
34 |
-
/**
|
35 |
-
* GCECredentials supports authorization on Google Compute Engine.
|
36 |
-
*
|
37 |
-
* It can be used to authorize requests using the AuthTokenMiddleware, but will
|
38 |
-
* only succeed if being run on GCE:
|
39 |
-
*
|
40 |
-
* use Google\Auth\Credentials\GCECredentials;
|
41 |
-
* use Google\Auth\Middleware\AuthTokenMiddleware;
|
42 |
-
* use GuzzleHttp\Client;
|
43 |
-
* use GuzzleHttp\HandlerStack;
|
44 |
-
*
|
45 |
-
* $gce = new GCECredentials();
|
46 |
-
* $middleware = new AuthTokenMiddleware($gce);
|
47 |
-
* $stack = HandlerStack::create();
|
48 |
-
* $stack->push($middleware);
|
49 |
-
*
|
50 |
-
* $client = new Client([
|
51 |
-
* 'handler' => $stack,
|
52 |
-
* 'base_uri' => 'https://www.googleapis.com/taskqueue/v1beta2/projects/',
|
53 |
-
* 'auth' => 'google_auth'
|
54 |
-
* ]);
|
55 |
-
*
|
56 |
-
* $res = $client->get('myproject/taskqueues/myqueue');
|
57 |
-
*/
|
58 |
-
class GCECredentials extends CredentialsLoader implements
|
59 |
-
SignBlobInterface,
|
60 |
-
ProjectIdProviderInterface,
|
61 |
-
GetQuotaProjectInterface
|
62 |
-
{
|
63 |
-
// phpcs:disable
|
64 |
-
const cacheKey = 'GOOGLE_AUTH_PHP_GCE';
|
65 |
-
// phpcs:enable
|
66 |
-
|
67 |
-
/**
|
68 |
-
* The metadata IP address on appengine instances.
|
69 |
-
*
|
70 |
-
* The IP is used instead of the domain 'metadata' to avoid slow responses
|
71 |
-
* when not on Compute Engine.
|
72 |
-
*/
|
73 |
-
const METADATA_IP = '169.254.169.254';
|
74 |
-
|
75 |
-
/**
|
76 |
-
* The metadata path of the default token.
|
77 |
-
*/
|
78 |
-
const TOKEN_URI_PATH = 'v1/instance/service-accounts/default/token';
|
79 |
-
|
80 |
-
/**
|
81 |
-
* The metadata path of the default id token.
|
82 |
-
*/
|
83 |
-
const ID_TOKEN_URI_PATH = 'v1/instance/service-accounts/default/identity';
|
84 |
-
|
85 |
-
/**
|
86 |
-
* The metadata path of the client ID.
|
87 |
-
*/
|
88 |
-
const CLIENT_ID_URI_PATH = 'v1/instance/service-accounts/default/email';
|
89 |
-
|
90 |
-
/**
|
91 |
-
* The metadata path of the project ID.
|
92 |
-
*/
|
93 |
-
const PROJECT_ID_URI_PATH = 'v1/project/project-id';
|
94 |
-
|
95 |
-
/**
|
96 |
-
* The header whose presence indicates GCE presence.
|
97 |
-
*/
|
98 |
-
const FLAVOR_HEADER = 'Metadata-Flavor';
|
99 |
-
|
100 |
-
/**
|
101 |
-
* Note: the explicit `timeout` and `tries` below is a workaround. The underlying
|
102 |
-
* issue is that resolving an unknown host on some networks will take
|
103 |
-
* 20-30 seconds; making this timeout short fixes the issue, but
|
104 |
-
* could lead to false negatives in the event that we are on GCE, but
|
105 |
-
* the metadata resolution was particularly slow. The latter case is
|
106 |
-
* "unlikely" since the expected 4-nines time is about 0.5 seconds.
|
107 |
-
* This allows us to limit the total ping maximum timeout to 1.5 seconds
|
108 |
-
* for developer desktop scenarios.
|
109 |
-
*/
|
110 |
-
const MAX_COMPUTE_PING_TRIES = 3;
|
111 |
-
const COMPUTE_PING_CONNECTION_TIMEOUT_S = 0.5;
|
112 |
-
|
113 |
-
/**
|
114 |
-
* Flag used to ensure that the onGCE test is only done once;.
|
115 |
-
*
|
116 |
-
* @var bool
|
117 |
-
*/
|
118 |
-
private $hasCheckedOnGce = false;
|
119 |
-
|
120 |
-
/**
|
121 |
-
* Flag that stores the value of the onGCE check.
|
122 |
-
*
|
123 |
-
* @var bool
|
124 |
-
*/
|
125 |
-
private $isOnGce = false;
|
126 |
-
|
127 |
-
/**
|
128 |
-
* Result of fetchAuthToken.
|
129 |
-
*/
|
130 |
-
protected $lastReceivedToken;
|
131 |
-
|
132 |
-
/**
|
133 |
-
* @var string|null
|
134 |
-
*/
|
135 |
-
private $clientName;
|
136 |
-
|
137 |
-
/**
|
138 |
-
* @var string|null
|
139 |
-
*/
|
140 |
-
private $projectId;
|
141 |
-
|
142 |
-
/**
|
143 |
-
* @var Iam|null
|
144 |
-
*/
|
145 |
-
private $iam;
|
146 |
-
|
147 |
-
/**
|
148 |
-
* @var string
|
149 |
-
*/
|
150 |
-
private $tokenUri;
|
151 |
-
|
152 |
-
/**
|
153 |
-
* @var string
|
154 |
-
*/
|
155 |
-
private $targetAudience;
|
156 |
-
|
157 |
-
/**
|
158 |
-
* @var string|null
|
159 |
-
*/
|
160 |
-
private $quotaProject;
|
161 |
-
|
162 |
-
/**
|
163 |
-
* @param Iam $iam [optional] An IAM instance.
|
164 |
-
* @param string|array $scope [optional] the scope of the access request,
|
165 |
-
* expressed either as an array or as a space-delimited string.
|
166 |
-
* @param string $targetAudience [optional] The audience for the ID token.
|
167 |
-
* @param string $quotaProject [optional] Specifies a project to bill for access
|
168 |
-
* charges associated with the request.
|
169 |
-
*/
|
170 |
-
public function __construct(Iam $iam = null, $scope = null, $targetAudience = null, $quotaProject = null)
|
171 |
-
{
|
172 |
-
$this->iam = $iam;
|
173 |
-
|
174 |
-
if ($scope && $targetAudience) {
|
175 |
-
throw new InvalidArgumentException(
|
176 |
-
'Scope and targetAudience cannot both be supplied'
|
177 |
-
);
|
178 |
-
}
|
179 |
-
|
180 |
-
$tokenUri = self::getTokenUri();
|
181 |
-
if ($scope) {
|
182 |
-
if (is_string($scope)) {
|
183 |
-
$scope = explode(' ', $scope);
|
184 |
-
}
|
185 |
-
|
186 |
-
$scope = implode(',', $scope);
|
187 |
-
|
188 |
-
$tokenUri = $tokenUri . '?scopes='. $scope;
|
189 |
-
} elseif ($targetAudience) {
|
190 |
-
$tokenUri = sprintf(
|
191 |
-
'http://%s/computeMetadata/%s?audience=%s',
|
192 |
-
self::METADATA_IP,
|
193 |
-
self::ID_TOKEN_URI_PATH,
|
194 |
-
$targetAudience
|
195 |
-
);
|
196 |
-
$this->targetAudience = $targetAudience;
|
197 |
-
}
|
198 |
-
|
199 |
-
$this->tokenUri = $tokenUri;
|
200 |
-
$this->quotaProject = $quotaProject;
|
201 |
-
}
|
202 |
-
|
203 |
-
/**
|
204 |
-
* The full uri for accessing the default token.
|
205 |
-
*
|
206 |
-
* @return string
|
207 |
-
*/
|
208 |
-
public static function getTokenUri()
|
209 |
-
{
|
210 |
-
$base = 'http://' . self::METADATA_IP . '/computeMetadata/';
|
211 |
-
|
212 |
-
return $base . self::TOKEN_URI_PATH;
|
213 |
-
}
|
214 |
-
|
215 |
-
/**
|
216 |
-
* The full uri for accessing the default service account.
|
217 |
-
*
|
218 |
-
* @return string
|
219 |
-
*/
|
220 |
-
public static function getClientNameUri()
|
221 |
-
{
|
222 |
-
$base = 'http://' . self::METADATA_IP . '/computeMetadata/';
|
223 |
-
|
224 |
-
return $base . self::CLIENT_ID_URI_PATH;
|
225 |
-
}
|
226 |
-
|
227 |
-
/**
|
228 |
-
* The full uri for accessing the default project ID.
|
229 |
-
*
|
230 |
-
* @return string
|
231 |
-
*/
|
232 |
-
private static function getProjectIdUri()
|
233 |
-
{
|
234 |
-
$base = 'http://' . self::METADATA_IP . '/computeMetadata/';
|
235 |
-
|
236 |
-
return $base . self::PROJECT_ID_URI_PATH;
|
237 |
-
}
|
238 |
-
|
239 |
-
/**
|
240 |
-
* Determines if this an App Engine Flexible instance, by accessing the
|
241 |
-
* GAE_INSTANCE environment variable.
|
242 |
-
*
|
243 |
-
* @return bool true if this an App Engine Flexible Instance, false otherwise
|
244 |
-
*/
|
245 |
-
public static function onAppEngineFlexible()
|
246 |
-
{
|
247 |
-
return substr(getenv('GAE_INSTANCE'), 0, 4) === 'aef-';
|
248 |
-
}
|
249 |
-
|
250 |
-
/**
|
251 |
-
* Determines if this a GCE instance, by accessing the expected metadata
|
252 |
-
* host.
|
253 |
-
* If $httpHandler is not specified a the default HttpHandler is used.
|
254 |
-
*
|
255 |
-
* @param callable $httpHandler callback which delivers psr7 request
|
256 |
-
* @return bool True if this a GCEInstance, false otherwise
|
257 |
-
*/
|
258 |
-
public static function onGce(callable $httpHandler = null)
|
259 |
-
{
|
260 |
-
$httpHandler = $httpHandler
|
261 |
-
?: HttpHandlerFactory::build(HttpClientCache::getHttpClient());
|
262 |
-
|
263 |
-
$checkUri = 'http://' . self::METADATA_IP;
|
264 |
-
for ($i = 1; $i <= self::MAX_COMPUTE_PING_TRIES; $i++) {
|
265 |
-
try {
|
266 |
-
// Comment from: oauth2client/client.py
|
267 |
-
//
|
268 |
-
// Note: the explicit `timeout` below is a workaround. The underlying
|
269 |
-
// issue is that resolving an unknown host on some networks will take
|
270 |
-
// 20-30 seconds; making this timeout short fixes the issue, but
|
271 |
-
// could lead to false negatives in the event that we are on GCE, but
|
272 |
-
// the metadata resolution was particularly slow. The latter case is
|
273 |
-
// "unlikely".
|
274 |
-
$resp = $httpHandler(
|
275 |
-
new Request(
|
276 |
-
'GET',
|
277 |
-
$checkUri,
|
278 |
-
[self::FLAVOR_HEADER => 'Google']
|
279 |
-
),
|
280 |
-
['timeout' => self::COMPUTE_PING_CONNECTION_TIMEOUT_S]
|
281 |
-
);
|
282 |
-
|
283 |
-
return $resp->getHeaderLine(self::FLAVOR_HEADER) == 'Google';
|
284 |
-
} catch (ClientException $e) {
|
285 |
-
} catch (ServerException $e) {
|
286 |
-
} catch (RequestException $e) {
|
287 |
-
} catch (ConnectException $e) {
|
288 |
-
}
|
289 |
-
}
|
290 |
-
return false;
|
291 |
-
}
|
292 |
-
|
293 |
-
/**
|
294 |
-
* Implements FetchAuthTokenInterface#fetchAuthToken.
|
295 |
-
*
|
296 |
-
* Fetches the auth tokens from the GCE metadata host if it is available.
|
297 |
-
* If $httpHandler is not specified a the default HttpHandler is used.
|
298 |
-
*
|
299 |
-
* @param callable $httpHandler callback which delivers psr7 request
|
300 |
-
*
|
301 |
-
* @return array A set of auth related metadata, based on the token type.
|
302 |
-
*
|
303 |
-
* Access tokens have the following keys:
|
304 |
-
* - access_token (string)
|
305 |
-
* - expires_in (int)
|
306 |
-
* - token_type (string)
|
307 |
-
* ID tokens have the following keys:
|
308 |
-
* - id_token (string)
|
309 |
-
*
|
310 |
-
* @throws \Exception
|
311 |
-
*/
|
312 |
-
public function fetchAuthToken(callable $httpHandler = null)
|
313 |
-
{
|
314 |
-
$httpHandler = $httpHandler
|
315 |
-
?: HttpHandlerFactory::build(HttpClientCache::getHttpClient());
|
316 |
-
|
317 |
-
if (!$this->hasCheckedOnGce) {
|
318 |
-
$this->isOnGce = self::onGce($httpHandler);
|
319 |
-
$this->hasCheckedOnGce = true;
|
320 |
-
}
|
321 |
-
if (!$this->isOnGce) {
|
322 |
-
return array(); // return an empty array with no access token
|
323 |
-
}
|
324 |
-
|
325 |
-
$response = $this->getFromMetadata($httpHandler, $this->tokenUri);
|
326 |
-
|
327 |
-
if ($this->targetAudience) {
|
328 |
-
return ['id_token' => $response];
|
329 |
-
}
|
330 |
-
|
331 |
-
if (null === $json = json_decode($response, true)) {
|
332 |
-
throw new \Exception('Invalid JSON response');
|
333 |
-
}
|
334 |
-
|
335 |
-
// store this so we can retrieve it later
|
336 |
-
$this->lastReceivedToken = $json;
|
337 |
-
$this->lastReceivedToken['expires_at'] = time() + $json['expires_in'];
|
338 |
-
|
339 |
-
return $json;
|
340 |
-
}
|
341 |
-
|
342 |
-
/**
|
343 |
-
* @return string
|
344 |
-
*/
|
345 |
-
public function getCacheKey()
|
346 |
-
{
|
347 |
-
return self::cacheKey;
|
348 |
-
}
|
349 |
-
|
350 |
-
/**
|
351 |
-
* @return array|null
|
352 |
-
*/
|
353 |
-
public function getLastReceivedToken()
|
354 |
-
{
|
355 |
-
if ($this->lastReceivedToken) {
|
356 |
-
return [
|
357 |
-
'access_token' => $this->lastReceivedToken['access_token'],
|
358 |
-
'expires_at' => $this->lastReceivedToken['expires_at'],
|
359 |
-
];
|
360 |
-
}
|
361 |
-
|
362 |
-
return null;
|
363 |
-
}
|
364 |
-
|
365 |
-
/**
|
366 |
-
* Get the client name from GCE metadata.
|
367 |
-
*
|
368 |
-
* Subsequent calls will return a cached value.
|
369 |
-
*
|
370 |
-
* @param callable $httpHandler callback which delivers psr7 request
|
371 |
-
* @return string
|
372 |
-
*/
|
373 |
-
public function getClientName(callable $httpHandler = null)
|
374 |
-
{
|
375 |
-
if ($this->clientName) {
|
376 |
-
return $this->clientName;
|
377 |
-
}
|
378 |
-
|
379 |
-
$httpHandler = $httpHandler
|
380 |
-
?: HttpHandlerFactory::build(HttpClientCache::getHttpClient());
|
381 |
-
|
382 |
-
if (!$this->hasCheckedOnGce) {
|
383 |
-
$this->isOnGce = self::onGce($httpHandler);
|
384 |
-
$this->hasCheckedOnGce = true;
|
385 |
-
}
|
386 |
-
|
387 |
-
if (!$this->isOnGce) {
|
388 |
-
return '';
|
389 |
-
}
|
390 |
-
|
391 |
-
$this->clientName = $this->getFromMetadata($httpHandler, self::getClientNameUri());
|
392 |
-
|
393 |
-
return $this->clientName;
|
394 |
-
}
|
395 |
-
|
396 |
-
/**
|
397 |
-
* Sign a string using the default service account private key.
|
398 |
-
*
|
399 |
-
* This implementation uses IAM's signBlob API.
|
400 |
-
*
|
401 |
-
* @see https://cloud.google.com/iam/credentials/reference/rest/v1/projects.serviceAccounts/signBlob SignBlob
|
402 |
-
*
|
403 |
-
* @param string $stringToSign The string to sign.
|
404 |
-
* @param bool $forceOpenSsl [optional] Does not apply to this credentials
|
405 |
-
* type.
|
406 |
-
* @return string
|
407 |
-
*/
|
408 |
-
public function signBlob($stringToSign, $forceOpenSsl = false)
|
409 |
-
{
|
410 |
-
$httpHandler = HttpHandlerFactory::build(HttpClientCache::getHttpClient());
|
411 |
-
|
412 |
-
// Providing a signer is useful for testing, but it's undocumented
|
413 |
-
// because it's not something a user would generally need to do.
|
414 |
-
$signer = $this->iam ?: new Iam($httpHandler);
|
415 |
-
|
416 |
-
$email = $this->getClientName($httpHandler);
|
417 |
-
|
418 |
-
$previousToken = $this->getLastReceivedToken();
|
419 |
-
$accessToken = $previousToken
|
420 |
-
? $previousToken['access_token']
|
421 |
-
: $this->fetchAuthToken($httpHandler)['access_token'];
|
422 |
-
|
423 |
-
return $signer->signBlob($email, $accessToken, $stringToSign);
|
424 |
-
}
|
425 |
-
|
426 |
-
/**
|
427 |
-
* Fetch the default Project ID from compute engine.
|
428 |
-
*
|
429 |
-
* Returns null if called outside GCE.
|
430 |
-
*
|
431 |
-
* @param callable $httpHandler Callback which delivers psr7 request
|
432 |
-
* @return string|null
|
433 |
-
*/
|
434 |
-
public function getProjectId(callable $httpHandler = null)
|
435 |
-
{
|
436 |
-
if ($this->projectId) {
|
437 |
-
return $this->projectId;
|
438 |
-
}
|
439 |
-
|
440 |
-
$httpHandler = $httpHandler
|
441 |
-
?: HttpHandlerFactory::build(HttpClientCache::getHttpClient());
|
442 |
-
|
443 |
-
if (!$this->hasCheckedOnGce) {
|
444 |
-
$this->isOnGce = self::onGce($httpHandler);
|
445 |
-
$this->hasCheckedOnGce = true;
|
446 |
-
}
|
447 |
-
|
448 |
-
if (!$this->isOnGce) {
|
449 |
-
return null;
|
450 |
-
}
|
451 |
-
|
452 |
-
$this->projectId = $this->getFromMetadata($httpHandler, self::getProjectIdUri());
|
453 |
-
return $this->projectId;
|
454 |
-
}
|
455 |
-
|
456 |
-
/**
|
457 |
-
* Fetch the value of a GCE metadata server URI.
|
458 |
-
*
|
459 |
-
* @param callable $httpHandler An HTTP Handler to deliver PSR7 requests.
|
460 |
-
* @param string $uri The metadata URI.
|
461 |
-
* @return string
|
462 |
-
*/
|
463 |
-
private function getFromMetadata(callable $httpHandler, $uri)
|
464 |
-
{
|
465 |
-
$resp = $httpHandler(
|
466 |
-
new Request(
|
467 |
-
'GET',
|
468 |
-
$uri,
|
469 |
-
[self::FLAVOR_HEADER => 'Google']
|
470 |
-
)
|
471 |
-
);
|
472 |
-
|
473 |
-
return (string) $resp->getBody();
|
474 |
-
}
|
475 |
-
|
476 |
-
/**
|
477 |
-
* Get the quota project used for this API request
|
478 |
-
*
|
479 |
-
* @return string|null
|
480 |
-
*/
|
481 |
-
public function getQuotaProject()
|
482 |
-
{
|
483 |
-
return $this->quotaProject;
|
484 |
-
}
|
485 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/Credentials/IAMCredentials.php
DELETED
@@ -1,91 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2015 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace Google\Auth\Credentials;
|
19 |
-
|
20 |
-
/**
|
21 |
-
* Authenticates requests using IAM credentials.
|
22 |
-
*/
|
23 |
-
class IAMCredentials
|
24 |
-
{
|
25 |
-
const SELECTOR_KEY = 'x-goog-iam-authority-selector';
|
26 |
-
const TOKEN_KEY = 'x-goog-iam-authorization-token';
|
27 |
-
|
28 |
-
/**
|
29 |
-
* @var string
|
30 |
-
*/
|
31 |
-
private $selector;
|
32 |
-
|
33 |
-
/**
|
34 |
-
* @var string
|
35 |
-
*/
|
36 |
-
private $token;
|
37 |
-
|
38 |
-
/**
|
39 |
-
* @param $selector string the IAM selector
|
40 |
-
* @param $token string the IAM token
|
41 |
-
*/
|
42 |
-
public function __construct($selector, $token)
|
43 |
-
{
|
44 |
-
if (!is_string($selector)) {
|
45 |
-
throw new \InvalidArgumentException(
|
46 |
-
'selector must be a string'
|
47 |
-
);
|
48 |
-
}
|
49 |
-
if (!is_string($token)) {
|
50 |
-
throw new \InvalidArgumentException(
|
51 |
-
'token must be a string'
|
52 |
-
);
|
53 |
-
}
|
54 |
-
|
55 |
-
$this->selector = $selector;
|
56 |
-
$this->token = $token;
|
57 |
-
}
|
58 |
-
|
59 |
-
/**
|
60 |
-
* export a callback function which updates runtime metadata.
|
61 |
-
*
|
62 |
-
* @return array updateMetadata function
|
63 |
-
*/
|
64 |
-
public function getUpdateMetadataFunc()
|
65 |
-
{
|
66 |
-
return array($this, 'updateMetadata');
|
67 |
-
}
|
68 |
-
|
69 |
-
/**
|
70 |
-
* Updates metadata with the appropriate header metadata.
|
71 |
-
*
|
72 |
-
* @param array $metadata metadata hashmap
|
73 |
-
* @param string $unusedAuthUri optional auth uri
|
74 |
-
* @param callable $httpHandler callback which delivers psr7 request
|
75 |
-
* Note: this param is unused here, only included here for
|
76 |
-
* consistency with other credentials class
|
77 |
-
*
|
78 |
-
* @return array updated metadata hashmap
|
79 |
-
*/
|
80 |
-
public function updateMetadata(
|
81 |
-
$metadata,
|
82 |
-
$unusedAuthUri = null,
|
83 |
-
callable $httpHandler = null
|
84 |
-
) {
|
85 |
-
$metadata_copy = $metadata;
|
86 |
-
$metadata_copy[self::SELECTOR_KEY] = $this->selector;
|
87 |
-
$metadata_copy[self::TOKEN_KEY] = $this->token;
|
88 |
-
|
89 |
-
return $metadata_copy;
|
90 |
-
}
|
91 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/Credentials/InsecureCredentials.php
DELETED
@@ -1,70 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2018 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace Google\Auth\Credentials;
|
19 |
-
|
20 |
-
use Google\Auth\FetchAuthTokenInterface;
|
21 |
-
|
22 |
-
/**
|
23 |
-
* Provides a set of credentials that will always return an empty access token.
|
24 |
-
* This is useful for APIs which do not require authentication, for local
|
25 |
-
* service emulators, and for testing.
|
26 |
-
*/
|
27 |
-
class InsecureCredentials implements FetchAuthTokenInterface
|
28 |
-
{
|
29 |
-
/**
|
30 |
-
* @var array
|
31 |
-
*/
|
32 |
-
private $token = [
|
33 |
-
'access_token' => ''
|
34 |
-
];
|
35 |
-
|
36 |
-
/**
|
37 |
-
* Fetches the auth token. In this case it returns an empty string.
|
38 |
-
*
|
39 |
-
* @param callable $httpHandler
|
40 |
-
* @return array A set of auth related metadata, containing the following
|
41 |
-
* keys:
|
42 |
-
* - access_token (string)
|
43 |
-
*/
|
44 |
-
public function fetchAuthToken(callable $httpHandler = null)
|
45 |
-
{
|
46 |
-
return $this->token;
|
47 |
-
}
|
48 |
-
|
49 |
-
/**
|
50 |
-
* Returns the cache key. In this case it returns a null value, disabling
|
51 |
-
* caching.
|
52 |
-
*
|
53 |
-
* @return string|null
|
54 |
-
*/
|
55 |
-
public function getCacheKey()
|
56 |
-
{
|
57 |
-
return null;
|
58 |
-
}
|
59 |
-
|
60 |
-
/**
|
61 |
-
* Fetches the last received token. In this case, it returns the same empty string
|
62 |
-
* auth token.
|
63 |
-
*
|
64 |
-
* @return array
|
65 |
-
*/
|
66 |
-
public function getLastReceivedToken()
|
67 |
-
{
|
68 |
-
return $this->token;
|
69 |
-
}
|
70 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/Credentials/ServiceAccountCredentials.php
DELETED
@@ -1,259 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2015 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace Google\Auth\Credentials;
|
19 |
-
|
20 |
-
use Google\Auth\CredentialsLoader;
|
21 |
-
use Google\Auth\GetQuotaProjectInterface;
|
22 |
-
use Google\Auth\OAuth2;
|
23 |
-
use Google\Auth\ProjectIdProviderInterface;
|
24 |
-
use Google\Auth\ServiceAccountSignerTrait;
|
25 |
-
use Google\Auth\SignBlobInterface;
|
26 |
-
use InvalidArgumentException;
|
27 |
-
|
28 |
-
/**
|
29 |
-
* ServiceAccountCredentials supports authorization using a Google service
|
30 |
-
* account.
|
31 |
-
*
|
32 |
-
* (cf https://developers.google.com/accounts/docs/OAuth2ServiceAccount)
|
33 |
-
*
|
34 |
-
* It's initialized using the json key file that's downloadable from developer
|
35 |
-
* console, which should contain a private_key and client_email fields that it
|
36 |
-
* uses.
|
37 |
-
*
|
38 |
-
* Use it with AuthTokenMiddleware to authorize http requests:
|
39 |
-
*
|
40 |
-
* use Google\Auth\Credentials\ServiceAccountCredentials;
|
41 |
-
* use Google\Auth\Middleware\AuthTokenMiddleware;
|
42 |
-
* use GuzzleHttp\Client;
|
43 |
-
* use GuzzleHttp\HandlerStack;
|
44 |
-
*
|
45 |
-
* $sa = new ServiceAccountCredentials(
|
46 |
-
* 'https://www.googleapis.com/auth/taskqueue',
|
47 |
-
* '/path/to/your/json/key_file.json'
|
48 |
-
* );
|
49 |
-
* $middleware = new AuthTokenMiddleware($sa);
|
50 |
-
* $stack = HandlerStack::create();
|
51 |
-
* $stack->push($middleware);
|
52 |
-
*
|
53 |
-
* $client = new Client([
|
54 |
-
* 'handler' => $stack,
|
55 |
-
* 'base_uri' => 'https://www.googleapis.com/taskqueue/v1beta2/projects/',
|
56 |
-
* 'auth' => 'google_auth' // authorize all requests
|
57 |
-
* ]);
|
58 |
-
*
|
59 |
-
* $res = $client->get('myproject/taskqueues/myqueue');
|
60 |
-
*/
|
61 |
-
class ServiceAccountCredentials extends CredentialsLoader implements
|
62 |
-
GetQuotaProjectInterface,
|
63 |
-
SignBlobInterface,
|
64 |
-
ProjectIdProviderInterface
|
65 |
-
{
|
66 |
-
use ServiceAccountSignerTrait;
|
67 |
-
|
68 |
-
/**
|
69 |
-
* The OAuth2 instance used to conduct authorization.
|
70 |
-
*
|
71 |
-
* @var OAuth2
|
72 |
-
*/
|
73 |
-
protected $auth;
|
74 |
-
|
75 |
-
/**
|
76 |
-
* The quota project associated with the JSON credentials
|
77 |
-
*
|
78 |
-
* @var string
|
79 |
-
*/
|
80 |
-
protected $quotaProject;
|
81 |
-
|
82 |
-
/*
|
83 |
-
* @var string|null
|
84 |
-
*/
|
85 |
-
protected $projectId;
|
86 |
-
|
87 |
-
/**
|
88 |
-
* Create a new ServiceAccountCredentials.
|
89 |
-
*
|
90 |
-
* @param string|array $scope the scope of the access request, expressed
|
91 |
-
* either as an Array or as a space-delimited String.
|
92 |
-
* @param string|array $jsonKey JSON credential file path or JSON credentials
|
93 |
-
* as an associative array
|
94 |
-
* @param string $sub an email address account to impersonate, in situations when
|
95 |
-
* the service account has been delegated domain wide access.
|
96 |
-
* @param string $targetAudience The audience for the ID token.
|
97 |
-
*/
|
98 |
-
public function __construct(
|
99 |
-
$scope,
|
100 |
-
$jsonKey,
|
101 |
-
$sub = null,
|
102 |
-
$targetAudience = null
|
103 |
-
) {
|
104 |
-
if (is_string($jsonKey)) {
|
105 |
-
if (!file_exists($jsonKey)) {
|
106 |
-
throw new \InvalidArgumentException('file does not exist');
|
107 |
-
}
|
108 |
-
$jsonKeyStream = file_get_contents($jsonKey);
|
109 |
-
if (!$jsonKey = json_decode($jsonKeyStream, true)) {
|
110 |
-
throw new \LogicException('invalid json for auth config');
|
111 |
-
}
|
112 |
-
}
|
113 |
-
if (!array_key_exists('client_email', $jsonKey)) {
|
114 |
-
throw new \InvalidArgumentException(
|
115 |
-
'json key is missing the client_email field'
|
116 |
-
);
|
117 |
-
}
|
118 |
-
if (!array_key_exists('private_key', $jsonKey)) {
|
119 |
-
throw new \InvalidArgumentException(
|
120 |
-
'json key is missing the private_key field'
|
121 |
-
);
|
122 |
-
}
|
123 |
-
if (array_key_exists('quota_project', $jsonKey)) {
|
124 |
-
$this->quotaProject = (string) $jsonKey['quota_project'];
|
125 |
-
}
|
126 |
-
if ($scope && $targetAudience) {
|
127 |
-
throw new InvalidArgumentException(
|
128 |
-
'Scope and targetAudience cannot both be supplied'
|
129 |
-
);
|
130 |
-
}
|
131 |
-
$additionalClaims = [];
|
132 |
-
if ($targetAudience) {
|
133 |
-
$additionalClaims = ['target_audience' => $targetAudience];
|
134 |
-
}
|
135 |
-
$this->auth = new OAuth2([
|
136 |
-
'audience' => self::TOKEN_CREDENTIAL_URI,
|
137 |
-
'issuer' => $jsonKey['client_email'],
|
138 |
-
'scope' => $scope,
|
139 |
-
'signingAlgorithm' => 'RS256',
|
140 |
-
'signingKey' => $jsonKey['private_key'],
|
141 |
-
'sub' => $sub,
|
142 |
-
'tokenCredentialUri' => self::TOKEN_CREDENTIAL_URI,
|
143 |
-
'additionalClaims' => $additionalClaims,
|
144 |
-
]);
|
145 |
-
|
146 |
-
$this->projectId = isset($jsonKey['project_id'])
|
147 |
-
? $jsonKey['project_id']
|
148 |
-
: null;
|
149 |
-
}
|
150 |
-
|
151 |
-
/**
|
152 |
-
* @param callable $httpHandler
|
153 |
-
*
|
154 |
-
* @return array A set of auth related metadata, containing the following
|
155 |
-
* keys:
|
156 |
-
* - access_token (string)
|
157 |
-
* - expires_in (int)
|
158 |
-
* - token_type (string)
|
159 |
-
*/
|
160 |
-
public function fetchAuthToken(callable $httpHandler = null)
|
161 |
-
{
|
162 |
-
return $this->auth->fetchAuthToken($httpHandler);
|
163 |
-
}
|
164 |
-
|
165 |
-
/**
|
166 |
-
* @return string
|
167 |
-
*/
|
168 |
-
public function getCacheKey()
|
169 |
-
{
|
170 |
-
$key = $this->auth->getIssuer() . ':' . $this->auth->getCacheKey();
|
171 |
-
if ($sub = $this->auth->getSub()) {
|
172 |
-
$key .= ':' . $sub;
|
173 |
-
}
|
174 |
-
|
175 |
-
return $key;
|
176 |
-
}
|
177 |
-
|
178 |
-
/**
|
179 |
-
* @return array
|
180 |
-
*/
|
181 |
-
public function getLastReceivedToken()
|
182 |
-
{
|
183 |
-
return $this->auth->getLastReceivedToken();
|
184 |
-
}
|
185 |
-
|
186 |
-
/**
|
187 |
-
* Get the project ID from the service account keyfile.
|
188 |
-
*
|
189 |
-
* Returns null if the project ID does not exist in the keyfile.
|
190 |
-
*
|
191 |
-
* @param callable $httpHandler Not used by this credentials type.
|
192 |
-
* @return string|null
|
193 |
-
*/
|
194 |
-
public function getProjectId(callable $httpHandler = null)
|
195 |
-
{
|
196 |
-
return $this->projectId;
|
197 |
-
}
|
198 |
-
|
199 |
-
/**
|
200 |
-
* Updates metadata with the authorization token.
|
201 |
-
*
|
202 |
-
* @param array $metadata metadata hashmap
|
203 |
-
* @param string $authUri optional auth uri
|
204 |
-
* @param callable $httpHandler callback which delivers psr7 request
|
205 |
-
* @return array updated metadata hashmap
|
206 |
-
*/
|
207 |
-
public function updateMetadata(
|
208 |
-
$metadata,
|
209 |
-
$authUri = null,
|
210 |
-
callable $httpHandler = null
|
211 |
-
) {
|
212 |
-
// scope exists. use oauth implementation
|
213 |
-
$scope = $this->auth->getScope();
|
214 |
-
if (!is_null($scope)) {
|
215 |
-
return parent::updateMetadata($metadata, $authUri, $httpHandler);
|
216 |
-
}
|
217 |
-
|
218 |
-
// no scope found. create jwt with the auth uri
|
219 |
-
$credJson = array(
|
220 |
-
'private_key' => $this->auth->getSigningKey(),
|
221 |
-
'client_email' => $this->auth->getIssuer(),
|
222 |
-
);
|
223 |
-
$jwtCreds = new ServiceAccountJwtAccessCredentials($credJson);
|
224 |
-
|
225 |
-
return $jwtCreds->updateMetadata($metadata, $authUri, $httpHandler);
|
226 |
-
}
|
227 |
-
|
228 |
-
/**
|
229 |
-
* @param string $sub an email address account to impersonate, in situations when
|
230 |
-
* the service account has been delegated domain wide access.
|
231 |
-
*/
|
232 |
-
public function setSub($sub)
|
233 |
-
{
|
234 |
-
$this->auth->setSub($sub);
|
235 |
-
}
|
236 |
-
|
237 |
-
/**
|
238 |
-
* Get the client name from the keyfile.
|
239 |
-
*
|
240 |
-
* In this case, it returns the keyfile's client_email key.
|
241 |
-
*
|
242 |
-
* @param callable $httpHandler Not used by this credentials type.
|
243 |
-
* @return string
|
244 |
-
*/
|
245 |
-
public function getClientName(callable $httpHandler = null)
|
246 |
-
{
|
247 |
-
return $this->auth->getIssuer();
|
248 |
-
}
|
249 |
-
|
250 |
-
/**
|
251 |
-
* Get the quota project used for this API request
|
252 |
-
*
|
253 |
-
* @return string|null
|
254 |
-
*/
|
255 |
-
public function getQuotaProject()
|
256 |
-
{
|
257 |
-
return $this->quotaProject;
|
258 |
-
}
|
259 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php
DELETED
@@ -1,191 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2015 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace Google\Auth\Credentials;
|
19 |
-
|
20 |
-
use Google\Auth\CredentialsLoader;
|
21 |
-
use Google\Auth\GetQuotaProjectInterface;
|
22 |
-
use Google\Auth\OAuth2;
|
23 |
-
use Google\Auth\ProjectIdProviderInterface;
|
24 |
-
use Google\Auth\ServiceAccountSignerTrait;
|
25 |
-
use Google\Auth\SignBlobInterface;
|
26 |
-
|
27 |
-
/**
|
28 |
-
* Authenticates requests using Google's Service Account credentials via
|
29 |
-
* JWT Access.
|
30 |
-
*
|
31 |
-
* This class allows authorizing requests for service accounts directly
|
32 |
-
* from credentials from a json key file downloaded from the developer
|
33 |
-
* console (via 'Generate new Json Key'). It is not part of any OAuth2
|
34 |
-
* flow, rather it creates a JWT and sends that as a credential.
|
35 |
-
*/
|
36 |
-
class ServiceAccountJwtAccessCredentials extends CredentialsLoader implements
|
37 |
-
GetQuotaProjectInterface,
|
38 |
-
SignBlobInterface,
|
39 |
-
ProjectIdProviderInterface
|
40 |
-
{
|
41 |
-
use ServiceAccountSignerTrait;
|
42 |
-
|
43 |
-
/**
|
44 |
-
* The OAuth2 instance used to conduct authorization.
|
45 |
-
*
|
46 |
-
* @var OAuth2
|
47 |
-
*/
|
48 |
-
protected $auth;
|
49 |
-
|
50 |
-
/**
|
51 |
-
* The quota project associated with the JSON credentials
|
52 |
-
*/
|
53 |
-
protected $quotaProject;
|
54 |
-
|
55 |
-
/**
|
56 |
-
* Create a new ServiceAccountJwtAccessCredentials.
|
57 |
-
*
|
58 |
-
* @param string|array $jsonKey JSON credential file path or JSON credentials
|
59 |
-
* as an associative array
|
60 |
-
*/
|
61 |
-
public function __construct($jsonKey)
|
62 |
-
{
|
63 |
-
if (is_string($jsonKey)) {
|
64 |
-
if (!file_exists($jsonKey)) {
|
65 |
-
throw new \InvalidArgumentException('file does not exist');
|
66 |
-
}
|
67 |
-
$jsonKeyStream = file_get_contents($jsonKey);
|
68 |
-
if (!$jsonKey = json_decode($jsonKeyStream, true)) {
|
69 |
-
throw new \LogicException('invalid json for auth config');
|
70 |
-
}
|
71 |
-
}
|
72 |
-
if (!array_key_exists('client_email', $jsonKey)) {
|
73 |
-
throw new \InvalidArgumentException(
|
74 |
-
'json key is missing the client_email field'
|
75 |
-
);
|
76 |
-
}
|
77 |
-
if (!array_key_exists('private_key', $jsonKey)) {
|
78 |
-
throw new \InvalidArgumentException(
|
79 |
-
'json key is missing the private_key field'
|
80 |
-
);
|
81 |
-
}
|
82 |
-
if (array_key_exists('quota_project', $jsonKey)) {
|
83 |
-
$this->quotaProject = (string) $jsonKey['quota_project'];
|
84 |
-
}
|
85 |
-
$this->auth = new OAuth2([
|
86 |
-
'issuer' => $jsonKey['client_email'],
|
87 |
-
'sub' => $jsonKey['client_email'],
|
88 |
-
'signingAlgorithm' => 'RS256',
|
89 |
-
'signingKey' => $jsonKey['private_key'],
|
90 |
-
]);
|
91 |
-
|
92 |
-
$this->projectId = isset($jsonKey['project_id'])
|
93 |
-
? $jsonKey['project_id']
|
94 |
-
: null;
|
95 |
-
}
|
96 |
-
|
97 |
-
/**
|
98 |
-
* Updates metadata with the authorization token.
|
99 |
-
*
|
100 |
-
* @param array $metadata metadata hashmap
|
101 |
-
* @param string $authUri optional auth uri
|
102 |
-
* @param callable $httpHandler callback which delivers psr7 request
|
103 |
-
* @return array updated metadata hashmap
|
104 |
-
*/
|
105 |
-
public function updateMetadata(
|
106 |
-
$metadata,
|
107 |
-
$authUri = null,
|
108 |
-
callable $httpHandler = null
|
109 |
-
) {
|
110 |
-
if (empty($authUri)) {
|
111 |
-
return $metadata;
|
112 |
-
}
|
113 |
-
|
114 |
-
$this->auth->setAudience($authUri);
|
115 |
-
|
116 |
-
return parent::updateMetadata($metadata, $authUri, $httpHandler);
|
117 |
-
}
|
118 |
-
|
119 |
-
/**
|
120 |
-
* Implements FetchAuthTokenInterface#fetchAuthToken.
|
121 |
-
*
|
122 |
-
* @param callable $httpHandler
|
123 |
-
*
|
124 |
-
* @return array|void A set of auth related metadata, containing the
|
125 |
-
* following keys:
|
126 |
-
* - access_token (string)
|
127 |
-
*/
|
128 |
-
public function fetchAuthToken(callable $httpHandler = null)
|
129 |
-
{
|
130 |
-
$audience = $this->auth->getAudience();
|
131 |
-
if (empty($audience)) {
|
132 |
-
return null;
|
133 |
-
}
|
134 |
-
|
135 |
-
$access_token = $this->auth->toJwt();
|
136 |
-
|
137 |
-
return array('access_token' => $access_token);
|
138 |
-
}
|
139 |
-
|
140 |
-
/**
|
141 |
-
* @return string
|
142 |
-
*/
|
143 |
-
public function getCacheKey()
|
144 |
-
{
|
145 |
-
return $this->auth->getCacheKey();
|
146 |
-
}
|
147 |
-
|
148 |
-
/**
|
149 |
-
* @return array
|
150 |
-
*/
|
151 |
-
public function getLastReceivedToken()
|
152 |
-
{
|
153 |
-
return $this->auth->getLastReceivedToken();
|
154 |
-
}
|
155 |
-
|
156 |
-
/**
|
157 |
-
* Get the project ID from the service account keyfile.
|
158 |
-
*
|
159 |
-
* Returns null if the project ID does not exist in the keyfile.
|
160 |
-
*
|
161 |
-
* @param callable $httpHandler Not used by this credentials type.
|
162 |
-
* @return string|null
|
163 |
-
*/
|
164 |
-
public function getProjectId(callable $httpHandler = null)
|
165 |
-
{
|
166 |
-
return $this->projectId;
|
167 |
-
}
|
168 |
-
|
169 |
-
/**
|
170 |
-
* Get the client name from the keyfile.
|
171 |
-
*
|
172 |
-
* In this case, it returns the keyfile's client_email key.
|
173 |
-
*
|
174 |
-
* @param callable $httpHandler Not used by this credentials type.
|
175 |
-
* @return string
|
176 |
-
*/
|
177 |
-
public function getClientName(callable $httpHandler = null)
|
178 |
-
{
|
179 |
-
return $this->auth->getIssuer();
|
180 |
-
}
|
181 |
-
|
182 |
-
/**
|
183 |
-
* Get the quota project used for this API request
|
184 |
-
*
|
185 |
-
* @return string|null
|
186 |
-
*/
|
187 |
-
public function getQuotaProject()
|
188 |
-
{
|
189 |
-
return $this->quotaProject;
|
190 |
-
}
|
191 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/Credentials/UserRefreshCredentials.php
DELETED
@@ -1,138 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2015 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace Google\Auth\Credentials;
|
19 |
-
|
20 |
-
use Google\Auth\CredentialsLoader;
|
21 |
-
use Google\Auth\GetQuotaProjectInterface;
|
22 |
-
use Google\Auth\OAuth2;
|
23 |
-
|
24 |
-
/**
|
25 |
-
* Authenticates requests using User Refresh credentials.
|
26 |
-
*
|
27 |
-
* This class allows authorizing requests from user refresh tokens.
|
28 |
-
*
|
29 |
-
* This the end of the result of a 3LO flow. E.g, the end result of
|
30 |
-
* 'gcloud auth login' saves a file with these contents in well known
|
31 |
-
* location
|
32 |
-
*
|
33 |
-
* @see [Application Default Credentials](http://goo.gl/mkAHpZ)
|
34 |
-
*/
|
35 |
-
class UserRefreshCredentials extends CredentialsLoader implements GetQuotaProjectInterface
|
36 |
-
{
|
37 |
-
/**
|
38 |
-
* The OAuth2 instance used to conduct authorization.
|
39 |
-
*
|
40 |
-
* @var OAuth2
|
41 |
-
*/
|
42 |
-
protected $auth;
|
43 |
-
|
44 |
-
/**
|
45 |
-
* The quota project associated with the JSON credentials
|
46 |
-
*/
|
47 |
-
protected $quotaProject;
|
48 |
-
|
49 |
-
/**
|
50 |
-
* Create a new UserRefreshCredentials.
|
51 |
-
*
|
52 |
-
* @param string|array $scope the scope of the access request, expressed
|
53 |
-
* either as an Array or as a space-delimited String.
|
54 |
-
* @param string|array $jsonKey JSON credential file path or JSON credentials
|
55 |
-
* as an associative array
|
56 |
-
*/
|
57 |
-
public function __construct(
|
58 |
-
$scope,
|
59 |
-
$jsonKey
|
60 |
-
) {
|
61 |
-
if (is_string($jsonKey)) {
|
62 |
-
if (!file_exists($jsonKey)) {
|
63 |
-
throw new \InvalidArgumentException('file does not exist');
|
64 |
-
}
|
65 |
-
$jsonKeyStream = file_get_contents($jsonKey);
|
66 |
-
if (!$jsonKey = json_decode($jsonKeyStream, true)) {
|
67 |
-
throw new \LogicException('invalid json for auth config');
|
68 |
-
}
|
69 |
-
}
|
70 |
-
if (!array_key_exists('client_id', $jsonKey)) {
|
71 |
-
throw new \InvalidArgumentException(
|
72 |
-
'json key is missing the client_id field'
|
73 |
-
);
|
74 |
-
}
|
75 |
-
if (!array_key_exists('client_secret', $jsonKey)) {
|
76 |
-
throw new \InvalidArgumentException(
|
77 |
-
'json key is missing the client_secret field'
|
78 |
-
);
|
79 |
-
}
|
80 |
-
if (!array_key_exists('refresh_token', $jsonKey)) {
|
81 |
-
throw new \InvalidArgumentException(
|
82 |
-
'json key is missing the refresh_token field'
|
83 |
-
);
|
84 |
-
}
|
85 |
-
$this->auth = new OAuth2([
|
86 |
-
'clientId' => $jsonKey['client_id'],
|
87 |
-
'clientSecret' => $jsonKey['client_secret'],
|
88 |
-
'refresh_token' => $jsonKey['refresh_token'],
|
89 |
-
'scope' => $scope,
|
90 |
-
'tokenCredentialUri' => self::TOKEN_CREDENTIAL_URI,
|
91 |
-
]);
|
92 |
-
if (array_key_exists('quota_project', $jsonKey)) {
|
93 |
-
$this->quotaProject = (string) $jsonKey['quota_project'];
|
94 |
-
}
|
95 |
-
}
|
96 |
-
|
97 |
-
/**
|
98 |
-
* @param callable $httpHandler
|
99 |
-
*
|
100 |
-
* @return array A set of auth related metadata, containing the following
|
101 |
-
* keys:
|
102 |
-
* - access_token (string)
|
103 |
-
* - expires_in (int)
|
104 |
-
* - scope (string)
|
105 |
-
* - token_type (string)
|
106 |
-
* - id_token (string)
|
107 |
-
*/
|
108 |
-
public function fetchAuthToken(callable $httpHandler = null)
|
109 |
-
{
|
110 |
-
return $this->auth->fetchAuthToken($httpHandler);
|
111 |
-
}
|
112 |
-
|
113 |
-
/**
|
114 |
-
* @return string
|
115 |
-
*/
|
116 |
-
public function getCacheKey()
|
117 |
-
{
|
118 |
-
return $this->auth->getClientId() . ':' . $this->auth->getCacheKey();
|
119 |
-
}
|
120 |
-
|
121 |
-
/**
|
122 |
-
* @return array
|
123 |
-
*/
|
124 |
-
public function getLastReceivedToken()
|
125 |
-
{
|
126 |
-
return $this->auth->getLastReceivedToken();
|
127 |
-
}
|
128 |
-
|
129 |
-
/**
|
130 |
-
* Get the quota project used for this API request
|
131 |
-
*
|
132 |
-
* @return string|null
|
133 |
-
*/
|
134 |
-
public function getQuotaProject()
|
135 |
-
{
|
136 |
-
return $this->quotaProject;
|
137 |
-
}
|
138 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/CredentialsLoader.php
DELETED
@@ -1,235 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2015 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace Google\Auth;
|
19 |
-
|
20 |
-
use Google\Auth\Credentials\InsecureCredentials;
|
21 |
-
use Google\Auth\Credentials\ServiceAccountCredentials;
|
22 |
-
use Google\Auth\Credentials\UserRefreshCredentials;
|
23 |
-
use GuzzleHttp\ClientInterface;
|
24 |
-
|
25 |
-
/**
|
26 |
-
* CredentialsLoader contains the behaviour used to locate and find default
|
27 |
-
* credentials files on the file system.
|
28 |
-
*/
|
29 |
-
abstract class CredentialsLoader implements FetchAuthTokenInterface
|
30 |
-
{
|
31 |
-
const TOKEN_CREDENTIAL_URI = 'https://oauth2.googleapis.com/token';
|
32 |
-
const ENV_VAR = 'GOOGLE_APPLICATION_CREDENTIALS';
|
33 |
-
const WELL_KNOWN_PATH = 'gcloud/application_default_credentials.json';
|
34 |
-
const NON_WINDOWS_WELL_KNOWN_PATH_BASE = '.config';
|
35 |
-
const AUTH_METADATA_KEY = 'authorization';
|
36 |
-
|
37 |
-
/**
|
38 |
-
* @param string $cause
|
39 |
-
* @return string
|
40 |
-
*/
|
41 |
-
private static function unableToReadEnv($cause)
|
42 |
-
{
|
43 |
-
$msg = 'Unable to read the credential file specified by ';
|
44 |
-
$msg .= ' GOOGLE_APPLICATION_CREDENTIALS: ';
|
45 |
-
$msg .= $cause;
|
46 |
-
|
47 |
-
return $msg;
|
48 |
-
}
|
49 |
-
|
50 |
-
/**
|
51 |
-
* @return bool
|
52 |
-
*/
|
53 |
-
private static function isOnWindows()
|
54 |
-
{
|
55 |
-
return strtoupper(substr(PHP_OS, 0, 3)) === 'WIN';
|
56 |
-
}
|
57 |
-
|
58 |
-
/**
|
59 |
-
* Returns the currently available major Guzzle version.
|
60 |
-
*
|
61 |
-
* @return int
|
62 |
-
*/
|
63 |
-
private static function getGuzzleMajorVersion()
|
64 |
-
{
|
65 |
-
if (defined('GuzzleHttp\ClientInterface::MAJOR_VERSION')) {
|
66 |
-
return ClientInterface::MAJOR_VERSION;
|
67 |
-
}
|
68 |
-
|
69 |
-
if (defined('GuzzleHttp\ClientInterface::VERSION')) {
|
70 |
-
return (int) substr(ClientInterface::VERSION, 0, 1);
|
71 |
-
}
|
72 |
-
|
73 |
-
throw new \Exception('Version not supported');
|
74 |
-
}
|
75 |
-
|
76 |
-
/**
|
77 |
-
* Load a JSON key from the path specified in the environment.
|
78 |
-
*
|
79 |
-
* Load a JSON key from the path specified in the environment
|
80 |
-
* variable GOOGLE_APPLICATION_CREDENTIALS. Return null if
|
81 |
-
* GOOGLE_APPLICATION_CREDENTIALS is not specified.
|
82 |
-
*
|
83 |
-
* @return array|null JSON key | null
|
84 |
-
*/
|
85 |
-
public static function fromEnv()
|
86 |
-
{
|
87 |
-
$path = getenv(self::ENV_VAR);
|
88 |
-
if (empty($path)) {
|
89 |
-
return;
|
90 |
-
}
|
91 |
-
if (!file_exists($path)) {
|
92 |
-
$cause = 'file ' . $path . ' does not exist';
|
93 |
-
throw new \DomainException(self::unableToReadEnv($cause));
|
94 |
-
}
|
95 |
-
$jsonKey = file_get_contents($path);
|
96 |
-
return json_decode($jsonKey, true);
|
97 |
-
}
|
98 |
-
|
99 |
-
/**
|
100 |
-
* Load a JSON key from a well known path.
|
101 |
-
*
|
102 |
-
* The well known path is OS dependent:
|
103 |
-
*
|
104 |
-
* * windows: %APPDATA%/gcloud/application_default_credentials.json
|
105 |
-
* * others: $HOME/.config/gcloud/application_default_credentials.json
|
106 |
-
*
|
107 |
-
* If the file does not exist, this returns null.
|
108 |
-
*
|
109 |
-
* @return array|null JSON key | null
|
110 |
-
*/
|
111 |
-
public static function fromWellKnownFile()
|
112 |
-
{
|
113 |
-
$rootEnv = self::isOnWindows() ? 'APPDATA' : 'HOME';
|
114 |
-
$path = [getenv($rootEnv)];
|
115 |
-
if (!self::isOnWindows()) {
|
116 |
-
$path[] = self::NON_WINDOWS_WELL_KNOWN_PATH_BASE;
|
117 |
-
}
|
118 |
-
$path[] = self::WELL_KNOWN_PATH;
|
119 |
-
$path = implode(DIRECTORY_SEPARATOR, $path);
|
120 |
-
if (!file_exists($path)) {
|
121 |
-
return;
|
122 |
-
}
|
123 |
-
$jsonKey = file_get_contents($path);
|
124 |
-
return json_decode($jsonKey, true);
|
125 |
-
}
|
126 |
-
|
127 |
-
/**
|
128 |
-
* Create a new Credentials instance.
|
129 |
-
*
|
130 |
-
* @param string|array $scope the scope of the access request, expressed
|
131 |
-
* either as an Array or as a space-delimited String.
|
132 |
-
* @param array $jsonKey the JSON credentials.
|
133 |
-
* @return ServiceAccountCredentials|UserRefreshCredentials
|
134 |
-
*/
|
135 |
-
public static function makeCredentials($scope, array $jsonKey)
|
136 |
-
{
|
137 |
-
if (!array_key_exists('type', $jsonKey)) {
|
138 |
-
throw new \InvalidArgumentException('json key is missing the type field');
|
139 |
-
}
|
140 |
-
|
141 |
-
if ($jsonKey['type'] == 'service_account') {
|
142 |
-
return new ServiceAccountCredentials($scope, $jsonKey);
|
143 |
-
}
|
144 |
-
|
145 |
-
if ($jsonKey['type'] == 'authorized_user') {
|
146 |
-
return new UserRefreshCredentials($scope, $jsonKey);
|
147 |
-
}
|
148 |
-
|
149 |
-
throw new \InvalidArgumentException('invalid value in the type field');
|
150 |
-
}
|
151 |
-
|
152 |
-
/**
|
153 |
-
* Create an authorized HTTP Client from an instance of FetchAuthTokenInterface.
|
154 |
-
*
|
155 |
-
* @param FetchAuthTokenInterface $fetcher is used to fetch the auth token
|
156 |
-
* @param array $httpClientOptions (optional) Array of request options to apply.
|
157 |
-
* @param callable $httpHandler (optional) http client to fetch the token.
|
158 |
-
* @param callable $tokenCallback (optional) function to be called when a new token is fetched.
|
159 |
-
* @return \GuzzleHttp\Client
|
160 |
-
*/
|
161 |
-
public static function makeHttpClient(
|
162 |
-
FetchAuthTokenInterface $fetcher,
|
163 |
-
array $httpClientOptions = [],
|
164 |
-
callable $httpHandler = null,
|
165 |
-
callable $tokenCallback = null
|
166 |
-
) {
|
167 |
-
if (self::getGuzzleMajorVersion() === 5) {
|
168 |
-
$client = new \GuzzleHttp\Client($httpClientOptions);
|
169 |
-
$client->setDefaultOption('auth', 'google_auth');
|
170 |
-
$subscriber = new Subscriber\AuthTokenSubscriber(
|
171 |
-
$fetcher,
|
172 |
-
$httpHandler,
|
173 |
-
$tokenCallback
|
174 |
-
);
|
175 |
-
$client->getEmitter()->attach($subscriber);
|
176 |
-
return $client;
|
177 |
-
}
|
178 |
-
|
179 |
-
$middleware = new Middleware\AuthTokenMiddleware(
|
180 |
-
$fetcher,
|
181 |
-
$httpHandler,
|
182 |
-
$tokenCallback
|
183 |
-
);
|
184 |
-
$stack = \GuzzleHttp\HandlerStack::create();
|
185 |
-
$stack->push($middleware);
|
186 |
-
|
187 |
-
return new \GuzzleHttp\Client([
|
188 |
-
'handler' => $stack,
|
189 |
-
'auth' => 'google_auth',
|
190 |
-
] + $httpClientOptions);
|
191 |
-
}
|
192 |
-
|
193 |
-
/**
|
194 |
-
* Create a new instance of InsecureCredentials.
|
195 |
-
*
|
196 |
-
* @return InsecureCredentials
|
197 |
-
*/
|
198 |
-
public static function makeInsecureCredentials()
|
199 |
-
{
|
200 |
-
return new InsecureCredentials();
|
201 |
-
}
|
202 |
-
|
203 |
-
/**
|
204 |
-
* export a callback function which updates runtime metadata.
|
205 |
-
*
|
206 |
-
* @return array updateMetadata function
|
207 |
-
*/
|
208 |
-
public function getUpdateMetadataFunc()
|
209 |
-
{
|
210 |
-
return array($this, 'updateMetadata');
|
211 |
-
}
|
212 |
-
|
213 |
-
/**
|
214 |
-
* Updates metadata with the authorization token.
|
215 |
-
*
|
216 |
-
* @param array $metadata metadata hashmap
|
217 |
-
* @param string $authUri optional auth uri
|
218 |
-
* @param callable $httpHandler callback which delivers psr7 request
|
219 |
-
* @return array updated metadata hashmap
|
220 |
-
*/
|
221 |
-
public function updateMetadata(
|
222 |
-
$metadata,
|
223 |
-
$authUri = null,
|
224 |
-
callable $httpHandler = null
|
225 |
-
) {
|
226 |
-
$result = $this->fetchAuthToken($httpHandler);
|
227 |
-
if (!isset($result['access_token'])) {
|
228 |
-
return $metadata;
|
229 |
-
}
|
230 |
-
$metadata_copy = $metadata;
|
231 |
-
$metadata_copy[self::AUTH_METADATA_KEY] = array('Bearer ' . $result['access_token']);
|
232 |
-
|
233 |
-
return $metadata_copy;
|
234 |
-
}
|
235 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/FetchAuthTokenCache.php
DELETED
@@ -1,191 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2010 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace Google\Auth;
|
19 |
-
|
20 |
-
use Psr\Cache\CacheItemPoolInterface;
|
21 |
-
|
22 |
-
/**
|
23 |
-
* A class to implement caching for any object implementing
|
24 |
-
* FetchAuthTokenInterface
|
25 |
-
*/
|
26 |
-
class FetchAuthTokenCache implements
|
27 |
-
FetchAuthTokenInterface,
|
28 |
-
GetQuotaProjectInterface,
|
29 |
-
SignBlobInterface,
|
30 |
-
ProjectIdProviderInterface
|
31 |
-
{
|
32 |
-
use CacheTrait;
|
33 |
-
|
34 |
-
/**
|
35 |
-
* @var FetchAuthTokenInterface
|
36 |
-
*/
|
37 |
-
private $fetcher;
|
38 |
-
|
39 |
-
/**
|
40 |
-
* @var array
|
41 |
-
*/
|
42 |
-
private $cacheConfig;
|
43 |
-
|
44 |
-
/**
|
45 |
-
* @var CacheItemPoolInterface
|
46 |
-
*/
|
47 |
-
private $cache;
|
48 |
-
|
49 |
-
/**
|
50 |
-
* @param FetchAuthTokenInterface $fetcher A credentials fetcher
|
51 |
-
* @param array $cacheConfig Configuration for the cache
|
52 |
-
* @param CacheItemPoolInterface $cache
|
53 |
-
*/
|
54 |
-
public function __construct(
|
55 |
-
FetchAuthTokenInterface $fetcher,
|
56 |
-
array $cacheConfig = null,
|
57 |
-
CacheItemPoolInterface $cache
|
58 |
-
) {
|
59 |
-
$this->fetcher = $fetcher;
|
60 |
-
$this->cache = $cache;
|
61 |
-
$this->cacheConfig = array_merge([
|
62 |
-
'lifetime' => 1500,
|
63 |
-
'prefix' => '',
|
64 |
-
], (array) $cacheConfig);
|
65 |
-
}
|
66 |
-
|
67 |
-
/**
|
68 |
-
* Implements FetchAuthTokenInterface#fetchAuthToken.
|
69 |
-
*
|
70 |
-
* Checks the cache for a valid auth token and fetches the auth tokens
|
71 |
-
* from the supplied fetcher.
|
72 |
-
*
|
73 |
-
* @param callable $httpHandler callback which delivers psr7 request
|
74 |
-
* @return array the response
|
75 |
-
* @throws \Exception
|
76 |
-
*/
|
77 |
-
public function fetchAuthToken(callable $httpHandler = null)
|
78 |
-
{
|
79 |
-
// Use the cached value if its available.
|
80 |
-
//
|
81 |
-
// TODO: correct caching; update the call to setCachedValue to set the expiry
|
82 |
-
// to the value returned with the auth token.
|
83 |
-
//
|
84 |
-
// TODO: correct caching; enable the cache to be cleared.
|
85 |
-
$cacheKey = $this->fetcher->getCacheKey();
|
86 |
-
$cached = $this->getCachedValue($cacheKey);
|
87 |
-
if (is_array($cached)) {
|
88 |
-
if (empty($cached['expires_at'])) {
|
89 |
-
// If there is no expiration data, assume token is not expired.
|
90 |
-
// (for JwtAccess and ID tokens)
|
91 |
-
return $cached;
|
92 |
-
}
|
93 |
-
if (time() < $cached['expires_at']) {
|
94 |
-
// access token is not expired
|
95 |
-
return $cached;
|
96 |
-
}
|
97 |
-
}
|
98 |
-
|
99 |
-
$auth_token = $this->fetcher->fetchAuthToken($httpHandler);
|
100 |
-
|
101 |
-
if (isset($auth_token['access_token']) ||
|
102 |
-
isset($auth_token['id_token'])) {
|
103 |
-
$this->setCachedValue($cacheKey, $auth_token);
|
104 |
-
}
|
105 |
-
|
106 |
-
return $auth_token;
|
107 |
-
}
|
108 |
-
|
109 |
-
/**
|
110 |
-
* @return string
|
111 |
-
*/
|
112 |
-
public function getCacheKey()
|
113 |
-
{
|
114 |
-
return $this->getFullCacheKey($this->fetcher->getCacheKey());
|
115 |
-
}
|
116 |
-
|
117 |
-
/**
|
118 |
-
* @return array|null
|
119 |
-
*/
|
120 |
-
public function getLastReceivedToken()
|
121 |
-
{
|
122 |
-
return $this->fetcher->getLastReceivedToken();
|
123 |
-
}
|
124 |
-
|
125 |
-
/**
|
126 |
-
* Get the client name from the fetcher.
|
127 |
-
*
|
128 |
-
* @param callable $httpHandler An HTTP handler to deliver PSR7 requests.
|
129 |
-
* @return string
|
130 |
-
*/
|
131 |
-
public function getClientName(callable $httpHandler = null)
|
132 |
-
{
|
133 |
-
return $this->fetcher->getClientName($httpHandler);
|
134 |
-
}
|
135 |
-
|
136 |
-
/**
|
137 |
-
* Sign a blob using the fetcher.
|
138 |
-
*
|
139 |
-
* @param string $stringToSign The string to sign.
|
140 |
-
* @param bool $forceOpenSsl Require use of OpenSSL for local signing. Does
|
141 |
-
* not apply to signing done using external services. **Defaults to**
|
142 |
-
* `false`.
|
143 |
-
* @return string The resulting signature.
|
144 |
-
* @throws \RuntimeException If the fetcher does not implement
|
145 |
-
* `Google\Auth\SignBlobInterface`.
|
146 |
-
*/
|
147 |
-
public function signBlob($stringToSign, $forceOpenSsl = false)
|
148 |
-
{
|
149 |
-
if (!$this->fetcher instanceof SignBlobInterface) {
|
150 |
-
throw new \RuntimeException(
|
151 |
-
'Credentials fetcher does not implement ' .
|
152 |
-
'Google\Auth\SignBlobInterface'
|
153 |
-
);
|
154 |
-
}
|
155 |
-
|
156 |
-
return $this->fetcher->signBlob($stringToSign, $forceOpenSsl);
|
157 |
-
}
|
158 |
-
|
159 |
-
/**
|
160 |
-
* Get the quota project used for this API request from the credentials
|
161 |
-
* fetcher.
|
162 |
-
*
|
163 |
-
* @return string|null
|
164 |
-
*/
|
165 |
-
public function getQuotaProject()
|
166 |
-
{
|
167 |
-
if ($this->fetcher instanceof GetQuotaProjectInterface) {
|
168 |
-
return $this->fetcher->getQuotaProject();
|
169 |
-
}
|
170 |
-
}
|
171 |
-
|
172 |
-
/*
|
173 |
-
* Get the Project ID from the fetcher.
|
174 |
-
*
|
175 |
-
* @param callable $httpHandler Callback which delivers psr7 request
|
176 |
-
* @return string|null
|
177 |
-
* @throws \RuntimeException If the fetcher does not implement
|
178 |
-
* `Google\Auth\ProvidesProjectIdInterface`.
|
179 |
-
*/
|
180 |
-
public function getProjectId(callable $httpHandler = null)
|
181 |
-
{
|
182 |
-
if (!$this->fetcher instanceof ProjectIdProviderInterface) {
|
183 |
-
throw new \RuntimeException(
|
184 |
-
'Credentials fetcher does not implement ' .
|
185 |
-
'Google\Auth\ProvidesProjectIdInterface'
|
186 |
-
);
|
187 |
-
}
|
188 |
-
|
189 |
-
return $this->fetcher->getProjectId($httpHandler);
|
190 |
-
}
|
191 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/FetchAuthTokenInterface.php
DELETED
@@ -1,54 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2015 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace Google\Auth;
|
19 |
-
|
20 |
-
/**
|
21 |
-
* An interface implemented by objects that can fetch auth tokens.
|
22 |
-
*/
|
23 |
-
interface FetchAuthTokenInterface
|
24 |
-
{
|
25 |
-
/**
|
26 |
-
* Fetches the auth tokens based on the current state.
|
27 |
-
*
|
28 |
-
* @param callable $httpHandler callback which delivers psr7 request
|
29 |
-
* @return array a hash of auth tokens
|
30 |
-
*/
|
31 |
-
public function fetchAuthToken(callable $httpHandler = null);
|
32 |
-
|
33 |
-
/**
|
34 |
-
* Obtains a key that can used to cache the results of #fetchAuthToken.
|
35 |
-
*
|
36 |
-
* If the value is empty, the auth token is not cached.
|
37 |
-
*
|
38 |
-
* @return string a key that may be used to cache the auth token.
|
39 |
-
*/
|
40 |
-
public function getCacheKey();
|
41 |
-
|
42 |
-
/**
|
43 |
-
* Returns an associative array with the token and
|
44 |
-
* expiration time.
|
45 |
-
*
|
46 |
-
* @return null|array {
|
47 |
-
* The last received access token.
|
48 |
-
*
|
49 |
-
* @var string $access_token The access token string.
|
50 |
-
* @var int $expires_at The time the token expires as a UNIX timestamp.
|
51 |
-
* }
|
52 |
-
*/
|
53 |
-
public function getLastReceivedToken();
|
54 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/GetQuotaProjectInterface.php
DELETED
@@ -1,33 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2019 Google LLC
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace Google\Auth;
|
19 |
-
|
20 |
-
/**
|
21 |
-
* An interface implemented by objects that can get quota projects.
|
22 |
-
*/
|
23 |
-
interface GetQuotaProjectInterface
|
24 |
-
{
|
25 |
-
const X_GOOG_USER_PROJECT_HEADER = 'X-Goog-User-Project';
|
26 |
-
|
27 |
-
/**
|
28 |
-
* Get the quota project used for this API request
|
29 |
-
*
|
30 |
-
* @return string|null
|
31 |
-
*/
|
32 |
-
public function getQuotaProject();
|
33 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/HttpHandler/Guzzle5HttpHandler.php
DELETED
@@ -1,126 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Copyright 2015 Google Inc. All Rights Reserved.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
namespace Google\Auth\HttpHandler;
|
18 |
-
|
19 |
-
use Exception;
|
20 |
-
use GuzzleHttp\ClientInterface;
|
21 |
-
use GuzzleHttp\Message\ResponseInterface as Guzzle5ResponseInterface;
|
22 |
-
use GuzzleHttp\Promise\Promise;
|
23 |
-
use GuzzleHttp\Promise\RejectedPromise;
|
24 |
-
use GuzzleHttp\Psr7\Response;
|
25 |
-
use Psr\Http\Message\RequestInterface;
|
26 |
-
use Psr\Http\Message\ResponseInterface;
|
27 |
-
|
28 |
-
class Guzzle5HttpHandler
|
29 |
-
{
|
30 |
-
/**
|
31 |
-
* @var ClientInterface
|
32 |
-
*/
|
33 |
-
private $client;
|
34 |
-
|
35 |
-
/**
|
36 |
-
* @param ClientInterface $client
|
37 |
-
*/
|
38 |
-
public function __construct(ClientInterface $client)
|
39 |
-
{
|
40 |
-
$this->client = $client;
|
41 |
-
}
|
42 |
-
|
43 |
-
/**
|
44 |
-
* Accepts a PSR-7 Request and an array of options and returns a PSR-7 response.
|
45 |
-
*
|
46 |
-
* @param RequestInterface $request
|
47 |
-
* @param array $options
|
48 |
-
* @return ResponseInterface
|
49 |
-
*/
|
50 |
-
public function __invoke(RequestInterface $request, array $options = [])
|
51 |
-
{
|
52 |
-
$response = $this->client->send(
|
53 |
-
$this->createGuzzle5Request($request, $options)
|
54 |
-
);
|
55 |
-
|
56 |
-
return $this->createPsr7Response($response);
|
57 |
-
}
|
58 |
-
|
59 |
-
/**
|
60 |
-
* Accepts a PSR-7 request and an array of options and returns a PromiseInterface
|
61 |
-
*
|
62 |
-
* @param RequestInterface $request
|
63 |
-
* @param array $options
|
64 |
-
* @return Promise
|
65 |
-
*/
|
66 |
-
public function async(RequestInterface $request, array $options = [])
|
67 |
-
{
|
68 |
-
if (!class_exists('GuzzleHttp\Promise\Promise')) {
|
69 |
-
throw new Exception('Install guzzlehttp/promises to use async with Guzzle 5');
|
70 |
-
}
|
71 |
-
|
72 |
-
$futureResponse = $this->client->send(
|
73 |
-
$this->createGuzzle5Request(
|
74 |
-
$request,
|
75 |
-
['future' => true] + $options
|
76 |
-
)
|
77 |
-
);
|
78 |
-
|
79 |
-
$promise = new Promise(
|
80 |
-
function () use ($futureResponse) {
|
81 |
-
try {
|
82 |
-
$futureResponse->wait();
|
83 |
-
} catch (Exception $e) {
|
84 |
-
// The promise is already delivered when the exception is
|
85 |
-
// thrown, so don't rethrow it.
|
86 |
-
}
|
87 |
-
},
|
88 |
-
[$futureResponse, 'cancel']
|
89 |
-
);
|
90 |
-
|
91 |
-
$futureResponse->then([$promise, 'resolve'], [$promise, 'reject']);
|
92 |
-
|
93 |
-
return $promise->then(
|
94 |
-
function (Guzzle5ResponseInterface $response) {
|
95 |
-
// Adapt the Guzzle 5 Response to a PSR-7 Response.
|
96 |
-
return $this->createPsr7Response($response);
|
97 |
-
},
|
98 |
-
function (Exception $e) {
|
99 |
-
return new RejectedPromise($e);
|
100 |
-
}
|
101 |
-
);
|
102 |
-
}
|
103 |
-
|
104 |
-
private function createGuzzle5Request(RequestInterface $request, array $options)
|
105 |
-
{
|
106 |
-
return $this->client->createRequest(
|
107 |
-
$request->getMethod(),
|
108 |
-
$request->getUri(),
|
109 |
-
array_merge_recursive([
|
110 |
-
'headers' => $request->getHeaders(),
|
111 |
-
'body' => $request->getBody(),
|
112 |
-
], $options)
|
113 |
-
);
|
114 |
-
}
|
115 |
-
|
116 |
-
private function createPsr7Response(Guzzle5ResponseInterface $response)
|
117 |
-
{
|
118 |
-
return new Response(
|
119 |
-
$response->getStatusCode(),
|
120 |
-
$response->getHeaders() ?: [],
|
121 |
-
$response->getBody(),
|
122 |
-
$response->getProtocolVersion(),
|
123 |
-
$response->getReasonPhrase()
|
124 |
-
);
|
125 |
-
}
|
126 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/HttpHandler/Guzzle6HttpHandler.php
DELETED
@@ -1,62 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Copyright 2015 Google Inc. All Rights Reserved.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
namespace Google\Auth\HttpHandler;
|
18 |
-
|
19 |
-
use GuzzleHttp\ClientInterface;
|
20 |
-
use Psr\Http\Message\RequestInterface;
|
21 |
-
use Psr\Http\Message\ResponseInterface;
|
22 |
-
|
23 |
-
class Guzzle6HttpHandler
|
24 |
-
{
|
25 |
-
/**
|
26 |
-
* @var ClientInterface
|
27 |
-
*/
|
28 |
-
private $client;
|
29 |
-
|
30 |
-
/**
|
31 |
-
* @param ClientInterface $client
|
32 |
-
*/
|
33 |
-
public function __construct(ClientInterface $client)
|
34 |
-
{
|
35 |
-
$this->client = $client;
|
36 |
-
}
|
37 |
-
|
38 |
-
/**
|
39 |
-
* Accepts a PSR-7 request and an array of options and returns a PSR-7 response.
|
40 |
-
*
|
41 |
-
* @param RequestInterface $request
|
42 |
-
* @param array $options
|
43 |
-
* @return ResponseInterface
|
44 |
-
*/
|
45 |
-
public function __invoke(RequestInterface $request, array $options = [])
|
46 |
-
{
|
47 |
-
return $this->client->send($request, $options);
|
48 |
-
}
|
49 |
-
|
50 |
-
/**
|
51 |
-
* Accepts a PSR-7 request and an array of options and returns a PromiseInterface
|
52 |
-
*
|
53 |
-
* @param RequestInterface $request
|
54 |
-
* @param array $options
|
55 |
-
*
|
56 |
-
* @return \GuzzleHttp\Promise\PromiseInterface
|
57 |
-
*/
|
58 |
-
public function async(RequestInterface $request, array $options = [])
|
59 |
-
{
|
60 |
-
return $this->client->sendAsync($request, $options);
|
61 |
-
}
|
62 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/HttpHandler/Guzzle7HttpHandler.php
DELETED
@@ -1,21 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Copyright 2020 Google LLC
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
namespace Google\Auth\HttpHandler;
|
18 |
-
|
19 |
-
class Guzzle7HttpHandler extends Guzzle6HttpHandler
|
20 |
-
{
|
21 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/HttpHandler/HttpClientCache.php
DELETED
@@ -1,54 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2019 Google LLC
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace Google\Auth\HttpHandler;
|
19 |
-
|
20 |
-
use GuzzleHttp\ClientInterface;
|
21 |
-
|
22 |
-
/**
|
23 |
-
* Stores an HTTP Client in order to prevent multiple instantiations.
|
24 |
-
*/
|
25 |
-
class HttpClientCache
|
26 |
-
{
|
27 |
-
/**
|
28 |
-
* @var ClientInterface|null
|
29 |
-
*/
|
30 |
-
private static $httpClient;
|
31 |
-
|
32 |
-
/**
|
33 |
-
* Cache an HTTP Client for later calls.
|
34 |
-
*
|
35 |
-
* Passing null will unset the cached client.
|
36 |
-
*
|
37 |
-
* @param ClientInterface|null $client
|
38 |
-
* @return void
|
39 |
-
*/
|
40 |
-
public static function setHttpClient(ClientInterface $client = null)
|
41 |
-
{
|
42 |
-
self::$httpClient = $client;
|
43 |
-
}
|
44 |
-
|
45 |
-
/**
|
46 |
-
* Get the stored HTTP Client, or null.
|
47 |
-
*
|
48 |
-
* @return ClientInterface|null
|
49 |
-
*/
|
50 |
-
public static function getHttpClient()
|
51 |
-
{
|
52 |
-
return self::$httpClient;
|
53 |
-
}
|
54 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/HttpHandler/HttpHandlerFactory.php
DELETED
@@ -1,53 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Copyright 2015 Google Inc. All Rights Reserved.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
namespace Google\Auth\HttpHandler;
|
18 |
-
|
19 |
-
use GuzzleHttp\Client;
|
20 |
-
use GuzzleHttp\ClientInterface;
|
21 |
-
|
22 |
-
class HttpHandlerFactory
|
23 |
-
{
|
24 |
-
/**
|
25 |
-
* Builds out a default http handler for the installed version of guzzle.
|
26 |
-
*
|
27 |
-
* @param ClientInterface $client
|
28 |
-
* @return Guzzle5HttpHandler|Guzzle6HttpHandler|Guzzle7HttpHandler
|
29 |
-
* @throws \Exception
|
30 |
-
*/
|
31 |
-
public static function build(ClientInterface $client = null)
|
32 |
-
{
|
33 |
-
$client = $client ?: new Client();
|
34 |
-
|
35 |
-
$version = null;
|
36 |
-
if (defined('GuzzleHttp\ClientInterface::MAJOR_VERSION')) {
|
37 |
-
$version = ClientInterface::MAJOR_VERSION;
|
38 |
-
} elseif (defined('GuzzleHttp\ClientInterface::VERSION')) {
|
39 |
-
$version = (int) substr(ClientInterface::VERSION, 0, 1);
|
40 |
-
}
|
41 |
-
|
42 |
-
switch ($version) {
|
43 |
-
case 5:
|
44 |
-
return new Guzzle5HttpHandler($client);
|
45 |
-
case 6:
|
46 |
-
return new Guzzle6HttpHandler($client);
|
47 |
-
case 7:
|
48 |
-
return new Guzzle7HttpHandler($client);
|
49 |
-
default:
|
50 |
-
throw new \Exception('Version not supported');
|
51 |
-
}
|
52 |
-
}
|
53 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/Iam.php
DELETED
@@ -1,99 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2019 Google LLC
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace Google\Auth;
|
19 |
-
|
20 |
-
use Google\Auth\HttpHandler\HttpClientCache;
|
21 |
-
use Google\Auth\HttpHandler\HttpHandlerFactory;
|
22 |
-
use GuzzleHttp\Psr7;
|
23 |
-
|
24 |
-
/**
|
25 |
-
* Tools for using the IAM API.
|
26 |
-
*
|
27 |
-
* @see https://cloud.google.com/iam/docs IAM Documentation
|
28 |
-
*/
|
29 |
-
class Iam
|
30 |
-
{
|
31 |
-
const IAM_API_ROOT = 'https://iamcredentials.googleapis.com/v1';
|
32 |
-
const SIGN_BLOB_PATH = '%s:signBlob?alt=json';
|
33 |
-
const SERVICE_ACCOUNT_NAME = 'projects/-/serviceAccounts/%s';
|
34 |
-
|
35 |
-
/**
|
36 |
-
* @var callable
|
37 |
-
*/
|
38 |
-
private $httpHandler;
|
39 |
-
|
40 |
-
/**
|
41 |
-
* @param callable $httpHandler [optional] The HTTP Handler to send requests.
|
42 |
-
*/
|
43 |
-
public function __construct(callable $httpHandler = null)
|
44 |
-
{
|
45 |
-
$this->httpHandler = $httpHandler
|
46 |
-
?: HttpHandlerFactory::build(HttpClientCache::getHttpClient());
|
47 |
-
}
|
48 |
-
|
49 |
-
/**
|
50 |
-
* Sign a string using the IAM signBlob API.
|
51 |
-
*
|
52 |
-
* Note that signing using IAM requires your service account to have the
|
53 |
-
* `iam.serviceAccounts.signBlob` permission, part of the "Service Account
|
54 |
-
* Token Creator" IAM role.
|
55 |
-
*
|
56 |
-
* @param string $email The service account email.
|
57 |
-
* @param string $accessToken An access token from the service account.
|
58 |
-
* @param string $stringToSign The string to be signed.
|
59 |
-
* @param array $delegates [optional] A list of service account emails to
|
60 |
-
* add to the delegate chain. If omitted, the value of `$email` will
|
61 |
-
* be used.
|
62 |
-
* @return string The signed string, base64-encoded.
|
63 |
-
*/
|
64 |
-
public function signBlob($email, $accessToken, $stringToSign, array $delegates = [])
|
65 |
-
{
|
66 |
-
$httpHandler = $this->httpHandler;
|
67 |
-
$name = sprintf(self::SERVICE_ACCOUNT_NAME, $email);
|
68 |
-
$uri = self::IAM_API_ROOT . '/' . sprintf(self::SIGN_BLOB_PATH, $name);
|
69 |
-
|
70 |
-
if ($delegates) {
|
71 |
-
foreach ($delegates as &$delegate) {
|
72 |
-
$delegate = sprintf(self::SERVICE_ACCOUNT_NAME, $delegate);
|
73 |
-
}
|
74 |
-
} else {
|
75 |
-
$delegates = [$name];
|
76 |
-
}
|
77 |
-
|
78 |
-
$body = [
|
79 |
-
'delegates' => $delegates,
|
80 |
-
'payload' => base64_encode($stringToSign),
|
81 |
-
];
|
82 |
-
|
83 |
-
$headers = [
|
84 |
-
'Authorization' => 'Bearer ' . $accessToken
|
85 |
-
];
|
86 |
-
|
87 |
-
$request = new Psr7\Request(
|
88 |
-
'POST',
|
89 |
-
$uri,
|
90 |
-
$headers,
|
91 |
-
Psr7\stream_for(json_encode($body))
|
92 |
-
);
|
93 |
-
|
94 |
-
$res = $httpHandler($request);
|
95 |
-
$body = json_decode((string) $res->getBody(), true);
|
96 |
-
|
97 |
-
return $body['signedBlob'];
|
98 |
-
}
|
99 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/Middleware/AuthTokenMiddleware.php
DELETED
@@ -1,148 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2015 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace Google\Auth\Middleware;
|
19 |
-
|
20 |
-
use Google\Auth\FetchAuthTokenInterface;
|
21 |
-
use Google\Auth\GetQuotaProjectInterface;
|
22 |
-
use Psr\Http\Message\RequestInterface;
|
23 |
-
|
24 |
-
/**
|
25 |
-
* AuthTokenMiddleware is a Guzzle Middleware that adds an Authorization header
|
26 |
-
* provided by an object implementing FetchAuthTokenInterface.
|
27 |
-
*
|
28 |
-
* The FetchAuthTokenInterface#fetchAuthToken is used to obtain a hash; one of
|
29 |
-
* the values value in that hash is added as the authorization header.
|
30 |
-
*
|
31 |
-
* Requests will be accessed with the authorization header:
|
32 |
-
*
|
33 |
-
* 'authorization' 'Bearer <value of auth_token>'
|
34 |
-
*/
|
35 |
-
class AuthTokenMiddleware
|
36 |
-
{
|
37 |
-
/**
|
38 |
-
* @var callback
|
39 |
-
*/
|
40 |
-
private $httpHandler;
|
41 |
-
|
42 |
-
/**
|
43 |
-
* @var FetchAuthTokenInterface
|
44 |
-
*/
|
45 |
-
private $fetcher;
|
46 |
-
|
47 |
-
/**
|
48 |
-
* @var callable
|
49 |
-
*/
|
50 |
-
private $tokenCallback;
|
51 |
-
|
52 |
-
/**
|
53 |
-
* Creates a new AuthTokenMiddleware.
|
54 |
-
*
|
55 |
-
* @param FetchAuthTokenInterface $fetcher is used to fetch the auth token
|
56 |
-
* @param callable $httpHandler (optional) callback which delivers psr7 request
|
57 |
-
* @param callable $tokenCallback (optional) function to be called when a new token is fetched.
|
58 |
-
*/
|
59 |
-
public function __construct(
|
60 |
-
FetchAuthTokenInterface $fetcher,
|
61 |
-
callable $httpHandler = null,
|
62 |
-
callable $tokenCallback = null
|
63 |
-
) {
|
64 |
-
$this->fetcher = $fetcher;
|
65 |
-
$this->httpHandler = $httpHandler;
|
66 |
-
$this->tokenCallback = $tokenCallback;
|
67 |
-
}
|
68 |
-
|
69 |
-
/**
|
70 |
-
* Updates the request with an Authorization header when auth is 'google_auth'.
|
71 |
-
*
|
72 |
-
* use Google\Auth\Middleware\AuthTokenMiddleware;
|
73 |
-
* use Google\Auth\OAuth2;
|
74 |
-
* use GuzzleHttp\Client;
|
75 |
-
* use GuzzleHttp\HandlerStack;
|
76 |
-
*
|
77 |
-
* $config = [..<oauth config param>.];
|
78 |
-
* $oauth2 = new OAuth2($config)
|
79 |
-
* $middleware = new AuthTokenMiddleware($oauth2);
|
80 |
-
* $stack = HandlerStack::create();
|
81 |
-
* $stack->push($middleware);
|
82 |
-
*
|
83 |
-
* $client = new Client([
|
84 |
-
* 'handler' => $stack,
|
85 |
-
* 'base_uri' => 'https://www.googleapis.com/taskqueue/v1beta2/projects/',
|
86 |
-
* 'auth' => 'google_auth' // authorize all requests
|
87 |
-
* ]);
|
88 |
-
*
|
89 |
-
* $res = $client->get('myproject/taskqueues/myqueue');
|
90 |
-
*
|
91 |
-
* @param callable $handler
|
92 |
-
* @return \Closure
|
93 |
-
*/
|
94 |
-
public function __invoke(callable $handler)
|
95 |
-
{
|
96 |
-
return function (RequestInterface $request, array $options) use ($handler) {
|
97 |
-
// Requests using "auth"="google_auth" will be authorized.
|
98 |
-
if (!isset($options['auth']) || $options['auth'] !== 'google_auth') {
|
99 |
-
return $handler($request, $options);
|
100 |
-
}
|
101 |
-
|
102 |
-
$request = $request->withHeader('authorization', 'Bearer ' . $this->fetchToken());
|
103 |
-
|
104 |
-
if ($quotaProject = $this->getQuotaProject()) {
|
105 |
-
$request = $request->withHeader(
|
106 |
-
GetQuotaProjectInterface::X_GOOG_USER_PROJECT_HEADER,
|
107 |
-
$quotaProject
|
108 |
-
);
|
109 |
-
}
|
110 |
-
|
111 |
-
return $handler($request, $options);
|
112 |
-
};
|
113 |
-
}
|
114 |
-
|
115 |
-
/**
|
116 |
-
* Call fetcher to fetch the token.
|
117 |
-
*
|
118 |
-
* @return string
|
119 |
-
*/
|
120 |
-
private function fetchToken()
|
121 |
-
{
|
122 |
-
$auth_tokens = $this->fetcher->fetchAuthToken($this->httpHandler);
|
123 |
-
|
124 |
-
if (array_key_exists('access_token', $auth_tokens)) {
|
125 |
-
// notify the callback if applicable
|
126 |
-
if ($this->tokenCallback) {
|
127 |
-
call_user_func(
|
128 |
-
$this->tokenCallback,
|
129 |
-
$this->fetcher->getCacheKey(),
|
130 |
-
$auth_tokens['access_token']
|
131 |
-
);
|
132 |
-
}
|
133 |
-
|
134 |
-
return $auth_tokens['access_token'];
|
135 |
-
}
|
136 |
-
|
137 |
-
if (array_key_exists('id_token', $auth_tokens)) {
|
138 |
-
return $auth_tokens['id_token'];
|
139 |
-
}
|
140 |
-
}
|
141 |
-
|
142 |
-
private function getQuotaProject()
|
143 |
-
{
|
144 |
-
if ($this->fetcher instanceof GetQuotaProjectInterface) {
|
145 |
-
return $this->fetcher->getQuotaProject();
|
146 |
-
}
|
147 |
-
}
|
148 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/Middleware/ScopedAccessTokenMiddleware.php
DELETED
@@ -1,175 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2015 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace Google\Auth\Middleware;
|
19 |
-
|
20 |
-
use Google\Auth\CacheTrait;
|
21 |
-
use Psr\Cache\CacheItemPoolInterface;
|
22 |
-
use Psr\Http\Message\RequestInterface;
|
23 |
-
|
24 |
-
/**
|
25 |
-
* ScopedAccessTokenMiddleware is a Guzzle Middleware that adds an Authorization
|
26 |
-
* header provided by a closure.
|
27 |
-
*
|
28 |
-
* The closure returns an access token, taking the scope, either a single
|
29 |
-
* string or an array of strings, as its value. If provided, a cache will be
|
30 |
-
* used to preserve the access token for a given lifetime.
|
31 |
-
*
|
32 |
-
* Requests will be accessed with the authorization header:
|
33 |
-
*
|
34 |
-
* 'authorization' 'Bearer <value of auth_token>'
|
35 |
-
*/
|
36 |
-
class ScopedAccessTokenMiddleware
|
37 |
-
{
|
38 |
-
use CacheTrait;
|
39 |
-
|
40 |
-
const DEFAULT_CACHE_LIFETIME = 1500;
|
41 |
-
|
42 |
-
/**
|
43 |
-
* @var CacheItemPoolInterface
|
44 |
-
*/
|
45 |
-
private $cache;
|
46 |
-
|
47 |
-
/**
|
48 |
-
* @var array configuration
|
49 |
-
*/
|
50 |
-
private $cacheConfig;
|
51 |
-
|
52 |
-
/**
|
53 |
-
* @var callable
|
54 |
-
*/
|
55 |
-
private $tokenFunc;
|
56 |
-
|
57 |
-
/**
|
58 |
-
* @var array|string
|
59 |
-
*/
|
60 |
-
private $scopes;
|
61 |
-
|
62 |
-
/**
|
63 |
-
* Creates a new ScopedAccessTokenMiddleware.
|
64 |
-
*
|
65 |
-
* @param callable $tokenFunc a token generator function
|
66 |
-
* @param array|string $scopes the token authentication scopes
|
67 |
-
* @param array $cacheConfig configuration for the cache when it's present
|
68 |
-
* @param CacheItemPoolInterface $cache an implementation of CacheItemPoolInterface
|
69 |
-
*/
|
70 |
-
public function __construct(
|
71 |
-
callable $tokenFunc,
|
72 |
-
$scopes,
|
73 |
-
array $cacheConfig = null,
|
74 |
-
CacheItemPoolInterface $cache = null
|
75 |
-
) {
|
76 |
-
$this->tokenFunc = $tokenFunc;
|
77 |
-
if (!(is_string($scopes) || is_array($scopes))) {
|
78 |
-
throw new \InvalidArgumentException(
|
79 |
-
'wants scope should be string or array'
|
80 |
-
);
|
81 |
-
}
|
82 |
-
$this->scopes = $scopes;
|
83 |
-
|
84 |
-
if (!is_null($cache)) {
|
85 |
-
$this->cache = $cache;
|
86 |
-
$this->cacheConfig = array_merge([
|
87 |
-
'lifetime' => self::DEFAULT_CACHE_LIFETIME,
|
88 |
-
'prefix' => '',
|
89 |
-
], $cacheConfig);
|
90 |
-
}
|
91 |
-
}
|
92 |
-
|
93 |
-
/**
|
94 |
-
* Updates the request with an Authorization header when auth is 'scoped'.
|
95 |
-
*
|
96 |
-
* E.g this could be used to authenticate using the AppEngine
|
97 |
-
* AppIdentityService.
|
98 |
-
*
|
99 |
-
* use google\appengine\api\app_identity\AppIdentityService;
|
100 |
-
* use Google\Auth\Middleware\ScopedAccessTokenMiddleware;
|
101 |
-
* use GuzzleHttp\Client;
|
102 |
-
* use GuzzleHttp\HandlerStack;
|
103 |
-
*
|
104 |
-
* $scope = 'https://www.googleapis.com/auth/taskqueue'
|
105 |
-
* $middleware = new ScopedAccessTokenMiddleware(
|
106 |
-
* 'AppIdentityService::getAccessToken',
|
107 |
-
* $scope,
|
108 |
-
* [ 'prefix' => 'Google\Auth\ScopedAccessToken::' ],
|
109 |
-
* $cache = new Memcache()
|
110 |
-
* );
|
111 |
-
* $stack = HandlerStack::create();
|
112 |
-
* $stack->push($middleware);
|
113 |
-
*
|
114 |
-
* $client = new Client([
|
115 |
-
* 'handler' => $stack,
|
116 |
-
* 'base_url' => 'https://www.googleapis.com/taskqueue/v1beta2/projects/',
|
117 |
-
* 'auth' => 'scoped' // authorize all requests
|
118 |
-
* ]);
|
119 |
-
*
|
120 |
-
* $res = $client->get('myproject/taskqueues/myqueue');
|
121 |
-
*
|
122 |
-
* @param callable $handler
|
123 |
-
* @return \Closure
|
124 |
-
*/
|
125 |
-
public function __invoke(callable $handler)
|
126 |
-
{
|
127 |
-
return function (RequestInterface $request, array $options) use ($handler) {
|
128 |
-
// Requests using "auth"="scoped" will be authorized.
|
129 |
-
if (!isset($options['auth']) || $options['auth'] !== 'scoped') {
|
130 |
-
return $handler($request, $options);
|
131 |
-
}
|
132 |
-
|
133 |
-
$request = $request->withHeader('authorization', 'Bearer ' . $this->fetchToken());
|
134 |
-
|
135 |
-
return $handler($request, $options);
|
136 |
-
};
|
137 |
-
}
|
138 |
-
|
139 |
-
/**
|
140 |
-
* @return string
|
141 |
-
*/
|
142 |
-
private function getCacheKey()
|
143 |
-
{
|
144 |
-
$key = null;
|
145 |
-
|
146 |
-
if (is_string($this->scopes)) {
|
147 |
-
$key .= $this->scopes;
|
148 |
-
} elseif (is_array($this->scopes)) {
|
149 |
-
$key .= implode(':', $this->scopes);
|
150 |
-
}
|
151 |
-
|
152 |
-
return $key;
|
153 |
-
}
|
154 |
-
|
155 |
-
/**
|
156 |
-
* Determine if token is available in the cache, if not call tokenFunc to
|
157 |
-
* fetch it.
|
158 |
-
*
|
159 |
-
* @return string
|
160 |
-
*/
|
161 |
-
private function fetchToken()
|
162 |
-
{
|
163 |
-
$cacheKey = $this->getCacheKey();
|
164 |
-
$cached = $this->getCachedValue($cacheKey);
|
165 |
-
|
166 |
-
if (!empty($cached)) {
|
167 |
-
return $cached;
|
168 |
-
}
|
169 |
-
|
170 |
-
$token = call_user_func($this->tokenFunc, $this->scopes);
|
171 |
-
$this->setCachedValue($cacheKey, $token);
|
172 |
-
|
173 |
-
return $token;
|
174 |
-
}
|
175 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/Middleware/SimpleMiddleware.php
DELETED
@@ -1,92 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2015 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace Google\Auth\Middleware;
|
19 |
-
|
20 |
-
use GuzzleHttp\Psr7;
|
21 |
-
use Psr\Http\Message\RequestInterface;
|
22 |
-
|
23 |
-
/**
|
24 |
-
* SimpleMiddleware is a Guzzle Middleware that implements Google's Simple API
|
25 |
-
* access.
|
26 |
-
*
|
27 |
-
* Requests are accessed using the Simple API access developer key.
|
28 |
-
*/
|
29 |
-
class SimpleMiddleware
|
30 |
-
{
|
31 |
-
/**
|
32 |
-
* @var array
|
33 |
-
*/
|
34 |
-
private $config;
|
35 |
-
|
36 |
-
/**
|
37 |
-
* Create a new Simple plugin.
|
38 |
-
*
|
39 |
-
* The configuration array expects one option
|
40 |
-
* - key: required, otherwise InvalidArgumentException is thrown
|
41 |
-
*
|
42 |
-
* @param array $config Configuration array
|
43 |
-
*/
|
44 |
-
public function __construct(array $config)
|
45 |
-
{
|
46 |
-
if (!isset($config['key'])) {
|
47 |
-
throw new \InvalidArgumentException('requires a key to have been set');
|
48 |
-
}
|
49 |
-
|
50 |
-
$this->config = array_merge(['key' => null], $config);
|
51 |
-
}
|
52 |
-
|
53 |
-
/**
|
54 |
-
* Updates the request query with the developer key if auth is set to simple.
|
55 |
-
*
|
56 |
-
* use Google\Auth\Middleware\SimpleMiddleware;
|
57 |
-
* use GuzzleHttp\Client;
|
58 |
-
* use GuzzleHttp\HandlerStack;
|
59 |
-
*
|
60 |
-
* $my_key = 'is not the same as yours';
|
61 |
-
* $middleware = new SimpleMiddleware(['key' => $my_key]);
|
62 |
-
* $stack = HandlerStack::create();
|
63 |
-
* $stack->push($middleware);
|
64 |
-
*
|
65 |
-
* $client = new Client([
|
66 |
-
* 'handler' => $stack,
|
67 |
-
* 'base_uri' => 'https://www.googleapis.com/discovery/v1/',
|
68 |
-
* 'auth' => 'simple'
|
69 |
-
* ]);
|
70 |
-
*
|
71 |
-
* $res = $client->get('drive/v2/rest');
|
72 |
-
*
|
73 |
-
* @param callable $handler
|
74 |
-
* @return \Closure
|
75 |
-
*/
|
76 |
-
public function __invoke(callable $handler)
|
77 |
-
{
|
78 |
-
return function (RequestInterface $request, array $options) use ($handler) {
|
79 |
-
// Requests using "auth"="scoped" will be authorized.
|
80 |
-
if (!isset($options['auth']) || $options['auth'] !== 'simple') {
|
81 |
-
return $handler($request, $options);
|
82 |
-
}
|
83 |
-
|
84 |
-
$query = Psr7\parse_query($request->getUri()->getQuery());
|
85 |
-
$params = array_merge($query, $this->config);
|
86 |
-
$uri = $request->getUri()->withQuery(Psr7\build_query($params));
|
87 |
-
$request = $request->withUri($uri);
|
88 |
-
|
89 |
-
return $handler($request, $options);
|
90 |
-
};
|
91 |
-
}
|
92 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/OAuth2.php
DELETED
@@ -1,1408 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2015 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace Google\Auth;
|
19 |
-
|
20 |
-
use Google\Auth\HttpHandler\HttpClientCache;
|
21 |
-
use Google\Auth\HttpHandler\HttpHandlerFactory;
|
22 |
-
use GuzzleHttp\Psr7;
|
23 |
-
use GuzzleHttp\Psr7\Request;
|
24 |
-
use InvalidArgumentException;
|
25 |
-
use Psr\Http\Message\RequestInterface;
|
26 |
-
use Psr\Http\Message\ResponseInterface;
|
27 |
-
use Psr\Http\Message\UriInterface;
|
28 |
-
|
29 |
-
/**
|
30 |
-
* OAuth2 supports authentication by OAuth2 2-legged flows.
|
31 |
-
*
|
32 |
-
* It primary supports
|
33 |
-
* - service account authorization
|
34 |
-
* - authorization where a user already has an access token
|
35 |
-
*/
|
36 |
-
class OAuth2 implements FetchAuthTokenInterface
|
37 |
-
{
|
38 |
-
const DEFAULT_EXPIRY_SECONDS = 3600; // 1 hour
|
39 |
-
const DEFAULT_SKEW_SECONDS = 60; // 1 minute
|
40 |
-
const JWT_URN = 'urn:ietf:params:oauth:grant-type:jwt-bearer';
|
41 |
-
|
42 |
-
/**
|
43 |
-
* TODO: determine known methods from the keys of JWT::methods.
|
44 |
-
*/
|
45 |
-
public static $knownSigningAlgorithms = array(
|
46 |
-
'HS256',
|
47 |
-
'HS512',
|
48 |
-
'HS384',
|
49 |
-
'RS256',
|
50 |
-
);
|
51 |
-
|
52 |
-
/**
|
53 |
-
* The well known grant types.
|
54 |
-
*
|
55 |
-
* @var array
|
56 |
-
*/
|
57 |
-
public static $knownGrantTypes = array(
|
58 |
-
'authorization_code',
|
59 |
-
'refresh_token',
|
60 |
-
'password',
|
61 |
-
'client_credentials',
|
62 |
-
);
|
63 |
-
|
64 |
-
/**
|
65 |
-
* - authorizationUri
|
66 |
-
* The authorization server's HTTP endpoint capable of
|
67 |
-
* authenticating the end-user and obtaining authorization.
|
68 |
-
*
|
69 |
-
* @var UriInterface
|
70 |
-
*/
|
71 |
-
private $authorizationUri;
|
72 |
-
|
73 |
-
/**
|
74 |
-
* - tokenCredentialUri
|
75 |
-
* The authorization server's HTTP endpoint capable of issuing
|
76 |
-
* tokens and refreshing expired tokens.
|
77 |
-
*
|
78 |
-
* @var UriInterface
|
79 |
-
*/
|
80 |
-
private $tokenCredentialUri;
|
81 |
-
|
82 |
-
/**
|
83 |
-
* The redirection URI used in the initial request.
|
84 |
-
*
|
85 |
-
* @var string
|
86 |
-
*/
|
87 |
-
private $redirectUri;
|
88 |
-
|
89 |
-
/**
|
90 |
-
* A unique identifier issued to the client to identify itself to the
|
91 |
-
* authorization server.
|
92 |
-
*
|
93 |
-
* @var string
|
94 |
-
*/
|
95 |
-
private $clientId;
|
96 |
-
|
97 |
-
/**
|
98 |
-
* A shared symmetric secret issued by the authorization server, which is
|
99 |
-
* used to authenticate the client.
|
100 |
-
*
|
101 |
-
* @var string
|
102 |
-
*/
|
103 |
-
private $clientSecret;
|
104 |
-
|
105 |
-
/**
|
106 |
-
* The resource owner's username.
|
107 |
-
*
|
108 |
-
* @var string
|
109 |
-
*/
|
110 |
-
private $username;
|
111 |
-
|
112 |
-
/**
|
113 |
-
* The resource owner's password.
|
114 |
-
*
|
115 |
-
* @var string
|
116 |
-
*/
|
117 |
-
private $password;
|
118 |
-
|
119 |
-
/**
|
120 |
-
* The scope of the access request, expressed either as an Array or as a
|
121 |
-
* space-delimited string.
|
122 |
-
*
|
123 |
-
* @var array
|
124 |
-
*/
|
125 |
-
private $scope;
|
126 |
-
|
127 |
-
/**
|
128 |
-
* An arbitrary string designed to allow the client to maintain state.
|
129 |
-
*
|
130 |
-
* @var string
|
131 |
-
*/
|
132 |
-
private $state;
|
133 |
-
|
134 |
-
/**
|
135 |
-
* The authorization code issued to this client.
|
136 |
-
*
|
137 |
-
* Only used by the authorization code access grant type.
|
138 |
-
*
|
139 |
-
* @var string
|
140 |
-
*/
|
141 |
-
private $code;
|
142 |
-
|
143 |
-
/**
|
144 |
-
* The issuer ID when using assertion profile.
|
145 |
-
*
|
146 |
-
* @var string
|
147 |
-
*/
|
148 |
-
private $issuer;
|
149 |
-
|
150 |
-
/**
|
151 |
-
* The target audience for assertions.
|
152 |
-
*
|
153 |
-
* @var string
|
154 |
-
*/
|
155 |
-
private $audience;
|
156 |
-
|
157 |
-
/**
|
158 |
-
* The target sub when issuing assertions.
|
159 |
-
*
|
160 |
-
* @var string
|
161 |
-
*/
|
162 |
-
private $sub;
|
163 |
-
|
164 |
-
/**
|
165 |
-
* The number of seconds assertions are valid for.
|
166 |
-
*
|
167 |
-
* @var int
|
168 |
-
*/
|
169 |
-
private $expiry;
|
170 |
-
|
171 |
-
/**
|
172 |
-
* The signing key when using assertion profile.
|
173 |
-
*
|
174 |
-
* @var string
|
175 |
-
*/
|
176 |
-
private $signingKey;
|
177 |
-
|
178 |
-
/**
|
179 |
-
* The signing key id when using assertion profile. Param kid in jwt header
|
180 |
-
*
|
181 |
-
* @var string
|
182 |
-
*/
|
183 |
-
private $signingKeyId;
|
184 |
-
|
185 |
-
/**
|
186 |
-
* The signing algorithm when using an assertion profile.
|
187 |
-
*
|
188 |
-
* @var string
|
189 |
-
*/
|
190 |
-
private $signingAlgorithm;
|
191 |
-
|
192 |
-
/**
|
193 |
-
* The refresh token associated with the access token to be refreshed.
|
194 |
-
*
|
195 |
-
* @var string
|
196 |
-
*/
|
197 |
-
private $refreshToken;
|
198 |
-
|
199 |
-
/**
|
200 |
-
* The current access token.
|
201 |
-
*
|
202 |
-
* @var string
|
203 |
-
*/
|
204 |
-
private $accessToken;
|
205 |
-
|
206 |
-
/**
|
207 |
-
* The current ID token.
|
208 |
-
*
|
209 |
-
* @var string
|
210 |
-
*/
|
211 |
-
private $idToken;
|
212 |
-
|
213 |
-
/**
|
214 |
-
* The lifetime in seconds of the current access token.
|
215 |
-
*
|
216 |
-
* @var int
|
217 |
-
*/
|
218 |
-
private $expiresIn;
|
219 |
-
|
220 |
-
/**
|
221 |
-
* The expiration time of the access token as a number of seconds since the
|
222 |
-
* unix epoch.
|
223 |
-
*
|
224 |
-
* @var int
|
225 |
-
*/
|
226 |
-
private $expiresAt;
|
227 |
-
|
228 |
-
/**
|
229 |
-
* The issue time of the access token as a number of seconds since the unix
|
230 |
-
* epoch.
|
231 |
-
*
|
232 |
-
* @var int
|
233 |
-
*/
|
234 |
-
private $issuedAt;
|
235 |
-
|
236 |
-
/**
|
237 |
-
* The current grant type.
|
238 |
-
*
|
239 |
-
* @var string
|
240 |
-
*/
|
241 |
-
private $grantType;
|
242 |
-
|
243 |
-
/**
|
244 |
-
* When using an extension grant type, this is the set of parameters used by
|
245 |
-
* that extension.
|
246 |
-
*/
|
247 |
-
private $extensionParams;
|
248 |
-
|
249 |
-
/**
|
250 |
-
* When using the toJwt function, these claims will be added to the JWT
|
251 |
-
* payload.
|
252 |
-
*/
|
253 |
-
private $additionalClaims;
|
254 |
-
|
255 |
-
/**
|
256 |
-
* Create a new OAuthCredentials.
|
257 |
-
*
|
258 |
-
* The configuration array accepts various options
|
259 |
-
*
|
260 |
-
* - authorizationUri
|
261 |
-
* The authorization server's HTTP endpoint capable of
|
262 |
-
* authenticating the end-user and obtaining authorization.
|
263 |
-
*
|
264 |
-
* - tokenCredentialUri
|
265 |
-
* The authorization server's HTTP endpoint capable of issuing
|
266 |
-
* tokens and refreshing expired tokens.
|
267 |
-
*
|
268 |
-
* - clientId
|
269 |
-
* A unique identifier issued to the client to identify itself to the
|
270 |
-
* authorization server.
|
271 |
-
*
|
272 |
-
* - clientSecret
|
273 |
-
* A shared symmetric secret issued by the authorization server,
|
274 |
-
* which is used to authenticate the client.
|
275 |
-
*
|
276 |
-
* - scope
|
277 |
-
* The scope of the access request, expressed either as an Array
|
278 |
-
* or as a space-delimited String.
|
279 |
-
*
|
280 |
-
* - state
|
281 |
-
* An arbitrary string designed to allow the client to maintain state.
|
282 |
-
*
|
283 |
-
* - redirectUri
|
284 |
-
* The redirection URI used in the initial request.
|
285 |
-
*
|
286 |
-
* - username
|
287 |
-
* The resource owner's username.
|
288 |
-
*
|
289 |
-
* - password
|
290 |
-
* The resource owner's password.
|
291 |
-
*
|
292 |
-
* - issuer
|
293 |
-
* Issuer ID when using assertion profile
|
294 |
-
*
|
295 |
-
* - audience
|
296 |
-
* Target audience for assertions
|
297 |
-
*
|
298 |
-
* - expiry
|
299 |
-
* Number of seconds assertions are valid for
|
300 |
-
*
|
301 |
-
* - signingKey
|
302 |
-
* Signing key when using assertion profile
|
303 |
-
*
|
304 |
-
* - signingKeyId
|
305 |
-
* Signing key id when using assertion profile
|
306 |
-
*
|
307 |
-
* - refreshToken
|
308 |
-
* The refresh token associated with the access token
|
309 |
-
* to be refreshed.
|
310 |
-
*
|
311 |
-
* - accessToken
|
312 |
-
* The current access token for this client.
|
313 |
-
*
|
314 |
-
* - idToken
|
315 |
-
* The current ID token for this client.
|
316 |
-
*
|
317 |
-
* - extensionParams
|
318 |
-
* When using an extension grant type, this is the set of parameters used
|
319 |
-
* by that extension.
|
320 |
-
*
|
321 |
-
* @param array $config Configuration array
|
322 |
-
*/
|
323 |
-
public function __construct(array $config)
|
324 |
-
{
|
325 |
-
$opts = array_merge([
|
326 |
-
'expiry' => self::DEFAULT_EXPIRY_SECONDS,
|
327 |
-
'extensionParams' => [],
|
328 |
-
'authorizationUri' => null,
|
329 |
-
'redirectUri' => null,
|
330 |
-
'tokenCredentialUri' => null,
|
331 |
-
'state' => null,
|
332 |
-
'username' => null,
|
333 |
-
'password' => null,
|
334 |
-
'clientId' => null,
|
335 |
-
'clientSecret' => null,
|
336 |
-
'issuer' => null,
|
337 |
-
'sub' => null,
|
338 |
-
'audience' => null,
|
339 |
-
'signingKey' => null,
|
340 |
-
'signingKeyId' => null,
|
341 |
-
'signingAlgorithm' => null,
|
342 |
-
'scope' => null,
|
343 |
-
'additionalClaims' => [],
|
344 |
-
], $config);
|
345 |
-
|
346 |
-
$this->setAuthorizationUri($opts['authorizationUri']);
|
347 |
-
$this->setRedirectUri($opts['redirectUri']);
|
348 |
-
$this->setTokenCredentialUri($opts['tokenCredentialUri']);
|
349 |
-
$this->setState($opts['state']);
|
350 |
-
$this->setUsername($opts['username']);
|
351 |
-
$this->setPassword($opts['password']);
|
352 |
-
$this->setClientId($opts['clientId']);
|
353 |
-
$this->setClientSecret($opts['clientSecret']);
|
354 |
-
$this->setIssuer($opts['issuer']);
|
355 |
-
$this->setSub($opts['sub']);
|
356 |
-
$this->setExpiry($opts['expiry']);
|
357 |
-
$this->setAudience($opts['audience']);
|
358 |
-
$this->setSigningKey($opts['signingKey']);
|
359 |
-
$this->setSigningKeyId($opts['signingKeyId']);
|
360 |
-
$this->setSigningAlgorithm($opts['signingAlgorithm']);
|
361 |
-
$this->setScope($opts['scope']);
|
362 |
-
$this->setExtensionParams($opts['extensionParams']);
|
363 |
-
$this->setAdditionalClaims($opts['additionalClaims']);
|
364 |
-
$this->updateToken($opts);
|
365 |
-
}
|
366 |
-
|
367 |
-
/**
|
368 |
-
* Verifies the idToken if present.
|
369 |
-
*
|
370 |
-
* - if none is present, return null
|
371 |
-
* - if present, but invalid, raises DomainException.
|
372 |
-
* - otherwise returns the payload in the idtoken as a PHP object.
|
373 |
-
*
|
374 |
-
* The behavior of this method varies depending on the version of
|
375 |
-
* `firebase/php-jwt` you are using. In versions lower than 3.0.0, if
|
376 |
-
* `$publicKey` is null, the key is decoded without being verified. In
|
377 |
-
* newer versions, if a public key is not given, this method will throw an
|
378 |
-
* `\InvalidArgumentException`.
|
379 |
-
*
|
380 |
-
* @param string $publicKey The public key to use to authenticate the token
|
381 |
-
* @param array $allowed_algs List of supported verification algorithms
|
382 |
-
* @throws \DomainException if the token is missing an audience.
|
383 |
-
* @throws \DomainException if the audience does not match the one set in
|
384 |
-
* the OAuth2 class instance.
|
385 |
-
* @throws \UnexpectedValueException If the token is invalid
|
386 |
-
* @throws SignatureInvalidException If the signature is invalid.
|
387 |
-
* @throws BeforeValidException If the token is not yet valid.
|
388 |
-
* @throws ExpiredException If the token has expired.
|
389 |
-
* @return null|object
|
390 |
-
*/
|
391 |
-
public function verifyIdToken($publicKey = null, $allowed_algs = array())
|
392 |
-
{
|
393 |
-
$idToken = $this->getIdToken();
|
394 |
-
if (is_null($idToken)) {
|
395 |
-
return null;
|
396 |
-
}
|
397 |
-
|
398 |
-
$resp = $this->jwtDecode($idToken, $publicKey, $allowed_algs);
|
399 |
-
if (!property_exists($resp, 'aud')) {
|
400 |
-
throw new \DomainException('No audience found the id token');
|
401 |
-
}
|
402 |
-
if ($resp->aud != $this->getAudience()) {
|
403 |
-
throw new \DomainException('Wrong audience present in the id token');
|
404 |
-
}
|
405 |
-
|
406 |
-
return $resp;
|
407 |
-
}
|
408 |
-
|
409 |
-
/**
|
410 |
-
* Obtains the encoded jwt from the instance data.
|
411 |
-
*
|
412 |
-
* @param array $config array optional configuration parameters
|
413 |
-
* @return string
|
414 |
-
*/
|
415 |
-
public function toJwt(array $config = [])
|
416 |
-
{
|
417 |
-
if (is_null($this->getSigningKey())) {
|
418 |
-
throw new \DomainException('No signing key available');
|
419 |
-
}
|
420 |
-
if (is_null($this->getSigningAlgorithm())) {
|
421 |
-
throw new \DomainException('No signing algorithm specified');
|
422 |
-
}
|
423 |
-
$now = time();
|
424 |
-
|
425 |
-
$opts = array_merge([
|
426 |
-
'skew' => self::DEFAULT_SKEW_SECONDS,
|
427 |
-
], $config);
|
428 |
-
|
429 |
-
$assertion = [
|
430 |
-
'iss' => $this->getIssuer(),
|
431 |
-
'aud' => $this->getAudience(),
|
432 |
-
'exp' => ($now + $this->getExpiry()),
|
433 |
-
'iat' => ($now - $opts['skew']),
|
434 |
-
];
|
435 |
-
foreach ($assertion as $k => $v) {
|
436 |
-
if (is_null($v)) {
|
437 |
-
throw new \DomainException($k . ' should not be null');
|
438 |
-
}
|
439 |
-
}
|
440 |
-
if (!(is_null($this->getScope()))) {
|
441 |
-
$assertion['scope'] = $this->getScope();
|
442 |
-
}
|
443 |
-
if (!(is_null($this->getSub()))) {
|
444 |
-
$assertion['sub'] = $this->getSub();
|
445 |
-
}
|
446 |
-
$assertion += $this->getAdditionalClaims();
|
447 |
-
|
448 |
-
return $this->jwtEncode(
|
449 |
-
$assertion,
|
450 |
-
$this->getSigningKey(),
|
451 |
-
$this->getSigningAlgorithm(),
|
452 |
-
$this->getSigningKeyId()
|
453 |
-
);
|
454 |
-
}
|
455 |
-
|
456 |
-
/**
|
457 |
-
* Generates a request for token credentials.
|
458 |
-
*
|
459 |
-
* @return RequestInterface the authorization Url.
|
460 |
-
*/
|
461 |
-
public function generateCredentialsRequest()
|
462 |
-
{
|
463 |
-
$uri = $this->getTokenCredentialUri();
|
464 |
-
if (is_null($uri)) {
|
465 |
-
throw new \DomainException('No token credential URI was set.');
|
466 |
-
}
|
467 |
-
|
468 |
-
$grantType = $this->getGrantType();
|
469 |
-
$params = array('grant_type' => $grantType);
|
470 |
-
switch ($grantType) {
|
471 |
-
case 'authorization_code':
|
472 |
-
$params['code'] = $this->getCode();
|
473 |
-
$params['redirect_uri'] = $this->getRedirectUri();
|
474 |
-
$this->addClientCredentials($params);
|
475 |
-
break;
|
476 |
-
case 'password':
|
477 |
-
$params['username'] = $this->getUsername();
|
478 |
-
$params['password'] = $this->getPassword();
|
479 |
-
$this->addClientCredentials($params);
|
480 |
-
break;
|
481 |
-
case 'refresh_token':
|
482 |
-
$params['refresh_token'] = $this->getRefreshToken();
|
483 |
-
$this->addClientCredentials($params);
|
484 |
-
break;
|
485 |
-
case self::JWT_URN:
|
486 |
-
$params['assertion'] = $this->toJwt();
|
487 |
-
break;
|
488 |
-
default:
|
489 |
-
if (!is_null($this->getRedirectUri())) {
|
490 |
-
# Grant type was supposed to be 'authorization_code', as there
|
491 |
-
# is a redirect URI.
|
492 |
-
throw new \DomainException('Missing authorization code');
|
493 |
-
}
|
494 |
-
unset($params['grant_type']);
|
495 |
-
if (!is_null($grantType)) {
|
496 |
-
$params['grant_type'] = $grantType;
|
497 |
-
}
|
498 |
-
$params = array_merge($params, $this->getExtensionParams());
|
499 |
-
}
|
500 |
-
|
501 |
-
$headers = [
|
502 |
-
'Cache-Control' => 'no-store',
|
503 |
-
'Content-Type' => 'application/x-www-form-urlencoded',
|
504 |
-
];
|
505 |
-
|
506 |
-
return new Request(
|
507 |
-
'POST',
|
508 |
-
$uri,
|
509 |
-
$headers,
|
510 |
-
Psr7\build_query($params)
|
511 |
-
);
|
512 |
-
}
|
513 |
-
|
514 |
-
/**
|
515 |
-
* Fetches the auth tokens based on the current state.
|
516 |
-
*
|
517 |
-
* @param callable $httpHandler callback which delivers psr7 request
|
518 |
-
* @return array the response
|
519 |
-
*/
|
520 |
-
public function fetchAuthToken(callable $httpHandler = null)
|
521 |
-
{
|
522 |
-
if (is_null($httpHandler)) {
|
523 |
-
$httpHandler = HttpHandlerFactory::build(HttpClientCache::getHttpClient());
|
524 |
-
}
|
525 |
-
|
526 |
-
$response = $httpHandler($this->generateCredentialsRequest());
|
527 |
-
$credentials = $this->parseTokenResponse($response);
|
528 |
-
$this->updateToken($credentials);
|
529 |
-
|
530 |
-
return $credentials;
|
531 |
-
}
|
532 |
-
|
533 |
-
/**
|
534 |
-
* Obtains a key that can used to cache the results of #fetchAuthToken.
|
535 |
-
*
|
536 |
-
* The key is derived from the scopes.
|
537 |
-
*
|
538 |
-
* @return string a key that may be used to cache the auth token.
|
539 |
-
*/
|
540 |
-
public function getCacheKey()
|
541 |
-
{
|
542 |
-
if (is_array($this->scope)) {
|
543 |
-
return implode(':', $this->scope);
|
544 |
-
}
|
545 |
-
|
546 |
-
if ($this->audience) {
|
547 |
-
return $this->audience;
|
548 |
-
}
|
549 |
-
|
550 |
-
// If scope has not set, return null to indicate no caching.
|
551 |
-
return null;
|
552 |
-
}
|
553 |
-
|
554 |
-
/**
|
555 |
-
* Parses the fetched tokens.
|
556 |
-
*
|
557 |
-
* @param ResponseInterface $resp the response.
|
558 |
-
* @return array the tokens parsed from the response body.
|
559 |
-
* @throws \Exception
|
560 |
-
*/
|
561 |
-
public function parseTokenResponse(ResponseInterface $resp)
|
562 |
-
{
|
563 |
-
$body = (string)$resp->getBody();
|
564 |
-
if ($resp->hasHeader('Content-Type') &&
|
565 |
-
$resp->getHeaderLine('Content-Type') == 'application/x-www-form-urlencoded'
|
566 |
-
) {
|
567 |
-
$res = array();
|
568 |
-
parse_str($body, $res);
|
569 |
-
|
570 |
-
return $res;
|
571 |
-
}
|
572 |
-
|
573 |
-
// Assume it's JSON; if it's not throw an exception
|
574 |
-
if (null === $res = json_decode($body, true)) {
|
575 |
-
throw new \Exception('Invalid JSON response');
|
576 |
-
}
|
577 |
-
|
578 |
-
return $res;
|
579 |
-
}
|
580 |
-
|
581 |
-
/**
|
582 |
-
* Updates an OAuth 2.0 client.
|
583 |
-
*
|
584 |
-
* Example:
|
585 |
-
* ```
|
586 |
-
* $oauth->updateToken([
|
587 |
-
* 'refresh_token' => 'n4E9O119d',
|
588 |
-
* 'access_token' => 'FJQbwq9',
|
589 |
-
* 'expires_in' => 3600
|
590 |
-
* ]);
|
591 |
-
* ```
|
592 |
-
*
|
593 |
-
* @param array $config
|
594 |
-
* The configuration parameters related to the token.
|
595 |
-
*
|
596 |
-
* - refresh_token
|
597 |
-
* The refresh token associated with the access token
|
598 |
-
* to be refreshed.
|
599 |
-
*
|
600 |
-
* - access_token
|
601 |
-
* The current access token for this client.
|
602 |
-
*
|
603 |
-
* - id_token
|
604 |
-
* The current ID token for this client.
|
605 |
-
*
|
606 |
-
* - expires_in
|
607 |
-
* The time in seconds until access token expiration.
|
608 |
-
*
|
609 |
-
* - expires_at
|
610 |
-
* The time as an integer number of seconds since the Epoch
|
611 |
-
*
|
612 |
-
* - issued_at
|
613 |
-
* The timestamp that the token was issued at.
|
614 |
-
*/
|
615 |
-
public function updateToken(array $config)
|
616 |
-
{
|
617 |
-
$opts = array_merge([
|
618 |
-
'extensionParams' => [],
|
619 |
-
'access_token' => null,
|
620 |
-
'id_token' => null,
|
621 |
-
'expires_in' => null,
|
622 |
-
'expires_at' => null,
|
623 |
-
'issued_at' => null,
|
624 |
-
], $config);
|
625 |
-
|
626 |
-
$this->setExpiresAt($opts['expires_at']);
|
627 |
-
$this->setExpiresIn($opts['expires_in']);
|
628 |
-
// By default, the token is issued at `Time.now` when `expiresIn` is set,
|
629 |
-
// but this can be used to supply a more precise time.
|
630 |
-
if (!is_null($opts['issued_at'])) {
|
631 |
-
$this->setIssuedAt($opts['issued_at']);
|
632 |
-
}
|
633 |
-
|
634 |
-
$this->setAccessToken($opts['access_token']);
|
635 |
-
$this->setIdToken($opts['id_token']);
|
636 |
-
// The refresh token should only be updated if a value is explicitly
|
637 |
-
// passed in, as some access token responses do not include a refresh
|
638 |
-
// token.
|
639 |
-
if (array_key_exists('refresh_token', $opts)) {
|
640 |
-
$this->setRefreshToken($opts['refresh_token']);
|
641 |
-
}
|
642 |
-
}
|
643 |
-
|
644 |
-
/**
|
645 |
-
* Builds the authorization Uri that the user should be redirected to.
|
646 |
-
*
|
647 |
-
* @param array $config configuration options that customize the return url
|
648 |
-
* @return UriInterface the authorization Url.
|
649 |
-
* @throws InvalidArgumentException
|
650 |
-
*/
|
651 |
-
public function buildFullAuthorizationUri(array $config = [])
|
652 |
-
{
|
653 |
-
if (is_null($this->getAuthorizationUri())) {
|
654 |
-
throw new InvalidArgumentException(
|
655 |
-
'requires an authorizationUri to have been set'
|
656 |
-
);
|
657 |
-
}
|
658 |
-
|
659 |
-
$params = array_merge([
|
660 |
-
'response_type' => 'code',
|
661 |
-
'access_type' => 'offline',
|
662 |
-
'client_id' => $this->clientId,
|
663 |
-
'redirect_uri' => $this->redirectUri,
|
664 |
-
'state' => $this->state,
|
665 |
-
'scope' => $this->getScope(),
|
666 |
-
], $config);
|
667 |
-
|
668 |
-
// Validate the auth_params
|
669 |
-
if (is_null($params['client_id'])) {
|
670 |
-
throw new InvalidArgumentException(
|
671 |
-
'missing the required client identifier'
|
672 |
-
);
|
673 |
-
}
|
674 |
-
if (is_null($params['redirect_uri'])) {
|
675 |
-
throw new InvalidArgumentException('missing the required redirect URI');
|
676 |
-
}
|
677 |
-
if (!empty($params['prompt']) && !empty($params['approval_prompt'])) {
|
678 |
-
throw new InvalidArgumentException(
|
679 |
-
'prompt and approval_prompt are mutually exclusive'
|
680 |
-
);
|
681 |
-
}
|
682 |
-
|
683 |
-
// Construct the uri object; return it if it is valid.
|
684 |
-
$result = clone $this->authorizationUri;
|
685 |
-
$existingParams = Psr7\parse_query($result->getQuery());
|
686 |
-
|
687 |
-
$result = $result->withQuery(
|
688 |
-
Psr7\build_query(array_merge($existingParams, $params))
|
689 |
-
);
|
690 |
-
|
691 |
-
if ($result->getScheme() != 'https') {
|
692 |
-
throw new InvalidArgumentException(
|
693 |
-
'Authorization endpoint must be protected by TLS'
|
694 |
-
);
|
695 |
-
}
|
696 |
-
|
697 |
-
return $result;
|
698 |
-
}
|
699 |
-
|
700 |
-
/**
|
701 |
-
* Sets the authorization server's HTTP endpoint capable of authenticating
|
702 |
-
* the end-user and obtaining authorization.
|
703 |
-
*
|
704 |
-
* @param string $uri
|
705 |
-
*/
|
706 |
-
public function setAuthorizationUri($uri)
|
707 |
-
{
|
708 |
-
$this->authorizationUri = $this->coerceUri($uri);
|
709 |
-
}
|
710 |
-
|
711 |
-
/**
|
712 |
-
* Gets the authorization server's HTTP endpoint capable of authenticating
|
713 |
-
* the end-user and obtaining authorization.
|
714 |
-
*
|
715 |
-
* @return UriInterface
|
716 |
-
*/
|
717 |
-
public function getAuthorizationUri()
|
718 |
-
{
|
719 |
-
return $this->authorizationUri;
|
720 |
-
}
|
721 |
-
|
722 |
-
/**
|
723 |
-
* Gets the authorization server's HTTP endpoint capable of issuing tokens
|
724 |
-
* and refreshing expired tokens.
|
725 |
-
*
|
726 |
-
* @return string
|
727 |
-
*/
|
728 |
-
public function getTokenCredentialUri()
|
729 |
-
{
|
730 |
-
return $this->tokenCredentialUri;
|
731 |
-
}
|
732 |
-
|
733 |
-
/**
|
734 |
-
* Sets the authorization server's HTTP endpoint capable of issuing tokens
|
735 |
-
* and refreshing expired tokens.
|
736 |
-
*
|
737 |
-
* @param string $uri
|
738 |
-
*/
|
739 |
-
public function setTokenCredentialUri($uri)
|
740 |
-
{
|
741 |
-
$this->tokenCredentialUri = $this->coerceUri($uri);
|
742 |
-
}
|
743 |
-
|
744 |
-
/**
|
745 |
-
* Gets the redirection URI used in the initial request.
|
746 |
-
*
|
747 |
-
* @return string
|
748 |
-
*/
|
749 |
-
public function getRedirectUri()
|
750 |
-
{
|
751 |
-
return $this->redirectUri;
|
752 |
-
}
|
753 |
-
|
754 |
-
/**
|
755 |
-
* Sets the redirection URI used in the initial request.
|
756 |
-
*
|
757 |
-
* @param string $uri
|
758 |
-
*/
|
759 |
-
public function setRedirectUri($uri)
|
760 |
-
{
|
761 |
-
if (is_null($uri)) {
|
762 |
-
$this->redirectUri = null;
|
763 |
-
|
764 |
-
return;
|
765 |
-
}
|
766 |
-
// redirect URI must be absolute
|
767 |
-
if (!$this->isAbsoluteUri($uri)) {
|
768 |
-
// "postmessage" is a reserved URI string in Google-land
|
769 |
-
// @see https://developers.google.com/identity/sign-in/web/server-side-flow
|
770 |
-
if ('postmessage' !== (string)$uri) {
|
771 |
-
throw new InvalidArgumentException(
|
772 |
-
'Redirect URI must be absolute'
|
773 |
-
);
|
774 |
-
}
|
775 |
-
}
|
776 |
-
$this->redirectUri = (string)$uri;
|
777 |
-
}
|
778 |
-
|
779 |
-
/**
|
780 |
-
* Gets the scope of the access requests as a space-delimited String.
|
781 |
-
*
|
782 |
-
* @return string
|
783 |
-
*/
|
784 |
-
public function getScope()
|
785 |
-
{
|
786 |
-
if (is_null($this->scope)) {
|
787 |
-
return $this->scope;
|
788 |
-
}
|
789 |
-
|
790 |
-
return implode(' ', $this->scope);
|
791 |
-
}
|
792 |
-
|
793 |
-
/**
|
794 |
-
* Sets the scope of the access request, expressed either as an Array or as
|
795 |
-
* a space-delimited String.
|
796 |
-
*
|
797 |
-
* @param string|array $scope
|
798 |
-
* @throws InvalidArgumentException
|
799 |
-
*/
|
800 |
-
public function setScope($scope)
|
801 |
-
{
|
802 |
-
if (is_null($scope)) {
|
803 |
-
$this->scope = null;
|
804 |
-
} elseif (is_string($scope)) {
|
805 |
-
$this->scope = explode(' ', $scope);
|
806 |
-
} elseif (is_array($scope)) {
|
807 |
-
foreach ($scope as $s) {
|
808 |
-
$pos = strpos($s, ' ');
|
809 |
-
if ($pos !== false) {
|
810 |
-
throw new InvalidArgumentException(
|
811 |
-
'array scope values should not contain spaces'
|
812 |
-
);
|
813 |
-
}
|
814 |
-
}
|
815 |
-
$this->scope = $scope;
|
816 |
-
} else {
|
817 |
-
throw new InvalidArgumentException(
|
818 |
-
'scopes should be a string or array of strings'
|
819 |
-
);
|
820 |
-
}
|
821 |
-
}
|
822 |
-
|
823 |
-
/**
|
824 |
-
* Gets the current grant type.
|
825 |
-
*
|
826 |
-
* @return string
|
827 |
-
*/
|
828 |
-
public function getGrantType()
|
829 |
-
{
|
830 |
-
if (!is_null($this->grantType)) {
|
831 |
-
return $this->grantType;
|
832 |
-
}
|
833 |
-
|
834 |
-
// Returns the inferred grant type, based on the current object instance
|
835 |
-
// state.
|
836 |
-
if (!is_null($this->code)) {
|
837 |
-
return 'authorization_code';
|
838 |
-
}
|
839 |
-
|
840 |
-
if (!is_null($this->refreshToken)) {
|
841 |
-
return 'refresh_token';
|
842 |
-
}
|
843 |
-
|
844 |
-
if (!is_null($this->username) && !is_null($this->password)) {
|
845 |
-
return 'password';
|
846 |
-
}
|
847 |
-
|
848 |
-
if (!is_null($this->issuer) && !is_null($this->signingKey)) {
|
849 |
-
return self::JWT_URN;
|
850 |
-
}
|
851 |
-
|
852 |
-
return null;
|
853 |
-
}
|
854 |
-
|
855 |
-
/**
|
856 |
-
* Sets the current grant type.
|
857 |
-
*
|
858 |
-
* @param $grantType
|
859 |
-
* @throws InvalidArgumentException
|
860 |
-
*/
|
861 |
-
public function setGrantType($grantType)
|
862 |
-
{
|
863 |
-
if (in_array($grantType, self::$knownGrantTypes)) {
|
864 |
-
$this->grantType = $grantType;
|
865 |
-
} else {
|
866 |
-
// validate URI
|
867 |
-
if (!$this->isAbsoluteUri($grantType)) {
|
868 |
-
throw new InvalidArgumentException(
|
869 |
-
'invalid grant type'
|
870 |
-
);
|
871 |
-
}
|
872 |
-
$this->grantType = (string)$grantType;
|
873 |
-
}
|
874 |
-
}
|
875 |
-
|
876 |
-
/**
|
877 |
-
* Gets an arbitrary string designed to allow the client to maintain state.
|
878 |
-
*
|
879 |
-
* @return string
|
880 |
-
*/
|
881 |
-
public function getState()
|
882 |
-
{
|
883 |
-
return $this->state;
|
884 |
-
}
|
885 |
-
|
886 |
-
/**
|
887 |
-
* Sets an arbitrary string designed to allow the client to maintain state.
|
888 |
-
*
|
889 |
-
* @param string $state
|
890 |
-
*/
|
891 |
-
public function setState($state)
|
892 |
-
{
|
893 |
-
$this->state = $state;
|
894 |
-
}
|
895 |
-
|
896 |
-
/**
|
897 |
-
* Gets the authorization code issued to this client.
|
898 |
-
*/
|
899 |
-
public function getCode()
|
900 |
-
{
|
901 |
-
return $this->code;
|
902 |
-
}
|
903 |
-
|
904 |
-
/**
|
905 |
-
* Sets the authorization code issued to this client.
|
906 |
-
*
|
907 |
-
* @param string $code
|
908 |
-
*/
|
909 |
-
public function setCode($code)
|
910 |
-
{
|
911 |
-
$this->code = $code;
|
912 |
-
}
|
913 |
-
|
914 |
-
/**
|
915 |
-
* Gets the resource owner's username.
|
916 |
-
*/
|
917 |
-
public function getUsername()
|
918 |
-
{
|
919 |
-
return $this->username;
|
920 |
-
}
|
921 |
-
|
922 |
-
/**
|
923 |
-
* Sets the resource owner's username.
|
924 |
-
*
|
925 |
-
* @param string $username
|
926 |
-
*/
|
927 |
-
public function setUsername($username)
|
928 |
-
{
|
929 |
-
$this->username = $username;
|
930 |
-
}
|
931 |
-
|
932 |
-
/**
|
933 |
-
* Gets the resource owner's password.
|
934 |
-
*/
|
935 |
-
public function getPassword()
|
936 |
-
{
|
937 |
-
return $this->password;
|
938 |
-
}
|
939 |
-
|
940 |
-
/**
|
941 |
-
* Sets the resource owner's password.
|
942 |
-
*
|
943 |
-
* @param $password
|
944 |
-
*/
|
945 |
-
public function setPassword($password)
|
946 |
-
{
|
947 |
-
$this->password = $password;
|
948 |
-
}
|
949 |
-
|
950 |
-
/**
|
951 |
-
* Sets a unique identifier issued to the client to identify itself to the
|
952 |
-
* authorization server.
|
953 |
-
*/
|
954 |
-
public function getClientId()
|
955 |
-
{
|
956 |
-
return $this->clientId;
|
957 |
-
}
|
958 |
-
|
959 |
-
/**
|
960 |
-
* Sets a unique identifier issued to the client to identify itself to the
|
961 |
-
* authorization server.
|
962 |
-
*
|
963 |
-
* @param $clientId
|
964 |
-
*/
|
965 |
-
public function setClientId($clientId)
|
966 |
-
{
|
967 |
-
$this->clientId = $clientId;
|
968 |
-
}
|
969 |
-
|
970 |
-
/**
|
971 |
-
* Gets a shared symmetric secret issued by the authorization server, which
|
972 |
-
* is used to authenticate the client.
|
973 |
-
*/
|
974 |
-
public function getClientSecret()
|
975 |
-
{
|
976 |
-
return $this->clientSecret;
|
977 |
-
}
|
978 |
-
|
979 |
-
/**
|
980 |
-
* Sets a shared symmetric secret issued by the authorization server, which
|
981 |
-
* is used to authenticate the client.
|
982 |
-
*
|
983 |
-
* @param $clientSecret
|
984 |
-
*/
|
985 |
-
public function setClientSecret($clientSecret)
|
986 |
-
{
|
987 |
-
$this->clientSecret = $clientSecret;
|
988 |
-
}
|
989 |
-
|
990 |
-
/**
|
991 |
-
* Gets the Issuer ID when using assertion profile.
|
992 |
-
*/
|
993 |
-
public function getIssuer()
|
994 |
-
{
|
995 |
-
return $this->issuer;
|
996 |
-
}
|
997 |
-
|
998 |
-
/**
|
999 |
-
* Sets the Issuer ID when using assertion profile.
|
1000 |
-
*
|
1001 |
-
* @param string $issuer
|
1002 |
-
*/
|
1003 |
-
public function setIssuer($issuer)
|
1004 |
-
{
|
1005 |
-
$this->issuer = $issuer;
|
1006 |
-
}
|
1007 |
-
|
1008 |
-
/**
|
1009 |
-
* Gets the target sub when issuing assertions.
|
1010 |
-
*/
|
1011 |
-
public function getSub()
|
1012 |
-
{
|
1013 |
-
return $this->sub;
|
1014 |
-
}
|
1015 |
-
|
1016 |
-
/**
|
1017 |
-
* Sets the target sub when issuing assertions.
|
1018 |
-
*
|
1019 |
-
* @param string $sub
|
1020 |
-
*/
|
1021 |
-
public function setSub($sub)
|
1022 |
-
{
|
1023 |
-
$this->sub = $sub;
|
1024 |
-
}
|
1025 |
-
|
1026 |
-
/**
|
1027 |
-
* Gets the target audience when issuing assertions.
|
1028 |
-
*/
|
1029 |
-
public function getAudience()
|
1030 |
-
{
|
1031 |
-
return $this->audience;
|
1032 |
-
}
|
1033 |
-
|
1034 |
-
/**
|
1035 |
-
* Sets the target audience when issuing assertions.
|
1036 |
-
*
|
1037 |
-
* @param string $audience
|
1038 |
-
*/
|
1039 |
-
public function setAudience($audience)
|
1040 |
-
{
|
1041 |
-
$this->audience = $audience;
|
1042 |
-
}
|
1043 |
-
|
1044 |
-
/**
|
1045 |
-
* Gets the signing key when using an assertion profile.
|
1046 |
-
*/
|
1047 |
-
public function getSigningKey()
|
1048 |
-
{
|
1049 |
-
return $this->signingKey;
|
1050 |
-
}
|
1051 |
-
|
1052 |
-
/**
|
1053 |
-
* Sets the signing key when using an assertion profile.
|
1054 |
-
*
|
1055 |
-
* @param string $signingKey
|
1056 |
-
*/
|
1057 |
-
public function setSigningKey($signingKey)
|
1058 |
-
{
|
1059 |
-
$this->signingKey = $signingKey;
|
1060 |
-
}
|
1061 |
-
|
1062 |
-
/**
|
1063 |
-
* Gets the signing key id when using an assertion profile.
|
1064 |
-
*
|
1065 |
-
* @return string
|
1066 |
-
*/
|
1067 |
-
public function getSigningKeyId()
|
1068 |
-
{
|
1069 |
-
return $this->signingKeyId;
|
1070 |
-
}
|
1071 |
-
|
1072 |
-
/**
|
1073 |
-
* Sets the signing key id when using an assertion profile.
|
1074 |
-
*
|
1075 |
-
* @param string $signingKeyId
|
1076 |
-
*/
|
1077 |
-
public function setSigningKeyId($signingKeyId)
|
1078 |
-
{
|
1079 |
-
$this->signingKeyId = $signingKeyId;
|
1080 |
-
}
|
1081 |
-
|
1082 |
-
/**
|
1083 |
-
* Gets the signing algorithm when using an assertion profile.
|
1084 |
-
*
|
1085 |
-
* @return string
|
1086 |
-
*/
|
1087 |
-
public function getSigningAlgorithm()
|
1088 |
-
{
|
1089 |
-
return $this->signingAlgorithm;
|
1090 |
-
}
|
1091 |
-
|
1092 |
-
/**
|
1093 |
-
* Sets the signing algorithm when using an assertion profile.
|
1094 |
-
*
|
1095 |
-
* @param string $signingAlgorithm
|
1096 |
-
*/
|
1097 |
-
public function setSigningAlgorithm($signingAlgorithm)
|
1098 |
-
{
|
1099 |
-
if (is_null($signingAlgorithm)) {
|
1100 |
-
$this->signingAlgorithm = null;
|
1101 |
-
} elseif (!in_array($signingAlgorithm, self::$knownSigningAlgorithms)) {
|
1102 |
-
throw new InvalidArgumentException('unknown signing algorithm');
|
1103 |
-
} else {
|
1104 |
-
$this->signingAlgorithm = $signingAlgorithm;
|
1105 |
-
}
|
1106 |
-
}
|
1107 |
-
|
1108 |
-
/**
|
1109 |
-
* Gets the set of parameters used by extension when using an extension
|
1110 |
-
* grant type.
|
1111 |
-
*/
|
1112 |
-
public function getExtensionParams()
|
1113 |
-
{
|
1114 |
-
return $this->extensionParams;
|
1115 |
-
}
|
1116 |
-
|
1117 |
-
/**
|
1118 |
-
* Sets the set of parameters used by extension when using an extension
|
1119 |
-
* grant type.
|
1120 |
-
*
|
1121 |
-
* @param $extensionParams
|
1122 |
-
*/
|
1123 |
-
public function setExtensionParams($extensionParams)
|
1124 |
-
{
|
1125 |
-
$this->extensionParams = $extensionParams;
|
1126 |
-
}
|
1127 |
-
|
1128 |
-
/**
|
1129 |
-
* Gets the number of seconds assertions are valid for.
|
1130 |
-
*/
|
1131 |
-
public function getExpiry()
|
1132 |
-
{
|
1133 |
-
return $this->expiry;
|
1134 |
-
}
|
1135 |
-
|
1136 |
-
/**
|
1137 |
-
* Sets the number of seconds assertions are valid for.
|
1138 |
-
*
|
1139 |
-
* @param int $expiry
|
1140 |
-
*/
|
1141 |
-
public function setExpiry($expiry)
|
1142 |
-
{
|
1143 |
-
$this->expiry = $expiry;
|
1144 |
-
}
|
1145 |
-
|
1146 |
-
/**
|
1147 |
-
* Gets the lifetime of the access token in seconds.
|
1148 |
-
*/
|
1149 |
-
public function getExpiresIn()
|
1150 |
-
{
|
1151 |
-
return $this->expiresIn;
|
1152 |
-
}
|
1153 |
-
|
1154 |
-
/**
|
1155 |
-
* Sets the lifetime of the access token in seconds.
|
1156 |
-
*
|
1157 |
-
* @param int $expiresIn
|
1158 |
-
*/
|
1159 |
-
public function setExpiresIn($expiresIn)
|
1160 |
-
{
|
1161 |
-
if (is_null($expiresIn)) {
|
1162 |
-
$this->expiresIn = null;
|
1163 |
-
$this->issuedAt = null;
|
1164 |
-
} else {
|
1165 |
-
$this->issuedAt = time();
|
1166 |
-
$this->expiresIn = (int)$expiresIn;
|
1167 |
-
}
|
1168 |
-
}
|
1169 |
-
|
1170 |
-
/**
|
1171 |
-
* Gets the time the current access token expires at.
|
1172 |
-
*
|
1173 |
-
* @return int
|
1174 |
-
*/
|
1175 |
-
public function getExpiresAt()
|
1176 |
-
{
|
1177 |
-
if (!is_null($this->expiresAt)) {
|
1178 |
-
return $this->expiresAt;
|
1179 |
-
}
|
1180 |
-
|
1181 |
-
if (!is_null($this->issuedAt) && !is_null($this->expiresIn)) {
|
1182 |
-
return $this->issuedAt + $this->expiresIn;
|
1183 |
-
}
|
1184 |
-
|
1185 |
-
return null;
|
1186 |
-
}
|
1187 |
-
|
1188 |
-
/**
|
1189 |
-
* Returns true if the acccess token has expired.
|
1190 |
-
*
|
1191 |
-
* @return bool
|
1192 |
-
*/
|
1193 |
-
public function isExpired()
|
1194 |
-
{
|
1195 |
-
$expiration = $this->getExpiresAt();
|
1196 |
-
$now = time();
|
1197 |
-
|
1198 |
-
return !is_null($expiration) && $now >= $expiration;
|
1199 |
-
}
|
1200 |
-
|
1201 |
-
/**
|
1202 |
-
* Sets the time the current access token expires at.
|
1203 |
-
*
|
1204 |
-
* @param int $expiresAt
|
1205 |
-
*/
|
1206 |
-
public function setExpiresAt($expiresAt)
|
1207 |
-
{
|
1208 |
-
$this->expiresAt = $expiresAt;
|
1209 |
-
}
|
1210 |
-
|
1211 |
-
/**
|
1212 |
-
* Gets the time the current access token was issued at.
|
1213 |
-
*/
|
1214 |
-
public function getIssuedAt()
|
1215 |
-
{
|
1216 |
-
return $this->issuedAt;
|
1217 |
-
}
|
1218 |
-
|
1219 |
-
/**
|
1220 |
-
* Sets the time the current access token was issued at.
|
1221 |
-
*
|
1222 |
-
* @param int $issuedAt
|
1223 |
-
*/
|
1224 |
-
public function setIssuedAt($issuedAt)
|
1225 |
-
{
|
1226 |
-
$this->issuedAt = $issuedAt;
|
1227 |
-
}
|
1228 |
-
|
1229 |
-
/**
|
1230 |
-
* Gets the current access token.
|
1231 |
-
*/
|
1232 |
-
public function getAccessToken()
|
1233 |
-
{
|
1234 |
-
return $this->accessToken;
|
1235 |
-
}
|
1236 |
-
|
1237 |
-
/**
|
1238 |
-
* Sets the current access token.
|
1239 |
-
*
|
1240 |
-
* @param string $accessToken
|
1241 |
-
*/
|
1242 |
-
public function setAccessToken($accessToken)
|
1243 |
-
{
|
1244 |
-
$this->accessToken = $accessToken;
|
1245 |
-
}
|
1246 |
-
|
1247 |
-
/**
|
1248 |
-
* Gets the current ID token.
|
1249 |
-
*/
|
1250 |
-
public function getIdToken()
|
1251 |
-
{
|
1252 |
-
return $this->idToken;
|
1253 |
-
}
|
1254 |
-
|
1255 |
-
/**
|
1256 |
-
* Sets the current ID token.
|
1257 |
-
*
|
1258 |
-
* @param $idToken
|
1259 |
-
*/
|
1260 |
-
public function setIdToken($idToken)
|
1261 |
-
{
|
1262 |
-
$this->idToken = $idToken;
|
1263 |
-
}
|
1264 |
-
|
1265 |
-
/**
|
1266 |
-
* Gets the refresh token associated with the current access token.
|
1267 |
-
*/
|
1268 |
-
public function getRefreshToken()
|
1269 |
-
{
|
1270 |
-
return $this->refreshToken;
|
1271 |
-
}
|
1272 |
-
|
1273 |
-
/**
|
1274 |
-
* Sets the refresh token associated with the current access token.
|
1275 |
-
*
|
1276 |
-
* @param $refreshToken
|
1277 |
-
*/
|
1278 |
-
public function setRefreshToken($refreshToken)
|
1279 |
-
{
|
1280 |
-
$this->refreshToken = $refreshToken;
|
1281 |
-
}
|
1282 |
-
|
1283 |
-
/**
|
1284 |
-
* Sets additional claims to be included in the JWT token
|
1285 |
-
*
|
1286 |
-
* @param array $additionalClaims
|
1287 |
-
*/
|
1288 |
-
public function setAdditionalClaims(array $additionalClaims)
|
1289 |
-
{
|
1290 |
-
$this->additionalClaims = $additionalClaims;
|
1291 |
-
}
|
1292 |
-
|
1293 |
-
/**
|
1294 |
-
* Gets the additional claims to be included in the JWT token.
|
1295 |
-
*
|
1296 |
-
* @return array
|
1297 |
-
*/
|
1298 |
-
public function getAdditionalClaims()
|
1299 |
-
{
|
1300 |
-
return $this->additionalClaims;
|
1301 |
-
}
|
1302 |
-
|
1303 |
-
/**
|
1304 |
-
* The expiration of the last received token.
|
1305 |
-
*
|
1306 |
-
* @return array
|
1307 |
-
*/
|
1308 |
-
public function getLastReceivedToken()
|
1309 |
-
{
|
1310 |
-
if ($token = $this->getAccessToken()) {
|
1311 |
-
return [
|
1312 |
-
'access_token' => $token,
|
1313 |
-
'expires_at' => $this->getExpiresAt(),
|
1314 |
-
];
|
1315 |
-
}
|
1316 |
-
|
1317 |
-
return null;
|
1318 |
-
}
|
1319 |
-
|
1320 |
-
/**
|
1321 |
-
* Get the client ID.
|
1322 |
-
*
|
1323 |
-
* Alias of {@see Google\Auth\OAuth2::getClientId()}.
|
1324 |
-
*
|
1325 |
-
* @param callable $httpHandler
|
1326 |
-
* @return string
|
1327 |
-
* @access private
|
1328 |
-
*/
|
1329 |
-
public function getClientName(callable $httpHandler = null)
|
1330 |
-
{
|
1331 |
-
return $this->getClientId();
|
1332 |
-
}
|
1333 |
-
|
1334 |
-
/**
|
1335 |
-
* @todo handle uri as array
|
1336 |
-
*
|
1337 |
-
* @param string $uri
|
1338 |
-
* @return null|UriInterface
|
1339 |
-
*/
|
1340 |
-
private function coerceUri($uri)
|
1341 |
-
{
|
1342 |
-
if (is_null($uri)) {
|
1343 |
-
return;
|
1344 |
-
}
|
1345 |
-
|
1346 |
-
return Psr7\uri_for($uri);
|
1347 |
-
}
|
1348 |
-
|
1349 |
-
/**
|
1350 |
-
* @param string $idToken
|
1351 |
-
* @param string|array|null $publicKey
|
1352 |
-
* @param array $allowedAlgs
|
1353 |
-
* @return object
|
1354 |
-
*/
|
1355 |
-
private function jwtDecode($idToken, $publicKey, $allowedAlgs)
|
1356 |
-
{
|
1357 |
-
if (class_exists('Firebase\JWT\JWT')) {
|
1358 |
-
return \Firebase\JWT\JWT::decode($idToken, $publicKey, $allowedAlgs);
|
1359 |
-
}
|
1360 |
-
|
1361 |
-
return \JWT::decode($idToken, $publicKey, $allowedAlgs);
|
1362 |
-
}
|
1363 |
-
|
1364 |
-
private function jwtEncode($assertion, $signingKey, $signingAlgorithm, $signingKeyId = null)
|
1365 |
-
{
|
1366 |
-
if (class_exists('Firebase\JWT\JWT')) {
|
1367 |
-
return \Firebase\JWT\JWT::encode(
|
1368 |
-
$assertion,
|
1369 |
-
$signingKey,
|
1370 |
-
$signingAlgorithm,
|
1371 |
-
$signingKeyId
|
1372 |
-
);
|
1373 |
-
}
|
1374 |
-
|
1375 |
-
return \JWT::encode($assertion, $signingKey, $signingAlgorithm, $signingKeyId);
|
1376 |
-
}
|
1377 |
-
|
1378 |
-
/**
|
1379 |
-
* Determines if the URI is absolute based on its scheme and host or path
|
1380 |
-
* (RFC 3986).
|
1381 |
-
*
|
1382 |
-
* @param string $uri
|
1383 |
-
* @return bool
|
1384 |
-
*/
|
1385 |
-
private function isAbsoluteUri($uri)
|
1386 |
-
{
|
1387 |
-
$uri = $this->coerceUri($uri);
|
1388 |
-
|
1389 |
-
return $uri->getScheme() && ($uri->getHost() || $uri->getPath());
|
1390 |
-
}
|
1391 |
-
|
1392 |
-
/**
|
1393 |
-
* @param array $params
|
1394 |
-
* @return array
|
1395 |
-
*/
|
1396 |
-
private function addClientCredentials(&$params)
|
1397 |
-
{
|
1398 |
-
$clientId = $this->getClientId();
|
1399 |
-
$clientSecret = $this->getClientSecret();
|
1400 |
-
|
1401 |
-
if ($clientId && $clientSecret) {
|
1402 |
-
$params['client_id'] = $clientId;
|
1403 |
-
$params['client_secret'] = $clientSecret;
|
1404 |
-
}
|
1405 |
-
|
1406 |
-
return $params;
|
1407 |
-
}
|
1408 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/google/auth/src/ProjectIdProviderInterface.php
DELETED
@@ -1,32 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2020 Google LLC
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
-
* you may not use this file except in compliance with the License.
|
7 |
-
* You may obtain a copy of 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,
|
13 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
-
* See the License for the specific language governing permissions and
|
15 |
-
* limitations under the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
namespace Google
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|