/** * Set SendGrid Credentials * * ## Overview * * @uses SendgridConnector * * @see NotificationManager * * @param array An array of creds for SendGrid API. * @return true Always unless fatal error or exception is thrown. * * @version 2015-07-05.1 * @since 0.5.1b * @author TronNet DevOps [Sean Murray] <*****@*****.**> */ public static function SetInterface(SendGrid $interface) { DebugManager::Log("Setting SendGrid Interface", '@'); DebugManager::Log(self::$_interface); self::$_interface = $interface; return true; }
/** * Send A Notification via SendGrid * * ## Overview * * @uses NotificationManager * * @see SatanBarbaraApp * * @param array The HTTP params for SendGrid API; such as message, to, etc. * @return string A response string for request from SendGrid API. * * @version 2015-07-05.1 * @since 0.5.1b * @author TronNet DevOps [Sean Murray] <*****@*****.**> */ public static function Send(array $params) { DebugManager::Log("Sending an email via SendGrid", '@'); DebugManager::Log($params); return SendgridConnector::SendEmail($params); }