slack v0.1.0 API Reference

Modules

This module defines the Slack struct. Use create/1 to convert webhook request data from Slack for parsing slash command and interactive message requests

This is a helper module to use with a Phoenix controller to handle HTTP requests coming from Slack for Slash Commands or actions from Interactive Messages

Fetches the Slack data from conn.params and converts it to a Slack struct stored in conn.private as slack_data

Checks conn.private.slack_data for :token and compares it to :token in the second function arguement list. conn is returned, unchanged, if the tokens are a match. If the slack data token does not match the argument token, the connection is halted and conn.status is set to 400