saltext.mattermost.utils.mattermost

Library for interacting with Mattermost Incoming Webhooks

saltext.mattermost.utils.mattermost.query(hook=None, api_url=None, data=None)[source]

Mattermost object method function to construct and execute on the API URL.

Parameters:
  • api_url – The Mattermost API URL

  • hook – The Mattermost hook.

  • data – The data to be sent for POST method.

Returns:

The json response from the API call or False.