Node.js
Slack

Node.jsでSlackにIncoming Webhookで投稿する

var request = require('request');

request.post({
  uri: 'https://hooks.slack.com/services/AAAAAAAAA/BBBBBBBBB/CCCCCCCCCCCCCCCCCCCCCCCC',
  headers: { 'Content-Type': 'application/json' },
  json: {
    username: 'namaenamae',
    icon_emoji: ':ghost:',
    text: 'hogehogehoge'
  }
}, function(error, response, body){
  if (!error && response.statusCode === 200) {
    console.log(body);
  } else {
    console.log('error');
  }
});