WeChat.CardDistributing (wechat v0.2.0)
微信卡券 - 投放卡券
Link to this section Summary
Link to this section Functions
Link to this function
check_code(client, card_id, code_list)
Specs
check_code(WeChat.client(), WeChat.Card.card_id(), [WeChat.Card.card_code()]) :: WeChat.response()
群发卡券 - 核查code接口 - 官方文档
Link to this function
create_landing_page(client, body)
Specs
create_landing_page(WeChat.client(), body :: map()) :: WeChat.response()
创建货架接口 - 官方文档
开发者需调用该接口创建货架链接,用于卡券投放。创建货架时需填写投放路径的场景字段。
Link to this function
create_qrcode(client, body)
Specs
create_qrcode(WeChat.client(), body :: map()) :: WeChat.response()
创建二维码接口 - 官方文档
开发者可调用该接口生成一张卡券二维码供用户扫码后添加卡券到卡包。
自定义Code码的卡券调用接口时,POST数据中需指定code,非自定义code不需指定,指定openid同理。指定后的二维码只能被用户扫描领取一次。
获取二维码ticket后,开发者可用换取二维码图片详情。
Link to this function
get_code_count(client, card_id)
Specs
get_code_count(WeChat.client(), WeChat.Card.card_id()) :: WeChat.response()
群发卡券 - 查询导入code数目接口 - 官方文档
Link to this function
get_mp_news_html(client, card_id)
Specs
get_mp_news_html(WeChat.client(), WeChat.Card.card_id()) :: WeChat.response()
图文消息群发卡券 - 官方文档
支持开发者调用该接口获取卡券嵌入图文消息的标准格式代码,将返回代码填入 新增临时素材 中content字段,即可获取嵌入卡券的图文消息素材。
特别注意:目前该接口仅支持填入非自定义code的卡券,自定义code的卡券需先进行code导入后调用。
Link to this function
import_code(client, card_id, code_list)
Specs
import_code(WeChat.client(), WeChat.Card.card_id(), [WeChat.Card.card_code()]) :: WeChat.response()
群发卡券 - 导入自定义code(仅对自定义code商户) - 官方文档
Link to this function
set_test_whitelist(client, list)
Specs
set_test_whitelist(WeChat.client(), openid: [WeChat.openid()], username: [WeChat.User.username()] ) :: WeChat.response()
设置测试白名单 - 官方文档
Link to this function
set_test_whitelist(client, openid_list, username_list)
Specs
set_test_whitelist(WeChat.client(), [WeChat.openid()], [WeChat.User.username()]) :: WeChat.response()
设置测试白名单 - 官方文档