RKSoftware.Tychron.APIClient
0.0.8
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package RKSoftware.Tychron.APIClient --version 0.0.8
NuGet\Install-Package RKSoftware.Tychron.APIClient -Version 0.0.8
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RKSoftware.Tychron.APIClient" Version="0.0.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RKSoftware.Tychron.APIClient --version 0.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RKSoftware.Tychron.APIClient, 0.0.8"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install RKSoftware.Tychron.APIClient as a Cake Addin #addin nuget:?package=RKSoftware.Tychron.APIClient&version=0.0.8 // Install RKSoftware.Tychron.APIClient as a Cake Tool #tool nuget:?package=RKSoftware.Tychron.APIClient&version=0.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
About
This package is a simple wrapper around the Tychron API. It allows you to query Tychron API easily from within your .NET code.
How To Use
There are to ways to use Tychron Clients.
- Create a new instance of API Clients directly in code and use them.
// create Http Client (it is better to obtain it from HttpClientFactory)
var httpClient = new HttpClient();
// Set Tychron API related data (Authorization header and base url)
httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", bearerKey);
httpClient.BaseAddress = baseSmsUrl;
// for MMS
// httpClient.BaseAddress = baseMmsUrl
// Create Tychron API Clients
var smsClient = new TychronSmsClient(httpClient);
// for MMS
// var mmsClient = new TychronMmsClient(httpClient);
// Make requests
- ASP.NET Core Dependency Injection
// Register Tychron API Clients in Startup.cs
services.RegisterTychronClient<TychronSmsClient>(baseSmsUrl, bearerKey);
services.RegisterTychronClient<TychronMmsClient>(baseMmsUrl, bearerKey)
// Inject Tychron API Clients in your controllers or services
public class MyController : Controller
{
private readonly TychronMmsClient _mmsClient;
private readonly TychronSmsClient _smsClient;
public MyController(TychronMmsClient mmsClient, TychronSmsClient smsClient)
{
_mmsClient = mmsClient;
_smsClient = smsClient;
}
// Use Tychron API Clients
}
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Http (>= 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 | 32 | 8/20/2024 |
0.0.11 | 132 | 8/20/2024 |
0.0.11-alpha.0.17 | 51 | 4/17/2024 |
0.0.10 | 154 | 4/17/2024 |
0.0.10-alpha.0.16 | 48 | 4/17/2024 |
0.0.9 | 87 | 4/17/2024 |
0.0.8 | 83 | 4/17/2024 |
0.0.8-alpha.0.14 | 49 | 4/15/2024 |
0.0.7 | 87 | 4/15/2024 |
0.0.7-alpha.0.13 | 51 | 4/15/2024 |
0.0.6 | 89 | 4/15/2024 |
0.0.5 | 129 | 3/11/2024 |
0.0.5-alpha.0.12 | 54 | 3/11/2024 |
0.0.4 | 113 | 2/9/2024 |
0.0.4-alpha.0.11 | 48 | 2/9/2024 |
0.0.3 | 87 | 2/9/2024 |
0.0.3-alpha.0.10 | 40 | 2/9/2024 |
0.0.2 | 97 | 1/27/2024 |
0.0.2-alpha.0.9 | 45 | 1/27/2024 |
0.0.2-alpha.0.8 | 50 | 1/27/2024 |
0.0.2-alpha.0.7 | 42 | 1/27/2024 |
0.0.1 | 80 | 1/27/2024 |
0.0.1-alpha.0.17 | 47 | 4/15/2024 |
0.0.1-alpha.0.16 | 47 | 4/15/2024 |
0.0.1-alpha.0.15 | 52 | 3/11/2024 |
0.0.1-alpha.0.14 | 52 | 2/9/2024 |
0.0.1-alpha.0.13 | 49 | 2/9/2024 |
0.0.1-alpha.0.12 | 44 | 1/27/2024 |
0.0.1-alpha.0.11 | 43 | 1/27/2024 |
0.0.1-alpha.0.10 | 43 | 1/27/2024 |
0.0.1-alpha.0.9 | 45 | 1/27/2024 |
0.0.1-alpha.0.8 | 45 | 1/27/2024 |
0.0.1-alpha.0.7 | 43 | 1/27/2024 |
0.0.1-alpha.0.6 | 49 | 1/27/2024 |
0.0.1-alpha.0.5 | 44 | 1/27/2024 |
0.0.1-alpha.0.4 | 48 | 1/27/2024 |
0.0.1-alpha.0.3 | 40 | 1/27/2024 |
0.0.1-alpha.0.2 | 41 | 1/27/2024 |
0.0.1-alpha.0.1 | 42 | 1/27/2024 |