tomal-hossain.TwilioAuthy
1.0.0
dotnet add package tomal-hossain.TwilioAuthy --version 1.0.0
NuGet\Install-Package tomal-hossain.TwilioAuthy -Version 1.0.0
<PackageReference Include="tomal-hossain.TwilioAuthy" Version="1.0.0" />
paket add tomal-hossain.TwilioAuthy --version 1.0.0
#r "nuget: tomal-hossain.TwilioAuthy, 1.0.0"
// 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
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.
Product | Versions 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-browser 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. |
-
.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 | 372 | 9/19/2020 |
Initial release