Anyone know how to send a message to slack without token anywhere in the code?
Slack token looks like this:
https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
I'm not allowed to have T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX anywhere in the code or in json file. I know similar function can be achieved in python via the use of BaseHook and getting password from slack conn id. Is there way to send a message to slack in Java as well?