pigeon

package module
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MsgError added in v1.0.8

type MsgError struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

func (MsgError) Error added in v1.0.8

func (m MsgError) Error() string

type SDK

type SDK struct {
	AppKey    string
	AppSecret string
	BaseURL   string
}

func New

func New(baseURL, appKey, appSecret string) *SDK

func (*SDK) SendMixinAppcard

func (sdk *SDK) SendMixinAppcard(ctx context.Context, appID string, appcard *models.AppCard, receivers []string) *MsgError

func (*SDK) SendMixinButtonGroup

func (sdk *SDK) SendMixinButtonGroup(ctx context.Context, appID string, msgID string, buttons []*models.MsgButton, receivers []string) *MsgError

func (*SDK) SendMixinContact

func (sdk *SDK) SendMixinContact(ctx context.Context, appID string, msgID, mixinUserID string, receivers []string) *MsgError

func (*SDK) SendMixinLive

func (sdk *SDK) SendMixinLive(ctx context.Context, appID string, live *models.Live, receivers []string) *MsgError

func (*SDK) SendMixinLocation

func (sdk *SDK) SendMixinLocation(ctx context.Context, appID string, location *models.Location, receivers []string) *MsgError

func (*SDK) SendMixinMultiMsg

func (sdk *SDK) SendMixinMultiMsg(ctx context.Context, appID string, messages []models.IMixinMsg, receivers []string) *MsgError

func (*SDK) SendMixinPost

func (sdk *SDK) SendMixinPost(ctx context.Context, appID string, msgID, post string, receivers []string) *MsgError

func (*SDK) SendMixinSticker

func (sdk *SDK) SendMixinSticker(ctx context.Context, appID string, sticker *models.Sticker, receivers []string) *MsgError

func (*SDK) SendMixinText

func (sdk *SDK) SendMixinText(ctx context.Context, appID string, msgID, text string, receivers []string) *MsgError

func (*SDK) SendSMS

func (sdk *SDK) SendSMS(ctx context.Context, appID string, msgID, content string, phoneNumbers []string) *MsgError

Directories

Path Synopsis
utils
id

Jump to

Keyboard shortcuts

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