Documentation
¶
Index ¶
Constants ¶
View Source
const Protocol string = "gatewayapi"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoodResponse ¶
type GoodResponse struct {
Ids []int `json:"ids"`
}
type MessageWithSender ¶
type SmsGatewayapi ¶
type SmsGatewayapi struct { SmsGatewayapiConfig http_request.WithHttpClient // contains filtered or unexported fields }
func New ¶
func New() *SmsGatewayapi
func (*SmsGatewayapi) Config ¶
func (s *SmsGatewayapi) Config() interface{}
func (*SmsGatewayapi) Send ¶
func (s *SmsGatewayapi) Send(ctx op_context.Context, message string, recipient string, smsID ...string) (*sms.ProviderResponse, error)
type SmsGatewayapiConfig ¶
type SmsGatewayapiConfig struct { sms.ProviderBase URL string `validate:"required,url"` TOKEN string `validate:"required" mask:"true"` SENDER string }
Click to show internal directories.
Click to hide internal directories.