VOOZH about

URL: https://www.nuget.org/packages/SMSwitch/

⇱ NuGet Gallery | SMSwitch 10.1.0




SMSwitch 10.1.0

dotnet add package SMSwitch --version 10.1.0
 
 
NuGet\Install-Package SMSwitch -Version 10.1.0
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SMSwitch" Version="10.1.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SMSwitch" Version="10.1.0" />
 
Directory.Packages.props
<PackageReference Include="SMSwitch" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SMSwitch --version 10.1.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SMSwitch, 10.1.0"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SMSwitch@10.1.0
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SMSwitch&version=10.1.0
 
Install as a Cake Addin
#tool nuget:?package=SMSwitch&version=10.1.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

SMSwitch(https://www.nuget.org/packages/SMSwitch)

SMSwitch is an open-source C# class library that provides a wrapper around existing services that are used to verify Mobile numbers and send messages. The service stores information in a MongoDb database that you configure using the package MongoDbService In order to know the Base Url and other common settings the following package is used uSignIn.CommonSettings

Features

  • Covers Twilio, Plivo (possible to cover more if needed)
  • Usage information is stored in your own MongoDB instance for audit reasons

Contributing

We welcome contributions! If you find a bug, have an idea for improvement, please submit an issue or a pull request on GitHub.

Getting Started

NuGet Package

To include SMSwitch in your project, install the NuGet package:

dotnet add package SMSwitch

Then in your appsettings.json add the following sample configuration and change the values to match the details of your credentials to the various services.

 "SMSwitchSettings": {
 "SupportedCountriesIsoCodes": [ "IN", "FI", "DK" ],
 "Controls": {
 "MaximumFailedAttemptsToVerify": 4,
 "SessionTimeoutInSeconds": 240,
 "MaxRoundRobinAttempts": 2,
 "PriorityBasedOnCountryPhoneCode": {
 "44": [ "Twilio", "Plivo" ],
 "45": [ "Twilio", "Plivo" ],
 "91": [ "Plivo", "Twilio"]
 },
 "FallBackPriority": [ "Twilio", "Plivo" ]
 },
 "AndroidAppHash": "MovedToSecret",
 "OtpLength": 6,
 "Twilio": {
 "AccountSid": "MovedToSecret",
 "AuthToken": "MovedToSecret",
 "ServiceSid": "MovedToSecret",
 "RegisteredSenderPhoneNumber": "MovedToSecret"
 },
 "Plivo": {
 "AuthId": "MovedToSecret",
 "AuthToken": "MovedToSecret",
 "AppUuid": "MovedToSecret"
 }
 }

After the above is done, you can just Dependency inject the SMSwitch in your C# class.

For example:
TODO

GitHub Repository

Visit our GitHub repository for the latest updates, documentation, and community contributions. https://github.com/prmeyn/SMSwitch

License

This project is licensed under the GNU GENERAL PUBLIC LICENSE.

Happy coding! 🚀🌐📚

Product Versions Compatible and additional computed target framework versions.
.NET net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on SMSwitch:

Package Downloads
EmailSwitch

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.1.0 276 11/25/2025
10.0.0 294 6/28/2025
9.2.0 318 4/16/2025
9.1.0 283 4/15/2025
9.0.0 274 4/15/2025
8.3.1 278 4/13/2025
8.3.0 288 4/2/2025
8.2.0 252 4/2/2025
8.1.0 427 1/8/2025
8.0.0 177 1/8/2025
7.0.0 281 8/11/2024
6.0.6 202 8/2/2024
6.0.5 177 8/2/2024
6.0.4 261 7/30/2024
6.0.3 215 7/30/2024
6.0.2 197 7/29/2024
6.0.1 415 7/21/2024
6.0.0 216 7/21/2024
5.4.0 219 7/13/2024
5.3.0 227 7/12/2024
Loading failed