seven-library 2.2.0

dotnet add package seven-library --version 2.2.0
                    
NuGet\Install-Package seven-library -Version 2.2.0
                    
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="seven-library" Version="2.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="seven-library" Version="2.2.0" />
                    
Directory.Packages.props
<PackageReference Include="seven-library" />
                    
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 seven-library --version 2.2.0
                    
#r "nuget: seven-library, 2.2.0"
                    
#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 seven-library@2.2.0
                    
#: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=seven-library&version=2.2.0
                    
Install as a Cake Addin
#tool nuget:?package=seven-library&version=2.2.0
                    
Install as a Cake Tool

<img src="https://www.seven.io/wp-content/uploads/Logo.svg" width="250" alt="seven logo" />

Official .NET API Client

Send SMS, make voice calls, look up phone numbers, and more — via the seven API.

NuGet Version MIT License .NET Standard 2.0


Prerequisites

Installation

.NET CLI

dotnet add package seven-library

Package Manager

Install-Package seven-library

Package Reference

<PackageReference Include="seven-library" />

Quick Start

using System;
using System.Threading.Tasks;
using seven_library.Api;

class Program
{
    static async Task Main()
    {
        var client = new Client("YOUR_API_KEY");

        var balance = await client.Balance();
        Console.WriteLine($"Balance: {balance}");

        var sms = await client.Sms(new SmsParams
        {
            To = "+491234567890",
            Text = "Hello from seven!"
        });
    }
}

Usage Examples

Send SMS

var response = await client.Sms(new SmsParams
{
    To = "+491234567890",
    Text = "Hello from seven!",
    From = "MyApp"
});

Text-to-Speech Voice Call

var response = await client.Voice(new VoiceParams
{
    To = "+491234567890",
    Text = "Hello, this is a test call from seven."
});

Phone Number Lookup

var result = await client.Lookup(new LookupParams
{
    Number = "+491234567890",
    Type = LookupType.mnp,
    Json = true
});

Check Balance

var balance = await client.Balance();

All Features

Feature Description
SMS Send SMS messages
Voice Text-to-speech voice calls
RCS Send RCS messages
Lookup Phone number lookups (HLR, CNAM, MNP, Format)
Contacts Manage address book contacts
Hooks Manage webhooks
Balance Retrieve account balance
Analytics Retrieve account analytics
Journal Retrieve message journal
Pricing Retrieve pricing information
Status Retrieve message delivery status
ValidateForVoice Validate phone numbers for voice calls
Subaccounts Manage subaccounts

For more examples, see the examples directory.

Request Signing

For request signing pass your signing secret (found in your developer dashboard) as the fourth parameter:

var client = new Client("YOUR_API_KEY", "CSharp", false, "YOUR_SIGNING_SECRET");

Support

Need help? Feel free to contact us or open an issue.

License

MIT

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
2.2.0 991 2/27/2026
2.1.3 113 2/27/2026
2.1.2 110 2/27/2026
2.1.1 113 2/27/2026
2.1.0 773 2/10/2025