MS Teams Notifications
A ruby library from simple notification capablities for Microsoft Teams.
Installation
Install the gem and add to the application’s Gemfile by executing:
“sh bundle add ms_teams_notification
“
If bundler is not being used to manage dependencies, install the gem by executing:
“sh gem install ms_teams_notification
“
Usage
You can build your notifer per configuration:
“by opts = { ms_teams_webhook: “”, notification_subject: “Notice: for service maintenance” } notifier = MsTeamsNotification::Base.new options
“
Optionally you can formlate a rich message with formatter. THe formatter accepts a hash of additional fields that will be appended as list after the message.
“by text = “The system will undergo maintenace today.” text_opts = { time: Time.now, support_phone: “9304-1343”}
message = MsTeamsNotification::Formatter.formlate_meessage text, text_opts
“
Then, fire it:
“by notifier.send_ms_teams_notice message
“
API Docs
The gem specs can be found at RubyDocs.
Contributing
Bug reports and pull requests are welcome on GitHub.
License
The gem is available as open source under the terms of the MIT License.