subscribe_notification

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 subscribe_notification 订阅消息

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Notify

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

订阅消息推送

用户产生了订阅模板消息的行为后,可以通过这个接口发送模板消息给用户,功能参考订阅消息能力。

See: https://microapp.bytedance.com/docs/zh-CN/mini-app/develop/server/subscribe-notification/notify

POST https://developer.toutiao.com/api/apps/subscribe_notification/developer/v1/notify

Example
package main

import (
	"fmt"

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

func main() {
	var ctx *microapp.MicroApp

	payload := []byte("{}")
	resp, err := subscribe_notification.Notify(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