2017 © Pedro Peláez
 

magento-module magento-slack

Magento integration with Slack.com

image

steverobbins/magento-slack

Magento integration with Slack.com

  • Thursday, January 21, 2016
  • by steverobbins
  • Repository
  • 3 Watchers
  • 17 Stars
  • 105 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 3400 % Grown

The README.md

Magento Slack Integration

Build Status Scrutinizer Code Quality, (*1)

*Note: This module doesn't do much on it's own. It's just an api wrapper for integrations you write. You can use it chat to your Slack channel when: an order is placed, and exception is logged, an account is created, etc., (*2)

Config

image, (*3)

  • In Slack: Create a bot under "Integrations" in the
  • In Magento: Under System > Config > Services > Slack, enable the module and add your token
  • Click Save
  • Click Get Channels to collect your channels and their identifiers

API Usage

Review the methods in Slack's API., (*4)

Invoke with:, (*5)

Mage::getModel('slack/api_<method>')
    ->setFooArg('bar')
    -><action>();

For instance:, (*6)

Chat "Hello World" to the #general Channel

$chat = Mage::getModel('slack/api_chat');

$chat->setChannel('general')
    ->setText('Hello World');

$chat->postMessage();

var_dump($chat->getData());

Notice you use the channel name, not it's identifier., (*7)

Upload a File

Mage::getModel('slack/api_files')
    ->setChannels(array('general', 'random'))
    ->setContent(file_get_contents($someFile))
    ->upload();

etc., (*8)

The Versions

21/01 2016

dev-master

9999999-dev

Magento integration with Slack.com

  Sources   Download

CC-BY-3.0

The Development Requires

by Steve Robbins

28/07 2015

dev-dev

dev-dev

Magento integration with Slack.com

  Sources   Download

CC-BY-3.0

The Development Requires

by Steve Robbins

28/07 2015

v1.0.0

1.0.0.0

Magento integration with Slack.com

  Sources   Download

CC-BY-3.0

The Development Requires

by Steve Robbins