Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rgomez90 authored Aug 18, 2020
1 parent db276dd commit e52a4ef
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,42 @@
![.NET Core](https://github.com/rgomez90/TeamsHook.NET/workflows/.NET%20Core/badge.svg) [![Nuget](https://img.shields.io/nuget/dt/TeamsHook.NET?label=NuGet&logo=nuget)](https://www.nuget.org/packages/TeamsHook.NET/)

# TeamsHook.NET

### A .NET client for posting messages to Microsoft Teams via webhooks

[Teams Legacy MessageCard Reference](https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference#actions)

[Teams Webhooks Docs](https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-using)

## Installation

You can install the latest release by installing the package from [NuGet](https://www.nuget.org/packages/TeamsHook.NET/) using `Install-Package TeamsHook.NET`.

Alternatively, clone/fork this repo and compile the source yourself.

## Usage

Just create a new `TeamsHookClient`

```csharp
var client = new TeamsHookClient();
```

Create your card

```csharp
var card = new MessageCard()
{
//CardOptions
}
```

Post your message

```csharp
await client.PostAsync(card, "https://your-teams-webhook)
```

## Contributing

Everyone is welcome, who wants to contribute to this repo! Just open an issue with your intention or make a comment in some open issue you would like to work on.

0 comments on commit e52a4ef

Please sign in to comment.