Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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:
- 国内发送短信(发送一条短信)
- 国内群发短信(提交群发短信)