Magento Module: Slack Webhook Receiver

A module for receiving comments and forwarding them to a target Slack channel.

Details

This module was built on top of a Slack integration module by Steve Robbins. Its function is simple, to expose an endpoint proxy for passing channel comments to the Slack API.

Screenshots

N/A

Technical Features

N/A

Code Sample

public function receive(Varien_Event_Observer $observer)
{
    /* @var $data Groove_SlackWebhook_Model_Payload */
    $data = $observer->getEvent()->getObject();

    if ($this->_validateData($data)) {
        $model = Mage::getModel('slack/api_chat')
            ->setChannel($data->getChannel())
            ->setText($data->getText())
            ->postMessage();
    }
}

Static Analysis