template_message

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package template_message 模板消息

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(ctx *microapp.MicroApp, payload []byte) (resp []byte, err error)

发送模版消息

提示 本接口在服务器端调用 目前只有今日头条支持,抖音和 lite 接入中

See: https://microapp.bytedance.com/docs/zh-CN/mini-app/develop/server/model-news/send

POST https://developer.toutiao.com/api/apps/game/template/send

Example
package main

import (
	"fmt"

	"github.com/21888/microapp"
	"github.com/21888/microapp/apis/template_message"
)

func main() {
	var ctx *microapp.MicroApp

	payload := []byte("{}")
	resp, err := template_message.Send(ctx, payload)

	fmt.Println(resp, err)
}
Output:

Types

This section is empty.

Jump to

Keyboard shortcuts

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