LiteX.Sms.Plivo is a sms library which is based on LiteX.Sms.Core and Plivo Sms API.
Allow sending texts via Plivo API.
Wrapper around Plivo api to send sms messages from any type of application.
Small library for manage sms with Plivo. A quick setup for Plivo Sms.
Wrapper library is just written for the purpose to bring a new level of ease to the developers who deal with Plivo integration with your system.
Install via Nuget.
PM> Install-Package LiteX.Sms.Plivo
{
//LiteX Plivo Sms settings
"PlivoConfig": {
"AuthId": "--- REPLACE WITH YOUR Plivo Account SID ---",
"AuthToken": "--- REPLACE WITH YOUR Plivo Auth Token ---",
"FromNumber": "--- REPLACE WITH Plivo From Number ---",
"EnableLogging": true
}
}
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
// 1. Use default configuration from appsettings.json's 'PlivoConfig'
services.AddLiteXPlivoSms();
//OR
// 2. Load configuration settings using options.
services.AddLiteXPlivoSms(option =>
{
option.AuthId = "";
option.AuthToken = "";
option.FromNumber = "";
option.EnableLogging = true;
});
//OR
// 3. Load configuration settings on your own.
// (e.g. appsettings, database, hardcoded)
var plivoConfig = new PlivoConfig()
{
AuthId = "",
AuthToken = "",
FromNumber = "",
EnableLogging = true
};
services.AddLiteXPlivoSms(plivoConfig);
// add logging (optional)
services.AddLiteXLogging();
}
}
Same for all providers.
For more helpful information about LiteX Sms, Please click here.
- Bulk Sms