library/Garp/Service/Slack.php
public function postMessage($text, $params = array()) {
        $config = $this->getConfig();
        $params['text'] = $text;
        $params = $config->getParams($params);

        return $this->_fsock_post(
            $this->_constructWebhookUrl(),
            $this->_constructParameters($params)
        );
    }
public function postMessage($text, $params = array()) {
        $config = $this->getConfig();
        $params['text'] = $text;
        $params = $config->getParams($params);

        return $this->_fsock_post(
            $this->_constructWebhookUrl(),
            $this->_constructParameters($params)
        );
    }
public function postMessage ( $ text , $ params = array ( ) ) { $ config = $ this -> getConfig ( ) ; $ params [ 'text' ] = $ text ; $ params = $ config -> getParams ( $ params ) ; return $ this -> _fsock_post ( $ this -> _constructWebhookUrl ( ) , $ this -> _constructParameters ( $ params ) ) ; }
Post a message in a Slack channel.
@param $text     Text to post in the Slack message
@param $params   Extra, optional Slack parameters that
override the app-wide settings in app.ini,
that in turn override Slack's Incoming
Webhook settings.
f.i.:
'username' => 'me',
'icon_emoji' => ':ghost:',
'channel' => '#my-channel'
Post a message in a Slack channel .