C# library for the Twizo api.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vs/TwizoAPI
Documentation
Examples
TwizoAPI
UnitTests
packages
.gitignore
API Documentation.lnk
CHANGELOG.MD
README.md
TwizoAPI.sln

README.md

Twizo

Twizo C# API

Connect to the Twizo API using C#. This API includes functions to send verifications (2FA), SMS and Number Lookup.

Requirements

  • .NET >= 4.5

Get application secret and api host

To use the Twizo API client, the following things are required:

Usage

Start with initializing the Twizo Api using your api secret and api host

using System;
using TwizoAPI;
using TwizoAPI.Entity;

class MyClass
{
    static void Main(string[] args)
    {
        Twizo twizo = new Twizo("My_API_KEY", "API_HOST");
    }
}

Create a new verification

    Verification verification = twizo.CreateVerification("310123456789");
    verification.Send();

Verify token

    bool success = twizo.VerifyToken("012345", verification.messageId);

Send sms

    Sms sms = twizo.CreateSms('310123456789', 'Test message body', 'Twizo');
    sms.Send();

Examples

In the examples directory you can find a collection of examples of how to use the api.

License

The MIT License. Copyright (c) 2016-2017 Twizo

Support

Contact: www.twizo.comsupport@twizo.com