View Source WeChat.MiniProgram.SubscribeMessage (wechat v0.18.0)

订阅信息

Summary

Types

notify_code()

@type notify_code() :: String.t()

notify_type()

@type notify_type() :: String.t()

send_data()

@type send_data() :: WeChat.SubscribeMessage.send_data()

Functions

add_template(client, tid, kid_list, scene_desc \\ "")

See WeChat.SubscribeMessage.add_template/4.

delete_template(client, pri_tmpl_id)

See WeChat.SubscribeMessage.delete_template/2.

get_category(client)

See WeChat.SubscribeMessage.get_category/1.

get_pub_template_key_words_by_id(client, tid)

See WeChat.SubscribeMessage.get_pub_template_key_words_by_id/2.

get_pub_template_titles(client, ids, start \\ 0, limit \\ 30)

See WeChat.SubscribeMessage.get_pub_template_titles/4.

get_templates(client)

See WeChat.SubscribeMessage.get_templates/1.

get_user_notify(client, openid, notify_type, notify_code)

@spec get_user_notify(WeChat.client(), WeChat.openid(), notify_type(), notify_code()) ::
  WeChat.response()

查询服务卡片状态 - 官方文档

服务卡片详细介绍: 新版一次性订阅消息开发指南

send(client, openid, template_id, data, options \\ %{})

See WeChat.SubscribeMessage.send/5.

set_user_notify(client, openid, notify_type, notify_code, send_data, pay_check \\ nil)

@spec set_user_notify(
  WeChat.client(),
  WeChat.openid(),
  notify_type(),
  notify_code(),
  send_data(),
  pay_check :: map()
) :: WeChat.response()

激活与更新服务卡片 - 官方文档

服务卡片详细介绍: 新版一次性订阅消息开发指南

set_user_notify_ext(client, openid, notify_type, notify_code, data)

@spec set_user_notify_ext(
  WeChat.client(),
  WeChat.openid(),
  notify_type(),
  notify_code(),
  data :: map()
) :: WeChat.response()

更新服务卡片扩展信息 - 官方文档

服务卡片详细介绍: 新版一次性订阅消息开发指南