tomal-hossain.TwilioAuthy 1.0.0

Install-Package tomal-hossain.TwilioAuthy -Version 1.0.0
dotnet add package tomal-hossain.TwilioAuthy --version 1.0.0
<PackageReference Include="tomal-hossain.TwilioAuthy" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add tomal-hossain.TwilioAuthy --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: tomal-hossain.TwilioAuthy, 1.0.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 tomal-hossain.TwilioAuthy as a Cake Addin
#addin nuget:?package=tomal-hossain.TwilioAuthy&version=1.0.0

// Install tomal-hossain.TwilioAuthy as a Cake Tool
#tool nuget:?package=tomal-hossain.TwilioAuthy&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

User Module Create Authy instance using your production api key of Twilio. Example: Authy authy = new Authy("production_api_key");

Create User in Twilio You need to pass email, phone number and country code to create user in Twilio. Example: int authyId = await authy.CreateUser(email, phone, country_code); For successfull API call it will return a unique authy_id of type integer. Save it to your database for further use. It will return 0 if fails to create user.

Send OTP to user You need to pass the authy id to send otp. Example: bool status = authy.SendOTP(authy_id); For successfull API call it will return true and send a 6-8 digit token to user phone, or it will return false.

Verify OTP You need to pass the authy_id and token to verify it. Example: bool status = authy.VerifyOTP(authy_id, token); It will return true if successfully verified or return false.

Remove User You need to pass the authy_id to remove the user from Twilio. Example: bool status = authy.RemoveUser(authy_id); It will return true if successfully removed or return false.

  • .NETCoreApp 3.1

    • No dependencies.

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.0.0 179 9/19/2020

Initial release