auth0 webtask for taking notes in slack.
- Create a firebase account
- Create your secret token ** Go to settings -> Database -> add secret
- Copy and Paste this into your rules and replace <'SECRET'> with your secret
{
"rules": {
".read": "auth != null && auth.uid === <'SECRET'>",
".write": "auth != null && auth.uid === <'SECRET'>"
}
}
- Install the webtask cli
npm install -g wt-cli
- Initialize it
wt init <your email>
- Create the task
wt create slack.js --secret 'FIREBASE=<Firebase URL>|<Firebase secret>'
** Replace and with your url and secret
- Create 3 custom integrations
- /post-it
- Adds a note to firebase
- /pull-it
- Gets a note by id
- /list-it
- Gets the last note posted
- /post-it
- Add your web task URL as the endpoint to post to.
You can now add notes to your firebase database from slack!