No release in over 3 years
A ruby library that offers simple notification capablities for Microsoft Teams.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

Runtime

 Project Readme

MS Teams Notifications

Gem Version Build License: MIT

A ruby library from simple notification capablities for Microsoft Teams.

Installation

Install the gem and add to the application's Gemfile by executing:

bundle add ms_teams_notification

If bundler is not being used to manage dependencies, install the gem by executing:

gem install ms_teams_notification

Usage

You can build your notifer passing the webhook url and title:

opts = { ms_teams_webhook: "", notification_subject: "" }
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.

message = MsTeamsNotification::Formatter.formlate_meessage "Message", { time: Time.now }

Then, fire it:

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.