UmbracoMongoSmsDataServices 12.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package UmbracoMongoSmsDataServices --version 12.0.1
NuGet\Install-Package UmbracoMongoSmsDataServices -Version 12.0.1
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="12.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add UmbracoMongoSmsDataServices --version 12.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: UmbracoMongoSmsDataServices, 12.0.1"
#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=12.0.1 // Install UmbracoMongoSmsDataServices as a Cake Tool #tool nuget:?package=UmbracoMongoSmsDataServices&version=12.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. 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.
-
net7.0
- Microsoft.Extensions.Logging.Abstractions (>= 7.0.1)
- Newtonsoft.Json (>= 13.0.3)
- Twilio (>= 6.9.0)
- Umbraco.Cms.Core (>= 12.0.0)
- UmbracoMongoTokenManager (>= 12.0.1)
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 | 148 | 12/16/2023 |
12.0.1 | 252 | 7/2/2023 |
12.0.0 | 211 | 7/1/2023 |
7.0.0 | 293 | 5/13/2023 |
6.0.0 | 689 | 10/12/2022 |
5.0.1 | 1,557 | 9/25/2022 |
5.0.0 | 842 | 9/24/2022 |
4.0.0 | 454 | 8/15/2022 |
3.0.2 | 457 | 8/15/2022 |
3.0.1 | 595 | 7/30/2022 |
3.0.0 | 858 | 7/24/2022 |
2.0.1 | 470 | 7/23/2022 |
2.0.0 | 451 | 7/23/2022 |
1.0.0 | 429 | 7/23/2022 |