Documentation ¶
Overview ¶
Package subscribe_notification 订阅消息
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Notify ¶
订阅消息推送
用户产生了订阅模板消息的行为后,可以通过这个接口发送模板消息给用户,功能参考订阅消息能力。
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.
Click to show internal directories.
Click to hide internal directories.