0.0.2 • Published 2 years ago

@mymoons/mattermost-notifications-2 v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Mattermost Notifications 2

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
 * @param {String} mattermostURL optional mattermost urls
 * @returns {Object} Response from mattermost API
 */
const sendNotification = async ({text, channel, username = 'Apolo de moons', ...props}, endpoint,mattermostURL) => {}
0.0.2

2 years ago

0.0.1

2 years ago