Skip to content
New issue

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

Customize Webhooks #96

Closed
areyesES opened this issue Aug 9, 2018 · 1 comment
Closed

Customize Webhooks #96

areyesES opened this issue Aug 9, 2018 · 1 comment
Assignees

Comments

@areyesES
Copy link

areyesES commented Aug 9, 2018

Summary

I am trying to send messages to SLACK's WEB API (https://api.slack.com/web)
However, when you HTTP POST a message to Slack, it requires specific key/values.

Webhook URLs for Your Workspace
To dispatch messages with your webhook URL, send your message in JSON as the body of an application/json POST request.

POST /api/conversations.create
Content-type: application/json
Authorization: Bearer xoxa-xxxxxxxxx-xxxx
{"name":"something-urgent"}

or

POST /api/chat.postMessage
Content-type: application/json
Authorization: Bearer xoxa-xxxxxxxxx-xxxx
{"channel":"C061EG9SL","text":"I hope the tour went well, Mr. Wonka.","attachments":[{"text":"Who wins the lifetime supply of chocolate?","fallback":"You could be telling the computer exactly what it can do with a lifetime supply of chocolate.","color":"#3AA3E3","attachment_type":"default","callback_id":"select_simple_1234","actions":[{"name":"winners_list","text":"Who should win?","type":"select","data_source":"users"}]}]}

Steps to reproduce the problem

Create a free SLACK account, and follow instructions as posted to create a SLACK APP (https://api.slack.com/slack-apps) and generate your token and web hook url.

Eaxmple Curl command:
curl -X POST -H 'Content-type: application/json' --data '{"text":"Hello, World!"}' https://hooks.slack.com/services/THSJ904I/ASFJK994/LKJSF80923R54

Your Setup

Single Master - 16 slaves
Use Ansible for paralleling setup and setting configs.
Mostly use Python plugins.

Operating system and version?

RHEL 7.5

Node.js version?

v6.14.3

Cronicle software version?

Cronicle Version 0.8.6

Are you using a multi-server setup, or just a single server?

Multi-Server

Are you using the filesystem as back-end storage, or S3/Couchbase?

Filesystem

Can you reproduce the crash consistently?

Cronicle just doesn't send anything.

Log Excerpts

@jhuckaby jhuckaby self-assigned this Aug 9, 2018
@jhuckaby
Copy link
Owner

jhuckaby commented Aug 9, 2018

This has been implemented in Version 0.8.20.

Check out the Slack Webhook Integration Wiki for full details.

Thanks for the feature suggestion!

@jhuckaby jhuckaby closed this as completed Aug 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants