summaryrefslogtreecommitdiff
path: root/Postman/notifications/PostmanNotify.php
diff options
context:
space:
mode:
authoryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2019-11-25 07:50:30 +0000
committeryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2019-11-25 07:50:30 +0000
commit907ce8c044159ca8da6ccce3ec5362ac61e7c142 (patch)
tree4e4b83a3aa041a1826e4ac876b001195fce3f7c2 /Postman/notifications/PostmanNotify.php
parenta41b9219a66f4018dc581f561fbe3fedd24e73f2 (diff)
downloadPost-SMTP-907ce8c044159ca8da6ccce3ec5362ac61e7c142.zip
deleted by mistake
Diffstat (limited to 'Postman/notifications/PostmanNotify.php')
-rw-r--r--Postman/notifications/PostmanNotify.php42
1 files changed, 0 insertions, 42 deletions
diff --git a/Postman/notifications/PostmanNotify.php b/Postman/notifications/PostmanNotify.php
deleted file mode 100644
index 7654ecb..0000000
--- a/Postman/notifications/PostmanNotify.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-if ( ! defined( 'ABSPATH' ) ) {
- exit; // Exit if accessed directly
-}
-require_once 'INotify.php';
-require_once 'PostmanMailNotify.php';
-require_once 'PostmanPushoverNotify.php';
-require_once 'PostmanSlackNotify.php';
-
-class PostmanNotify {
- private $notify;
-
- public function __construct( Postman_Notify $notify ) {
- $this->notify = $notify;
- }
-
- public function send( $message, $log ) {
- $this->notify->send_message( $message );
- }
-
- public function push_to_chrome($message) {
- $push_chrome = PostmanOptions::getInstance()->useChromeExtension();
-
- if ( $push_chrome ) {
- $uid = PostmanOptions::getInstance()->getNotificationChromeUid();
-
- if ( empty( $uid ) ) {
- return;
- }
-
- $url = 'https://postmansmtp.com/chrome/' . $uid;
-
- $args = array(
- 'body' => array(
- 'message' => $message
- )
- );
-
- $response = wp_remote_post( $url , $args );
- }
- }
-} \ No newline at end of file