public function execute($_options = array()) { $request_http = new com_http(trim($this->getConfiguration('webhook'))); $post = array('text' => trim($_options['title'] . ' ' . $_options['message'])); if ($this->getConfiguration('destination') != '') { $post['channel'] = $this->getConfiguration('destination'); } $request_http->setPost(array('payload' => json_encode($post))); $request_http->exec(1, 1); }