Omnigage.SDK 1.4.0

.NET Core 3.1 .NET Framework 4.6.1
dotnet add package Omnigage.SDK --version 1.4.0
NuGet\Install-Package Omnigage.SDK -Version 1.4.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="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
#r "nuget: Omnigage.SDK, 1.4.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.
// 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

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 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-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
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 420 2/16/2022
1.3.0 228 12/29/2021
1.2.0 440 7/14/2020
1.1.1 478 7/10/2020
1.1.0 481 7/10/2020
1.0.0 422 6/24/2020