-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |