UmbracoMongoSmsDataServices 4.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package UmbracoMongoSmsDataServices --version 4.0.0                
NuGet\Install-Package UmbracoMongoSmsDataServices -Version 4.0.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="UmbracoMongoSmsDataServices" Version="4.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add UmbracoMongoSmsDataServices --version 4.0.0                
#r "nuget: UmbracoMongoSmsDataServices, 4.0.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.
// Install UmbracoMongoSmsDataServices as a Cake Addin
#addin nuget:?package=UmbracoMongoSmsDataServices&version=4.0.0

// Install UmbracoMongoSmsDataServices as a Cake Tool
#tool nuget:?package=UmbracoMongoSmsDataServices&version=4.0.0                

Setup procedure

The appsettings.json file should contain your settings for your Twilio account

{
	"SmsDataService": {
		"UseUmbracoLogsAsSmsInboxInNonProd": true,
		"Twilio": {
			"AccountSid": "AC863c300bf379c5b3d6365cbba1d73e15",
			"AuthToken": "7203dbcbf6fe33040b7f51a8b3daf950",
			"ServiceSid": "77dAbbe22d1fa8V2ed9dd9de555cd3ab50",
			"RegisteredSenderPhoneNumber": "+45999999"
		}
	}
}

Sample code

using UmbracoMongoSmsDataServices;

IEnumerable<CountryPhoneCodeItem> CountryPhoneCodes = SmsDataService.GetAllCountryPhoneCodes.OrderBy(cpc => cpc.CountryCode);


MobileNumber mobileNumber = SmsServices.FormatedMobileNumber("45", "99945349"); // For an Danish mobile number.

SmsDataService.SmsServices.First().SendOTP(
					mobileWithCountryCode: mobileNumber,
					languageISOCode: "en");
					
SmsDataService.SmsServices.First().VerifyOTP(
				mobileWithCountryCode: mobileNumber,
				OTP: "848333"));
				
SmsDataService.SmsServices.First().SendSMS(mobileNumber, "Hello World!");

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on UmbracoMongoSmsDataServices:

Package Downloads
UmbracoMongoContactNumber

This package gives Umbraco editors to have the pleasure of using a property editor that is specific to phone numbers with their respective country phone codes etc, the database storing country phone code data is in MongoDB.

UmbracoCountryPicker

...

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
13.0.0 146 12/16/2023
12.0.1 250 7/2/2023
12.0.0 208 7/1/2023
7.0.0 289 5/13/2023
6.0.0 685 10/12/2022
5.0.1 1,554 9/25/2022
5.0.0 840 9/24/2022
4.0.0 452 8/15/2022
3.0.2 455 8/15/2022
3.0.1 592 7/30/2022
3.0.0 856 7/24/2022
2.0.1 468 7/23/2022
2.0.0 449 7/23/2022
1.0.0 427 7/23/2022