WeChat.Template (wechat v0.2.0)
消息管理 - 模板消息
Link to this section Summary
Link to this section Types
Link to this type
description()
Specs
description() :: String.t()
Link to this type
industry_id()
Specs
industry_id() :: integer()
Link to this type
pic_url()
Specs
pic_url() :: String.t()
Link to this type
template_id()
Specs
template_id() :: String.t()
Link to this type
title()
Specs
title() :: String.t()
Link to this type
url()
Specs
url() :: String.t()
Link to this section Functions
Link to this function
api_add_template(client, template_id_short)
Specs
api_add_template(WeChat.client(), template_id_short :: String.t()) :: WeChat.response()
获得模板ID - 官方文档
Link to this function
api_set_industry(client, industry_id1, industry_id2)
Specs
api_set_industry(WeChat.client(), industry_id(), industry_id()) :: WeChat.response()
设置所属行业 - 官方文档
每月可修改行业1次,帐号仅可使用所属行业中相关的模板
Link to this function
del_private_template(client, template_id)
Specs
del_private_template(WeChat.client(), template_id()) :: WeChat.response()
删除模板 - 官方文档
Link to this function
get_all_private_template(client)
Specs
get_all_private_template(WeChat.client()) :: WeChat.response()
获取模板列表 - 官方文档
Link to this function
get_industry(client)
Specs
get_industry(WeChat.client()) :: WeChat.response()
获取设置的行业信息 - 官方文档
Link to this function
send_template_message(client, body)
Specs
send_template_message(WeChat.client(), body :: map()) :: WeChat.response()
发送模板消息 - 官方文档
Link to this function
send_template_message(client, openid, template_id, data)
Specs
send_template_message( WeChat.client(), WeChat.openid(), template_id(), data :: map() ) :: WeChat.response()
发送模板消息 - 官方文档