Teams.Notifications 0.1.1

Allow you to easily send notification to Microsoft Teams channels by using Webhook

Install-Package Teams.Notifications -Version 0.1.1
dotnet add package Teams.Notifications --version 0.1.1
<PackageReference Include="Teams.Notifications" Version="0.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Teams.Notifications --version 0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Teams Notification

Introduction

Library to easily send notification to Microsoft Teams channels.

Code Samples

var url = "<INSERT WEBHOOK URL HERE>";
var client = new TeamsNotificationClient(url);

var message = new MessageCard();
message.Title = "title";
message.Text = "text";
message.Color = "f0ad4e";
message.Sections = new List<MessageSection>();
message.Sections.Add(new MessageSection()
{
    Title = "Context",
    Facts = new List<MessageFact>()
    {
        new MessageFact()
        {
            Name = "Key",
            Value = "Value"
        }
    }
});
message.PotentialActions = new List<PotentialAction>();
message.PotentialActions.Add(new PotentialAction()
{
    Name = "Open",
    Targets = new List<PotentialActionLink>()
    {
        new PotentialActionLink()
        {
            Value = "http://google.com"
        }
    }
});
client.PostMessage(message).GetAwaiter().GetResult();

Installation

dotnet add package Teams.Notifications

Teams Notification

Introduction

Library to easily send notification to Microsoft Teams channels.

Code Samples

var url = "<INSERT WEBHOOK URL HERE>";
var client = new TeamsNotificationClient(url);

var message = new MessageCard();
message.Title = "title";
message.Text = "text";
message.Color = "f0ad4e";
message.Sections = new List<MessageSection>();
message.Sections.Add(new MessageSection()
{
    Title = "Context",
    Facts = new List<MessageFact>()
    {
        new MessageFact()
        {
            Name = "Key",
            Value = "Value"
        }
    }
});
message.PotentialActions = new List<PotentialAction>();
message.PotentialActions.Add(new PotentialAction()
{
    Name = "Open",
    Targets = new List<PotentialActionLink>()
    {
        new PotentialActionLink()
        {
            Value = "http://google.com"
        }
    }
});
client.PostMessage(message).GetAwaiter().GetResult();

Installation

dotnet add package Teams.Notifications

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.1.1 98 7/10/2019
0.1.0 2,649 7/10/2019