Omnigage.SDK 1.4.0

.NET Core 3.1 .NET Framework 4.6.1
Install-Package Omnigage.SDK -Version 1.4.0
dotnet add package Omnigage.SDK --version 1.4.0
<PackageReference Include="Omnigage.SDK" Version="1.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Omnigage.SDK --version 1.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Omnigage.SDK, 1.4.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Omnigage.SDK as a Cake Addin
#addin nuget:?package=Omnigage.SDK&version=1.4.0

// Install Omnigage.SDK as a Cake Tool
#tool nuget:?package=Omnigage.SDK&version=1.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Omnigage .NET SDK .NET Core

Authorization

API Token

    OmnigageClient.Init("token-key", "token-secret");

JWT Token

    OmnigageClient.Init("token");

Samples

  1. Call a Single Number
    OmnigageClient.Init("token-key", "token-secret");

    var call = new CallResource
    {
        To = "+11115551111"
    };

    await call.Create();
  1. Call Two Numbers and Connect
    OmnigageClient.Init("token-key", "token-secret");

    var call = new CallResource
    {
        From = "+11115550000",
        To = "+11115551111",
        CallerId = new CallerIdResource
        {
            Id = "<insert-caller-id>"
        }
    };

    await call.Create();
  1. Send a Text Message
    OmnigageClient.Init("token-key", "token-secret");

    var message = new TextMessageResource
    {
        Body = "Sample body"
    };

    await message.Create();

    var text = new TextResource
    {
        To = "+11115551111",
        TextMessage = message,
        PhoneNumber = new PhoneNumberResource
        {
            Id = "<insert-phone-number-id>"
        }
    };

    await text.Create();
  1. Send an Email
    OmnigageClient.Init("token-key", "token-secret");

    var message = new EmailMessageResource
    {
        Subject = "Hello",
        Body = "Sample body"
    };

    await message.Create();

    var email = new EmailResource
    {
        To = "demo@omnigage.com",
        EmailMessage = message,
        EmailId = new EmailIdResource
        {
            Id = "<insert-email-id>"
        }
    };

    await email.Create();
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp3.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
Compatible target framework(s)
Additional computed target framework(s)
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.4.0 97 2/16/2022
1.3.0 96 12/29/2021
1.2.0 295 7/14/2020
1.1.1 340 7/10/2020
1.1.0 339 7/10/2020
1.0.0 277 6/24/2020