Send Question To Slack
POST {{slackIncomingWebhookUrl}}
This Request Sends a Trivia Question to Slack.
Request Body
{"text"=>"Can You Answer this Question?", "attachments"=>[{"text"=>"{{question}}", "fallback"=>"You are unable to choose a game", "callback_id"=>"word_game", "color"=>"#3AA3E3", "attachment_type"=>"default", "actions"=>[{"name"=>"correct answer", "text"=>"{{correctAnswer}}", "type"=>"button", "value"=>"{{correctAnswer}}"}, {"name"=>"wrong answer", "text"=>"{{wrongAnswer1}}", "type"=>"button", "value"=>"{{wrongAnswer1}}"}]}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |