sms

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2024 License: MulanPSL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Server = "https://api.mysubmail.com"

Variables

This section is empty.

Functions

func CreateMulti

func CreateMulti() *multi

func CreateMultiXsend

func CreateMultiXsend(config map[string]string) *multixsend

func CreateXsend

func CreateXsend(config map[string]string) *xsend

func XSend

func XSend(to, tempId string, data map[string]string, appId, appKey string) error

Types

type SmsResponse added in v0.2.1

type SmsResponse struct {
	Status                  string `json:"status"`
	Msg                     string `json:"msg"`
	SendId                  string `json:"send_id"`
	Fee                     int    `json:"fee"`
	SmsCredits              string `json:"sms_credits"`
	TransactionalSmsCredits string `json:"transactional_sms_credits"`
}

func MultiXSend

func MultiXSend(to []string, tempId string, data map[string]string, appId, appKey string) ([]SmsResponse, []string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL