RKSoftware.Tychron.APIClient
0.0.1-alpha.0.9
This is a prerelease version of RKSoftware.Tychron.APIClient.
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.1-alpha.0.9
NuGet\Install-Package RKSoftware.Tychron.APIClient -Version 0.0.1-alpha.0.9
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.1-alpha.0.9" />
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.1-alpha.0.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RKSoftware.Tychron.APIClient, 0.0.1-alpha.0.9"
#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.1-alpha.0.9&prerelease // Install RKSoftware.Tychron.APIClient as a Cake Tool #tool nuget:?package=RKSoftware.Tychron.APIClient&version=0.0.1-alpha.0.9&prerelease
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 if rom HttpClientFactory)
var httpClient = new HttpClient();
// Set Tychron API related data (Authorization header and base url)
httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", bearerKey);
httpClient.BaseAddress = baseUrl;
// Create Tychron API Clients
var smsDLRclient = new TychronSMSDLRClient(httpClient);
var mmsDLRclient = new TychronMMSDLRClient(httpClient);
var smsClient = new TychronSMSClient(httpClient);
// Make requests
- ASP.NET Core Dependency Injection
// Register Tychron API Clients in Startup.cs
services.RegisterTychronClients(bearerKey, baseUrl);
// Inject Tychron API Clients in your controllers or services
public class MyController : Controller
{
private readonly ITychronSMSDLRClient _smsDLRclient;
private readonly ITychronMMSDLRClient _mmsDLRclient;
private readonly ITychronSMSClient _smsClient;
public MyController(ITychronSMSDLRClient smsDLRclient, ITychronMMSDLRClient mmsDLRclient, ITychronSMSClient smsClient)
{
_smsDLRclient = smsDLRclient;
_mmsDLRclient = mmsDLRclient;
_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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.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 | 70 | 7 months ago |
0.0.11 | 805 | 7 months ago |
0.0.11-alpha.0.17 | 68 | 4/17/2024 |
0.0.10 | 185 | 4/17/2024 |
0.0.10-alpha.0.16 | 63 | 4/17/2024 |
0.0.9 | 118 | 4/17/2024 |
0.0.8 | 119 | 4/17/2024 |
0.0.8-alpha.0.14 | 65 | 4/15/2024 |
0.0.7 | 115 | 4/15/2024 |
0.0.7-alpha.0.13 | 66 | 4/15/2024 |
0.0.6 | 119 | 4/15/2024 |
0.0.5 | 161 | 3/11/2024 |
0.0.5-alpha.0.12 | 67 | 3/11/2024 |
0.0.4 | 151 | 2/9/2024 |
0.0.4-alpha.0.11 | 70 | 2/9/2024 |
0.0.3 | 127 | 2/9/2024 |
0.0.3-alpha.0.10 | 60 | 2/9/2024 |
0.0.2 | 125 | 1/27/2024 |
0.0.2-alpha.0.9 | 59 | 1/27/2024 |
0.0.2-alpha.0.8 | 64 | 1/27/2024 |
0.0.2-alpha.0.7 | 56 | 1/27/2024 |
0.0.1 | 113 | 1/27/2024 |
0.0.1-alpha.0.17 | 67 | 4/15/2024 |
0.0.1-alpha.0.16 | 62 | 4/15/2024 |
0.0.1-alpha.0.15 | 66 | 3/11/2024 |
0.0.1-alpha.0.14 | 73 | 2/9/2024 |
0.0.1-alpha.0.13 | 70 | 2/9/2024 |
0.0.1-alpha.0.12 | 61 | 1/27/2024 |
0.0.1-alpha.0.11 | 62 | 1/27/2024 |
0.0.1-alpha.0.10 | 61 | 1/27/2024 |
0.0.1-alpha.0.9 | 59 | 1/27/2024 |
0.0.1-alpha.0.8 | 64 | 1/27/2024 |
0.0.1-alpha.0.7 | 59 | 1/27/2024 |
0.0.1-alpha.0.6 | 63 | 1/27/2024 |
0.0.1-alpha.0.5 | 60 | 1/27/2024 |
0.0.1-alpha.0.4 | 66 | 1/27/2024 |
0.0.1-alpha.0.3 | 59 | 1/27/2024 |
0.0.1-alpha.0.2 | 55 | 1/27/2024 |
0.0.1-alpha.0.1 | 60 | 1/27/2024 |