var SlackClient = require('slack-api-client');
var slack = new SlackClient('token');
slack.api.chat.postMessage({
channel: '#notifications',
username: 'Slack Client',
text: 'Hello world!'
}, function (err, res) {
if (err) { throw err; }
console.log(res);
});
$ npm install slack-api-client
-
API:
-
Work in progress. Documentation will be available shortly.
More information at Slack API Documentation
To run the test suite, first invoke the following command within the repo, installing the development dependencies:
$ npm install
Then run the tests:
$ npm test