We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A slack token is the new method of authentication
It allows multiple slack channels and specific scopes.
Here's how to hit the API using the token instead of the webhook
https://api.slack.com/tutorials/tracks/posting-messages-with-curl
# test auth auth_test = requests.post( 'https://slack.com/api/auth.test', headers=({'Authorization': f'Bearer {self.slack_token}'}) ).json() # send message requests.post( 'https://slack.com/api/chat.postMessage', headers=({'Authorization': f'Bearer {self.slack_token}'}), json=payload )
terraform-aws-clickops-notifier/clickopsnotifier/app.py
Lines 57 to 64 in be9694c
terraform-aws-clickops-notifier/clickopsnotifier/messenger.py
Lines 10 to 15 in be9694c
Line 63 in be9694c
Related to #76
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Background
A slack token is the new method of authentication
It allows multiple slack channels and specific scopes.
How
Here's how to hit the API using the token instead of the webhook
https://api.slack.com/tutorials/tracks/posting-messages-with-curl
Code references
terraform-aws-clickops-notifier/clickopsnotifier/app.py
Lines 57 to 64 in be9694c
terraform-aws-clickops-notifier/clickopsnotifier/messenger.py
Lines 10 to 15 in be9694c
terraform-aws-clickops-notifier/clickopsnotifier/messenger.py
Line 63 in be9694c
Related to #76
The text was updated successfully, but these errors were encountered: