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: 8 months 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 (about 9 years ago)
- Default Branch: master
- Last Pushed: 2025-09-08T22:15:16.000Z (9 months ago)
- Last Synced: 2025-10-03T20:34:09.469Z (9 months ago)
- Topics: aspnetcore, demo, middleware, netstandard20, nuget, qcloudsms, sms, tencentsms
- Language: C#
- Homepage: http://demo.auth.myvas.com
- Size: 128 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Myvas.AspNetCore.TencentSms
[](https://github.com/myvas/TencentSms)
[](https://github.com/myvas/TencentSms/actions/workflows/test.yml)
[](https://github.com/myvas/TencentSms/actions/workflows/publish.yml)
[](https://www.nuget.org/packages/Myvas.AspNetCore.TencentSms)
An `ISmsSender` implementation for TencentSms. (aka QcloudSms)
## Demo
Myvas.AspNetCore.Authentication.Demo
[](https://github.com/myvas/AspNetCore.Authentication.Demo)
## 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:
- 国内发送短信(发送一条短信)
- 国内群发短信(提交群发短信)