UmbracoMongoSmsDataServices 13.0.0

dotnet add package UmbracoMongoSmsDataServices --version 13.0.0                
NuGet\Install-Package UmbracoMongoSmsDataServices -Version 13.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="13.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add UmbracoMongoSmsDataServices --version 13.0.0                
#r "nuget: UmbracoMongoSmsDataServices, 13.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=13.0.0

// Install UmbracoMongoSmsDataServices as a Cake Tool
#tool nuget:?package=UmbracoMongoSmsDataServices&version=13.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 net8.0 is compatible.  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 152 12/16/2023
12.0.1 256 7/2/2023
12.0.0 213 7/1/2023
7.0.0 295 5/13/2023
6.0.0 691 10/12/2022
5.0.1 1,559 9/25/2022
5.0.0 844 9/24/2022
4.0.0 456 8/15/2022
3.0.2 459 8/15/2022
3.0.1 599 7/30/2022
3.0.0 862 7/24/2022
2.0.1 474 7/23/2022
2.0.0 455 7/23/2022
1.0.0 434 7/23/2022