TL;DR - I would like to setup a Slack slash command that works on Google Apps Script. How do you recommend I do so?
Context:
I currently use google.com/script with Sheets to trigger a webhook call to Slack when someone fills out a Google Form. Here it is for reference. My question is an additional feature I'd like to add that won't overlap with this code.
I want to listen in Google Apps for a Slack slash command, so I've been looking through tons of examples of callbacks. I don't understand the dance necessary to get this going. Here are the variables:
- I've setup the Slack slash command, which asks for a URL and method type (POST or GET), then gives me a
tokenfor verification of the outgoing payload. - I've setup OAuth 2.0 client IDs on Google APIs, which provides a
client IDandsecret token. - The Google Apps tutorial here offers
https://script.google.com/macros/d/{SCRIPT ID}/usercallback, but if I'm reading it correctly in this guide it would require user authorization
I've reviewed other questions that mention callback (this and this) but haven't found anything relevant.
Guidance toward the next steps of just being able to configure a callback URL and understand how it will authentication and ultimately consume the API call from Slack in Google would be awesome.