Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

C# library for the Twizo api.

Resources

Packages

No packages published

Languages