This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// *** Request Verification *** | |
// The currently recommended way is to verify request signature: https://api.slack.com/authentication/verifying-requests-from-slack | |
// Unfortunately, GAS web apps don"t have means to access request headers. Thus, this example uses the old way to verify requests. | |
// >>> Settings > Basic Information > App Credentials > Verification Token | |
const legacyVerificationToken = PropertiesService.getScriptProperties().getProperty("SLACK_VERIFICATION_TOKEN"); | |
// *** OAuth Access Token *** | |
// Install your Slack app into its development workspace. | |
// >>> Settings > Install App > Bot User OAuth Access Token | |
const token = PropertiesService.getScriptProperties().getProperty("SLACK_BOT_TOKEN"); |