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:
- Create a Twizo account
- Login on the Twizo portal
- Find your application secret
- Find your nearest api node
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.com — support@twizo.com