EOH.Sms
0.2.2024.311
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Standard 2.1
This package targets .NET Standard 2.1. The package is compatible with this framework or higher.
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 EOH.Sms --version 0.2.2024.311
NuGet\Install-Package EOH.Sms -Version 0.2.2024.311
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="EOH.Sms" Version="0.2.2024.311" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EOH.Sms --version 0.2.2024.311
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EOH.Sms, 0.2.2024.311"
#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 EOH.Sms as a Cake Addin #addin nuget:?package=EOH.Sms&version=0.2.2024.311 // Install EOH.Sms as a Cake Tool #tool nuget:?package=EOH.Sms&version=0.2.2024.311
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
EOH.Sms SMS API 封装组件
该组件旨在简化与阿里云和腾讯云短信 API 的集成,提供了易于使用的方法来发送短信和处理短信发送状态。 通过封装底层的 API 调用,你可以更加专注于业务逻辑,而不需要过多关心底层细节。 EOH(Extended Office hours)延长办公时间
功能
- 阿里云短信
- ✅ 短链管理
- ✅ 短信发送
- ✅ 发送查询
- ✅ 签名管理
- ✅ 模板管理
- ✅ 国际短信
-
- 标签管理
-
- 卡片短信
- 腾讯云短信
-
- 暂时无环境,延后实现
安装
使用 NuGet 包管理器安装:
使用示例
初始化
var service = new ServiceCollection();
service.AddAlibabaSmsService((options) =>
{
options.AccessKeyId = "AccessKeyId ";
options.AccessKeySecret = "AccessKeySecret ";
});
发送短信
var res = await _AlibabaService.Execute(new SendSmsRequest
{
Model = new SendSmsModel
{
PhoneNumbers = new List<string> { "18688864248" },
SignName = "**",
TemplateCode = "**",
TemplateParam = "{\"code\":\"1111\"}"
}
});
var res = _AlibabaService.Execute(new SendBatchSmsRequest
{
Model = new SendBatchSmsModel
{
PhoneNumberJson = new List<string> { "18688864248" },
SignNameJson = new List<string> { "签名" },
TemplateCode = "SMS_***",
TemplateParamJson = new List<string> { "{\"code\":\"1111\"}" }
}
});
贡献
欢迎贡献代码、报告问题和提供建议!请在 Gitee/GitHub 项目中提交 Issue 或 Pull Request。
许可
本项目基于 MIT 许可进行分发和使用。详细信息请查阅 LICENSE 文件。
作者
作者:荣少<br/> 邮箱:ligengrong@hotmail.com<br/> QQ群:7405133
🏅开源地址
🧧 赞赏作者
你的赞赏就是我前进的动力🏃,
如果EOH.Sms给你带来了不少便利,
那就请作者喝杯咖啡☕吧。
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. 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. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- Microsoft.Extensions.Http (>= 6.0.0)
- System.Text.Json (>= 6.0.0)
-
net6.0
- Microsoft.Extensions.Http (>= 6.0.0)
- System.Text.Json (>= 6.0.0)
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 |
---|---|---|
0.2.2024.315 | 160 | 3/15/2024 |
0.2.2024.311 | 102 | 3/11/2024 |
0.1.2024.311 | 109 | 3/11/2024 |
0.1.2023.828 | 188 | 8/28/2023 |
阿里云短信;短信;移动;联通;电信;腾讯云短信;