Skip to content

Instantly share code, notes, and snippets.

@nickoneill
nickoneill / Usage
Last active May 19, 2016 00:40
Post to Slack from Parse Cloud Code
var Slack = require('cloud/slack.js');
var slack = new Slack('https://hooks.slack.com/services/INCOMING_SLACK_WEBHOOK_URL');
return slack.send({text: msg}).then(function(){
// success
}, function(error){
// error
});