RKSoftware.Tychron.APIClient
0.0.10
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.10
NuGet\Install-Package RKSoftware.Tychron.APIClient -Version 0.0.10
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.10" />
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.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RKSoftware.Tychron.APIClient, 0.0.10"
#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.10 // Install RKSoftware.Tychron.APIClient as a Cake Tool #tool nuget:?package=RKSoftware.Tychron.APIClient&version=0.0.10
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 | 58 | 8/20/2024 |
0.0.11 | 380 | 8/20/2024 |
0.0.11-alpha.0.17 | 59 | 4/17/2024 |
0.0.10 | 174 | 4/17/2024 |
0.0.10-alpha.0.16 | 52 | 4/17/2024 |
0.0.9 | 105 | 4/17/2024 |
0.0.8 | 104 | 4/17/2024 |
0.0.8-alpha.0.14 | 55 | 4/15/2024 |
0.0.7 | 105 | 4/15/2024 |
0.0.7-alpha.0.13 | 58 | 4/15/2024 |
0.0.6 | 107 | 4/15/2024 |
0.0.5 | 149 | 3/11/2024 |
0.0.5-alpha.0.12 | 59 | 3/11/2024 |
0.0.4 | 134 | 2/9/2024 |
0.0.4-alpha.0.11 | 57 | 2/9/2024 |
0.0.3 | 110 | 2/9/2024 |
0.0.3-alpha.0.10 | 46 | 2/9/2024 |
0.0.2 | 113 | 1/27/2024 |
0.0.2-alpha.0.9 | 51 | 1/27/2024 |
0.0.2-alpha.0.8 | 56 | 1/27/2024 |
0.0.2-alpha.0.7 | 48 | 1/27/2024 |
0.0.1 | 103 | 1/27/2024 |
0.0.1-alpha.0.17 | 56 | 4/15/2024 |
0.0.1-alpha.0.16 | 53 | 4/15/2024 |
0.0.1-alpha.0.15 | 57 | 3/11/2024 |
0.0.1-alpha.0.14 | 58 | 2/9/2024 |
0.0.1-alpha.0.13 | 55 | 2/9/2024 |
0.0.1-alpha.0.12 | 50 | 1/27/2024 |
0.0.1-alpha.0.11 | 49 | 1/27/2024 |
0.0.1-alpha.0.10 | 51 | 1/27/2024 |
0.0.1-alpha.0.9 | 51 | 1/27/2024 |
0.0.1-alpha.0.8 | 53 | 1/27/2024 |
0.0.1-alpha.0.7 | 49 | 1/27/2024 |
0.0.1-alpha.0.6 | 55 | 1/27/2024 |
0.0.1-alpha.0.5 | 51 | 1/27/2024 |
0.0.1-alpha.0.4 | 55 | 1/27/2024 |
0.0.1-alpha.0.3 | 46 | 1/27/2024 |
0.0.1-alpha.0.2 | 47 | 1/27/2024 |
0.0.1-alpha.0.1 | 49 | 1/27/2024 |