RKSoftware.Tychron.APIClient 0.0.11-alpha.0.17

This is a prerelease version of RKSoftware.Tychron.APIClient.
dotnet add package RKSoftware.Tychron.APIClient --version 0.0.11-alpha.0.17
NuGet\Install-Package RKSoftware.Tychron.APIClient -Version 0.0.11-alpha.0.17
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.11-alpha.0.17" />
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.11-alpha.0.17
#r "nuget: RKSoftware.Tychron.APIClient, 0.0.11-alpha.0.17"
#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.11-alpha.0.17&prerelease

// Install RKSoftware.Tychron.APIClient as a Cake Tool
#tool nuget:?package=RKSoftware.Tychron.APIClient&version=0.0.11-alpha.0.17&prerelease

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 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.

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.11-alpha.0.17 50 4/17/2024
0.0.10 116 4/17/2024
0.0.10-alpha.0.16 45 4/17/2024
0.0.9 83 4/17/2024
0.0.8 79 4/17/2024
0.0.8-alpha.0.14 47 4/15/2024
0.0.7 84 4/15/2024
0.0.7-alpha.0.13 50 4/15/2024
0.0.6 87 4/15/2024
0.0.5 123 3/11/2024
0.0.5-alpha.0.12 53 3/11/2024
0.0.4 109 2/9/2024
0.0.4-alpha.0.11 48 2/9/2024
0.0.3 84 2/9/2024
0.0.3-alpha.0.10 40 2/9/2024
0.0.2 94 1/27/2024
0.0.2-alpha.0.9 44 1/27/2024
0.0.2-alpha.0.8 49 1/27/2024
0.0.2-alpha.0.7 40 1/27/2024
0.0.1 77 1/27/2024
0.0.1-alpha.0.17 46 4/15/2024
0.0.1-alpha.0.16 45 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 47 2/9/2024
0.0.1-alpha.0.12 42 1/27/2024
0.0.1-alpha.0.11 42 1/27/2024
0.0.1-alpha.0.10 43 1/27/2024
0.0.1-alpha.0.9 43 1/27/2024
0.0.1-alpha.0.8 45 1/27/2024
0.0.1-alpha.0.7 42 1/27/2024
0.0.1-alpha.0.6 45 1/27/2024
0.0.1-alpha.0.5 43 1/27/2024
0.0.1-alpha.0.4 47 1/27/2024
0.0.1-alpha.0.3 40 1/27/2024
0.0.1-alpha.0.2 40 1/27/2024
0.0.1-alpha.0.1 42 1/27/2024