tencent

package
v0.0.0-...-d13da26 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(client *sms.Client, appId string,
	signName string, limiter ratelimit.Limiter) *Service

func NewServiceV1

func NewServiceV1(c *sms.Client, appId string, signName string) *Service

func (*Service) Send

func (s *Service) Send(ctx context.Context,
	biz string, args []string, numbers ...string) error

Send 一个是 []*string 一个是 string,json 串 biz 直接代表的就是 tplId

func (*Service) SendV1

func (s *Service) SendV1(ctx context.Context, tplId string, args []mysms.NamedArg, numbers ...string) error

type ServiceV1

type ServiceV1 struct {
	// contains filtered or unexported fields
}

func (*ServiceV1) Send

func (s *ServiceV1) Send(ctx context.Context, tplId string, args map[string]string, numbers ...string) error

Jump to

Keyboard shortcuts

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