ark::slack

Classes

Functions

Declared in “ark/slack/slack_comms.hh”:

  • void slack_webhook_post(const std::string & channel_webhook, const std::string & message, std::chrono::milliseconds timeout)
    A simple helper to execute an HTTP POST to the defined Slack webhook.

    Throws if there is anything but a ‘200’ response.

  • void slack_post_message(const std::string & endpoint, const std::string & token, const std::string & channel_id, const std::string & message, std::chrono::milliseconds timeout)
    A simple helper to execute an HTTP POST to Slack using an estabilished Bearer token and known channel id.

    Throws if there is anything but a ‘200’ response.