$cid], $public_key); if (is_wp_error($encrypted_data)) { $slack_integration = false; } else { if (!function_exists('abmsense_get_api_request_args')) { require_once(plugin_dir_path(__FILE__) . 'utility.php'); } $args = abmsense_get_api_request_args(wp_json_encode($encrypted_data)); $response = abmsense_safe_api_request($config['get_abmsense_slack_integration'], $args); if (is_wp_error($response)) { $slack_integration = false; } else { $raw_body = wp_remote_retrieve_body($response); $status_code = wp_remote_retrieve_response_code($response); $body = json_decode($raw_body, true); $slack_integration = ($body && isset($body['success']) && $body['success']) ? (object)$body['data'] : false; if (!$slack_integration) { abmsense_log('No current Slack integration exists for CID: ' . $cid, 'warning'); } } } ?>
#abmsense_alerts)./invite @your-bot).#abmsense_alerts).
Get Notified on Slack When ABMsense Identifies a Hot Lead.
is_active) && !$slack_integration->is_active) { // Disabled state ?>