send message to slack without token

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
https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
I'm not allowed to have
T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
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?
3 Replies
JavaBot
JavaBot3w ago
This post has been reserved for your question.
Hey @VaygrEmpire! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
VaygrEmpire
VaygrEmpireOP3w ago
resolved by sending token from airflow dag with xcom variable to scala class, then connect to HttpPost
JavaBot
JavaBot3w ago
Post Closed
This post has been closed by <@205489120984825857>.

Did you find this page helpful?