Skip to content

oooooooo/msteams-ruby-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

$ TEAMS_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, \n to <br> and autolink
  themeColor: '0078D7',
  title: 'Title'
  )

License

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