1
0
mirror of https://github.com/beestat/app.git synced 2026-05-13 10:52:29 -04:00

Fixed #266 - Migrate from MailChimp to MailGun

This commit is contained in:
Jon Ziebell
2020-06-21 22:10:38 -04:00
parent f909470b5d
commit d0ce15606b
17 changed files with 356 additions and 152 deletions
+5 -3
View File
@@ -1,7 +1,7 @@
<?php
/**
* All external APIs (ecobee, SmartyStreets, Patreon, MailChimp) extend this
* All external APIs (ecobee, SmartyStreets, Patreon, Mailgun) extend this
* class. This provides a generic cURL function with a couple basic arguments,
* and also logging.
*
@@ -88,7 +88,10 @@ class external_api extends cora\api {
$this->curl_info = curl_getinfo($curl_handle);
if($curl_response === false || curl_errno($curl_handle) !== 0) {
if(
$curl_response === false ||
curl_errno($curl_handle) !== 0
) {
// Error logging
if($this::$log_mysql === 'all' || $this::$log_mysql === 'error') {
$this->log_mysql($curl_response, true);
@@ -103,7 +106,6 @@ class external_api extends cora\api {
'curl_error' => curl_error($curl_handle)
]
);
}
// General (success) logging