RKSoftware.Tychron.Middleware
0.0.1-alpha.0.3
See the version list below for details.
dotnet add package RKSoftware.Tychron.Middleware --version 0.0.1-alpha.0.3
NuGet\Install-Package RKSoftware.Tychron.Middleware -Version 0.0.1-alpha.0.3
<PackageReference Include="RKSoftware.Tychron.Middleware" Version="0.0.1-alpha.0.3" />
paket add RKSoftware.Tychron.Middleware --version 0.0.1-alpha.0.3
#r "nuget: RKSoftware.Tychron.Middleware, 0.0.1-alpha.0.3"
// Install RKSoftware.Tychron.Middleware as a Cake Addin #addin nuget:?package=RKSoftware.Tychron.Middleware&version=0.0.1-alpha.0.3&prerelease // Install RKSoftware.Tychron.Middleware as a Cake Tool #tool nuget:?package=RKSoftware.Tychron.Middleware&version=0.0.1-alpha.0.3&prerelease
About
This package contains Middlewares that can serve as Webhooks for Tychron SMS and MMS Delivery Reports. These endpoints can also be used to Receive SMS / MMS / SMS DLR / MMS DLR messages from Tychron API.
How To Use
Authentication Middlewares
According to Tychron API Documentation, you can use Basic Authentication or Bearer Authentication. There are to ways to use Tychron Clients.
- Register Middleware in Startup.cs or Program.cs
// Register Tychron Middleware for SMS
app.UseTychronMiddleware<SmsWebhookModel>("/tychron/sms", (appBuilder) =>
{
// Use Basic Auth for Tychron requests
appBuilder.UseTychronBasicAuth("username", "password");
// Use Bearer Auth for Tychron requests
// appBuilder.UseTychronBearerAuth("token");
});
// Register Tychron Middleware for MMS
app.UseTychronMiddleware<MmsWebhookModel>("/tychron/mms", (appBuilder) =>
{
// Use Basic Auth for Tychron requests
appBuilder.UseTychronBasicAuth("username", "password");
// Use Bearer Auth for Tychron requests
// appBuilder.UseTychronBearerAuth("token");
});
// Register Tychron Middleware for MMS DLR
app.UseTychronMiddleware<MmsDlrWebhookModel>("/tychron/mms-dlr", (appBuilder) =>
{
// Use Basic Auth for Tychron requests
appBuilder.UseTychronBasicAuth("username", "password");
// Use Bearer Auth for Tychron requests
// appBuilder.UseTychronBearerAuth("token");
});
// Register Tychron Middleware for SMS DLR
app.UseTychronMiddleware<SMSDLRWebhookModel>("/tychron/sms-dlr", (appBuilder) =>
{
// Use Basic Auth for Tychron requests
appBuilder.UseTychronBasicAuth("username", "password");
// Use Bearer Auth for Tychron requests
// appBuilder.UseTychronBearerAuth("token");
});
Tychron Webhook supports Basic and Bearer Authentication. You can use any of the two methods to authenticate Tychron requests.
// Use Basic Auth for Tychron requests
appBuilder.UseTychronBasicAuth("username", "password");
// Use Bearer Auth for Tychron requests
// appBuilder.UseTychronBearerAuth("token");
Register Tychron Authentication Middleware only in AuthConfigurator parameter of UseTychronMiddleware method to make auth affect only Tychron requests.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.0.12-alpha.0.18 | 62 | 8/20/2024 |
0.0.11 | 382 | 8/20/2024 |
0.0.11-alpha.0.17 | 55 | 4/17/2024 |
0.0.10 | 169 | 4/17/2024 |
0.0.10-alpha.0.16 | 50 | 4/17/2024 |
0.0.9 | 104 | 4/17/2024 |
0.0.8 | 98 | 4/17/2024 |
0.0.8-alpha.0.14 | 55 | 4/15/2024 |
0.0.7 | 104 | 4/15/2024 |
0.0.7-alpha.0.13 | 51 | 4/15/2024 |
0.0.6 | 112 | 4/15/2024 |
0.0.5 | 218 | 3/11/2024 |
0.0.5-alpha.0.12 | 53 | 3/11/2024 |
0.0.4 | 240 | 2/9/2024 |
0.0.4-alpha.0.11 | 51 | 2/9/2024 |
0.0.3 | 228 | 2/9/2024 |
0.0.3-alpha.0.10 | 55 | 2/9/2024 |
0.0.2 | 279 | 1/27/2024 |
0.0.2-alpha.0.9 | 51 | 1/27/2024 |
0.0.2-alpha.0.8 | 48 | 1/27/2024 |
0.0.2-alpha.0.7 | 47 | 1/27/2024 |
0.0.1 | 253 | 1/27/2024 |
0.0.1-alpha.0.17 | 54 | 4/15/2024 |
0.0.1-alpha.0.16 | 59 | 4/15/2024 |
0.0.1-alpha.0.15 | 54 | 3/11/2024 |
0.0.1-alpha.0.14 | 50 | 2/9/2024 |
0.0.1-alpha.0.13 | 49 | 2/9/2024 |
0.0.1-alpha.0.12 | 56 | 1/27/2024 |
0.0.1-alpha.0.11 | 54 | 1/27/2024 |
0.0.1-alpha.0.10 | 52 | 1/27/2024 |
0.0.1-alpha.0.9 | 48 | 1/27/2024 |
0.0.1-alpha.0.8 | 53 | 1/27/2024 |
0.0.1-alpha.0.7 | 48 | 1/27/2024 |
0.0.1-alpha.0.6 | 48 | 1/27/2024 |
0.0.1-alpha.0.5 | 52 | 1/27/2024 |
0.0.1-alpha.0.4 | 45 | 1/27/2024 |
0.0.1-alpha.0.3 | 48 | 1/27/2024 |
0.0.1-alpha.0.2 | 51 | 1/27/2024 |
0.0.1-alpha.0.1 | 52 | 1/27/2024 |