Skip to content

seven-io/net-client

Repository files navigation

Official .NET API Client for the seven SMS Gateway

Installation

.NET CLI

dotnet add package sms77-api

Package Manager

Install-Package sms77-api

Package Reference

<PackageReference Include="sms77-api" />

Paket

paket add sms77-api

F# Interactive

#r "nuget: sms77-api, 1.2.0"

Example

using System;
using System.Threading.Tasks;
using Client = Sms77.Api.Client;

class Program
{
    static async Task Main()
    {
        var apiKey = Environment.GetEnvironmentVariable("SMS77_API_KEY");
        var client = new Client(apiKey);
        var balance = await client.Balance();
        Console.WriteLine($"Current account balance: {balance}");
    }
}

Support

Need help? Feel free to contact us.

License

MIT