@mymoons/mattermost-notifications

1.1.3 • Public • Published

Mattermost Notifications

Usage

/**
 * sendNotification sends a notification to the desired destination with the specified content
 * @param {Object} obj Object containing data
 * @param {String} obj.text Content of the message
 * @param {String} obj.to Recipient of the message, can be a channel or a user if preceded by @
 * @param {String} obj.username Username the message is sent by
 * @param {...Object} obj.props Any acceptable prop that mattermost can use
 * @param {String} endpoint endpoint token
 * @returns {Object} Response from mattermost API
 */
const sendNotification = async ({text, channel, username = 'Apolo de moons', ...props}, endpoint) => {}

Readme

Keywords

none

Package Sidebar

Install

npm i @mymoons/mattermost-notifications

Weekly Downloads

3

Version

1.1.3

License

ISC

Unpacked Size

2.35 kB

Total Files

3

Last publish

Collaborators

  • adri.stcruz
  • belexus
  • jccanizal
  • sergiomatamoons