Vortex.Communications.Spryng 1.0.1

dotnet add package Vortex.Communications.Spryng --version 1.0.1
                    
NuGet\Install-Package Vortex.Communications.Spryng -Version 1.0.1
                    
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="Vortex.Communications.Spryng" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Vortex.Communications.Spryng" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Vortex.Communications.Spryng" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Vortex.Communications.Spryng --version 1.0.1
                    
#r "nuget: Vortex.Communications.Spryng, 1.0.1"
                    
#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.
#:package Vortex.Communications.Spryng@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Vortex.Communications.Spryng&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Vortex.Communications.Spryng&version=1.0.1
                    
Install as a Cake Tool

Vortex Spryng Integration

Nuget Nuget

The goal of this package is to expose the Spryng API as a simple to use package.

If you find this project useful, please give it a star. Thanks! ⭐

Getting Started

The easiest way to get started is to install the package:

dotnet add package Vortex.Communications.Spryng

Adding the Spryng client using a token:

services.AddSpryng("YourToken");

Adding the Spryng client using IConfiguration:

services.AddSpryng(configuration, "YourSectionName");

App settings:

{
  "YourSectionName": {
    "Token": "YourToken",
    "BaseAddress": "SpryngBaseAddress"
  }
}

Once the client is configured, you can inject the ISpryngApiClient into your class through the constructor.

public class ExampleClass
{
    private readonly ISpryngApiClient _client;
    
    public ExampleClass(ISpryngApiClient client)
    {
        _client = client;
    }

    public async Task ExampleMethod()
    {
        var request = new SendSmsRequest
        {
            Body = "Some Message!",
            Originator = "Test",
            Recipients = ["+447000000000"],
        };
        
        var response = await _client.SendSms(request, CancellationToken.None);
    }   
}

Technologies

Support

If you are having problems, please let me know by raising a new issue.

License

Feel free to do what you want.

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.  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.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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
1.0.1 252 2/19/2024
1.0.0 200 2/13/2024