tencentminiprogramum

package
v0.0.0-...-9b96405 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APIUniformSend = tencentminiprogram.Server.EndPoint("POST", "cgi-bin/message/wxopen/template/uniform_send")

Functions

func Send

func Send(app *tencentminiprogram.App, msg *Message) error

Types

type Message

type Message struct {
	ToUser               string                `json:"touser"`
	WeappTemplateMessage *WeappTemplateMessage `json:"weapp_template_msg"`
	MpTemplateMsg        TemplateMessage       `json:"mp_template_msg"`
}

func NewMessage

func NewMessage() *Message

type ResultAPIError

type ResultAPIError struct {
	Errcode int    `json:"errcode"`
	Errmsg  string `json:"errmsg"`
}

type TemplateMessage

type TemplateMessage struct {
	AppID       string                      `json:"appid"`
	TemplateID  string                      `json:"template_id"`
	Miniprogram *TemplateMessageMiniprogram `json:"miniprogram"`
	URL         *string                     `json:"url"`
	Data        json.RawMessage             `json:"data"`
}

type TemplateMessageMiniprogram

type TemplateMessageMiniprogram struct {
	AppID    string `json:"appid"`
	PagePath string `json:"pagepath"`
}

type WeappTemplateMessage

type WeappTemplateMessage struct {
	TemplateID      string `json:"template_id"`
	Page            string `json:"page"`
	FormID          string `json:"form_id"`
	EmphasisKeyword string `json:"emphasis_keyword"`
	Data            string `json:"data"`
}

Jump to

Keyboard shortcuts

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