All Projects → brettmillerb → MsftTeams

brettmillerb / MsftTeams

Licence: MIT license
Module for Posting messages to MSTeams via Webhook

Programming Languages

powershell
5483 projects

Projects that are alternatives of or similar to MsftTeams

pr-reviews-reminder-action
A GitHub Action to send Slack/Teams notification for Pull Request that are waiting for reviewers.
Stars: ✭ 18 (-48.57%)
Mutual labels:  webhook, microsoft-teams
teams-api
Unofficial Microsoft Teams Library
Stars: ✭ 92 (+162.86%)
Mutual labels:  microsoft-teams, msteams
QuickTeams
Download, Clone, Archive, Un-Archive your Microsoft Teams and manage the apps you've installed to them
Stars: ✭ 31 (-11.43%)
Mutual labels:  microsoft-teams, msteams
go-teams-notify
A package to send messages to a Microsoft Teams channel
Stars: ✭ 29 (-17.14%)
Mutual labels:  webhook, microsoft-teams
mx-puppet-teams
Microsoft Teams puppeting bridge for Matrix
Stars: ✭ 30 (-14.29%)
Mutual labels:  msteams
Example Bot
[WIP] An A-Z example of a PHP Telegram Bot.
Stars: ✭ 211 (+502.86%)
Mutual labels:  webhook
Webhook.site
⚓️ Easily test HTTP webhooks with this handy tool that displays requests instantly.
Stars: ✭ 2,842 (+8020%)
Mutual labels:  webhook
Hooka
😎 A webhook server with zero coding
Stars: ✭ 180 (+414.29%)
Mutual labels:  webhook
YappyGitLab
A GitLab monitor bot for Discord
Stars: ✭ 51 (+45.71%)
Mutual labels:  webhook
Self-Hosted-Asp.Net-WebHooks
Self hosted custom webhook receiver and sender
Stars: ✭ 50 (+42.86%)
Mutual labels:  webhook
appveyor-discord-webhook
⛓ Here's your serverless solution for sending build status from AppVeyor to Discord as webhooks.
Stars: ✭ 52 (+48.57%)
Mutual labels:  webhook
Harpoon
GitHub WebHook server written in Go
Stars: ✭ 240 (+585.71%)
Mutual labels:  webhook
ServiceStack.Webhooks
Add Webhooks to your ServiceStack services
Stars: ✭ 26 (-25.71%)
Mutual labels:  webhook
Twitch4j
Modular Async/Sync/Reactive Twitch API Client / IRC Client
Stars: ✭ 209 (+497.14%)
Mutual labels:  webhook
linux-teams
An unofficial Microsoft Teams application for Linux
Stars: ✭ 19 (-45.71%)
Mutual labels:  microsoft-teams
Telegrambots
Java library to create bots using Telegram Bots API
Stars: ✭ 2,728 (+7694.29%)
Mutual labels:  webhook
SmsForwarder
短信转发器——监控Android手机短信、来电、APP通知,并根据指定规则转发到其他手机:钉钉群自定义机器人、钉钉企业内机器人、企业微信群机器人、飞书机器人、企业微信应用消息、邮箱、bark、webhook、Telegram机器人、Server酱、PushPlus、手机短信等。包括主动控制服务端与客户端,让你轻松远程发短信、查短信、查通话、查话簿、查电量等。(V3.0 新增)PS.这个APK主要是学习与自用,如有BUG请提ISSUE,同时欢迎大家提PR指正
Stars: ✭ 8,386 (+23860%)
Mutual labels:  webhook
chathooks
Service to convert webhook messages to your favorite chat / team messaging format. Run transparently as a formatting webhook proxy.
Stars: ✭ 39 (+11.43%)
Mutual labels:  webhook
rss2hook
POST to webhook(s) when new feed-items appear.
Stars: ✭ 33 (-5.71%)
Mutual labels:  webhook
Webhookd
A very simple webhook server launching shell scripts.
Stars: ✭ 250 (+614.29%)
Mutual labels:  webhook

MSTeams Module

This module allows you to pass simple one-liner messages or hashtables of information to an Incoming Webhook configured in a channel within Microsoft Teams.

Known Quirks

  • Passing Hashtables doesn't like values which are an array Think this is due to having to convert to string for the JSON conversion

New-TeamsMessage

For posting messages to an Incoming Webhook within a Microsoft Teams channel.

Simple Message Use

New-TeamsMessage -Message 'test message for teams' -Color Red

Detailed Message Use

Passing Details information requires a hashtable of key / value pairs and can be created with the following

$info = [ordered]@{
    Enabled = $true
    givenname = 'Brett'
    emailaddress = '[email protected]'
    surname = 'Miller'
}
New-TeamsMessage -Title 'This A Test Post To Teams' -Text 'This is the Text on the card' -ActivityTitle 'This works pretty well' -ActivitySubtitle 'Formatting is pretty good too' -Information $info -Color Green

Splatting Parameters

$params = @{
    Title               = 'Title of the Connector Card'
    Text                = 'Text of the Connector Card'
    ActivityTitle       = 'Activity title of the card'
    ActivitySubtitle    = 'Activity Subtitle of the card'
    Facts               = $info
    color               = 'green'
    webhookuri          = $uri
}
New-TeamsMessage @params

Adding Buttons

As above but specify the Button Parameter using a ScriptBlock

New-TeamsMessage @params -Button {
    Button -ButtonType TextInput -ButtonName 'Leave a Comment' -TargetURI 'https://millerb.co.uk'
    Button -ButtonType DateInput -ButtonName 'Choose a Date' -TargetURI 'https://millerb.co.uk'
    Button -ButtonType HttpPost -ButtonName 'POST Stuff' -TargetURI 'https://millerb.co.uk'
    Button -ButtonType OpenURI -ButtonName 'Open Me :)' -TargetURI 'https://millerb.co.uk'
}

Adding images

Images can be added as an array of URI's

$params = @{
    Title               = 'Title of the Connector Card'
    Text                = 'Text of the Connector Card'
    ActivityTitle       = 'Activity title of the card'
    ActivitySubtitle    = 'Activity Subtitle of the card'
    Facts               = $info
    Image               = 'https://imagesource.co.uk/image.png','https://imagesource.co.uk/image2.png'
    color               = 'green'
    webhookuri          = $uri
}

New-TeamsMessage @params -Button {
    Button -ButtonType TextInput -ButtonName 'Leave a Comment' -TargetURI 'https://millerb.co.uk'
    Button -ButtonType DateInput -ButtonName 'Choose a Date' -TargetURI 'https://millerb.co.uk'
    Button -ButtonType HttpPost -ButtonName 'POST Stuff' -TargetURI 'https://millerb.co.uk'
    Button -ButtonType OpenURI -ButtonName 'Open Me :)' -TargetURI 'https://millerb.co.uk'
}

Card Sample

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].