Skip to content

abarrak/ms_teams_notification

Repository files navigation

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.

About

A ruby gem for simple MS Teams noftifications.

Resources

License

Stars

Watchers

Forks