Ruby Wrapper Library to send requests to Microsoft Teams Webhooks.
Add this line to your application's Gemfile:
gem 'msteams-ruby-client'
And then execute:
$ bundle
Or install it yourself as:
$ gem install msteams-ruby-client
require 'msteams-ruby-client'
teams = Teams.new('<webhook url>')
teams.post('hello<br>world')
Or
$ TEAMS_WEBHOOK_URL=https://outlook.office.com/webhook/... bundle exec ruby examples/post/post.rb
teams.post('hello',
summary: 'world', # default is 1st argument ( Ex. hello )
text2html: true, # default is false, \n to <br> and autolink
themeColor: '0078D7',
title: 'Title'
)
The gem is available as open source under the terms of the MIT License.