Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/myvas/TencentSms
ISmsSender implementation via TencentYun (aka. Qcloud) SMS service.
https://github.com/myvas/TencentSms
aspnetcore demo middleware netstandard20 nuget qcloudsms sms tencentsms
Last synced: 3 days ago
JSON representation
ISmsSender implementation via TencentYun (aka. Qcloud) SMS service.
- Host: GitHub
- URL: https://github.com/myvas/TencentSms
- Owner: myvas
- License: mit
- Created: 2017-03-25T13:12:21.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-09-17T15:36:51.000Z (over 1 year ago)
- Last Synced: 2023-12-19T15:43:55.354Z (about 1 year ago)
- Topics: aspnetcore, demo, middleware, netstandard20, nuget, qcloudsms, sms, tencentsms
- Language: C#
- Homepage: http://demo.auth.myvas.com
- Size: 82 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# TencentSms
![TencentSms github actions status](https://github.com/myvas/AspNetCore.TencentSms/actions/workflows/dotnet.yml/badge.svg)An `ISmsSender` implementation for TencentSms. (aka QcloudSms)
## Demo
Myvas.AspNetCore.Authentication.Demo
[![GitHub (Pre-)Release Date](https://img.shields.io/github/release-date-pre/myvas/AspNetCore.Authentication.Demo?label=github)](https://github.com/myvas/AspNetCore.Authentication.Demo)## NuGet
Myvas.AspNetCore.TencentSms
[![NuGet](https://img.shields.io/nuget/v/Myvas.AspNetCore.TencentSms.svg)](https://www.nuget.org/packages/Myvas.AspNetCore.TencentSms) [![GitHub (Pre-)Release Date](https://img.shields.io/github/release-date-pre/myvas/AspNetCore.TencentSms?label=github)](https://github.com/myvas/AspNetCore.TencentSms)## ConfigureServices
```csharp
services.AddTencentSms(options =>
{
options.SdkAppId = Configuration["TencentSms:SdkAppId"];
options.AppKey = Configuration["TencentSms:AppKey"];
});
```## Inject & Invoke
```csharp
private readonly ISmsSender _smsSender;public XxxController(ISmsSender smsSender)
{
_smsSender = smsSender ?? throw new ArgumentNullException(nameof(smsSender);
}public IActionResult Xxx()
{
//...
var result = await _smsSender.SendSmsAsync(mobile, content);
}
```## API Implementation Status
### Plan:
- To support the TencentSms API, docs here: https://cloud.tencent.com/document/product/382### Dependencies:
- https://www.nuget.org/packages/qcloud.qcloudsms_csharp### DONE:
- 国内发送短信(发送一条短信)
- 国内群发短信(提交群发短信)