Implements Powow TransactionalSMS.Create and TransactionalSMS.Update RPC

methods

See CNOUS/mse#1005
This commit is contained in:
2021-03-01 15:18:10 +01:00
parent eb9f19eaa0
commit c419d6b79f
7 changed files with 267 additions and 63 deletions

View File

@ -28,8 +28,7 @@ type DataConfig struct {
}
type PowowConfig struct {
APIKey string `yaml:"apiKey" env:"FAKESMS_POWOW_API_KEY"`
SMS []PowowSMS `yaml:"sms"`
APIKey string `yaml:"apiKey" env:"FAKESMS_POWOW_API_KEY"`
}
type PowowSMS struct {
@ -80,17 +79,6 @@ func NewDefault() *Config {
},
Powow: PowowConfig{
APIKey: "powow",
SMS: []PowowSMS{
{
Name: "Powow SMS",
From: "FakeSMS",
ShortLink: false,
Content: `Bonjour %Subscriber:Firstname%,
Lorem ipsum dolor sit amet...
`,
},
},
},
}
}