Teams

Gem Version

Ruby Wrapper Library to send requests to Microsoft Teams Webhooks.

Installation

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

Usage

require 'msteams-ruby-client'

teams = Teams.new('<webhook url>')
teams.post('hello<br>world')

Or

$ MSTEAMS_RUBY_CLIENT_WEBHOOK_URL=https://outlook.office.com/webhook/... bundle exec ruby examples/post/post.rb

Options

teams.post('hello',
  summary: 'world', # default is 1st argument ( Ex. hello )
  text2html: true,  # default is false
  title: 'Title'    # default is blabk, \n to <br> and autolink
  )

License

The gem is available as open source under the terms of the MIT License.