Skip to content

Instantly share code, notes, and snippets.

const https = require('https'),
qs = require('querystring'),
ACCESS_TOKEN = "ACCESS_TOKEN_FROM_SLACK",
VERIFICATION_TOKEN = "TOKEN_FROM_SLACK";
// Verify Url - https://api.slack.com/events/url_verification
function verify(data, callback) {
if (data.token === VERIFICATION_TOKEN) {
callback(null, data.challenge);
}