小幸文案素材库API

小幸文案素材库API


发送订阅消息

{"info":{"from":"runapi","type":"api","title":"","description":"发送订阅消息","method":"post","url":"http://localhost:8500/message/subscribe/send","remark":"返回码 code 说明:\n参考地址: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.send.html\n40003:\ttouser字段openid为空或者不正确\t\n40037:\t订阅模板id为空不正确\t\n43101:\t用户拒绝接受消息,如果用户之前曾经订阅过,则表示用户取消了订阅关系\t\n47003:\t模板参数不准确,可能为空或者不满足规则,errmsg会提示具体是哪个字段出错\t\n41030:\tpage路径不正确,需要保证在现网版本小程序中存在,与app.json保持一致"},"request":{"params":{"mode":"json","urlencoded":[],"formdata":[{"name":"","type":"string","value":"","require":"1","remark":""}],"json":"{\n \"touser\": \"oge3Z5fPtiGWgASWWi63niZ8I3Hk\",\n \"templateId\": \"YptC73H0r4NZoCTfG2dbBwRVincaxFqltgP_zLQ0zgA\",\n \"page\": \"pages/index/index\",\n \"miniprogramState\": \"developer\",\n \"lang\": \"zh_CN\",\n \"data\": {\n \"name3\": {\n \"value\": \"张三\"\n },\n \"date2\": {\n \"value\": \"2018-01-01\"\n }\n }\n}","jsonDesc":[{"name":"touser","type":"string","value":"","require":"1","remark":"接收者(用户)的 openid"},{"name":"templateId","type":"string","value":"","require":"1","remark":"所需下发的订阅模板id"},{"name":"page","type":"string","value":"","require":"0","remark":"点击模板卡片后的跳转页面,仅限本小程序内的页面。支持带参数,(示例index?foo=bar)。该字段不填则模板无跳转。"},{"name":"miniprogramState","type":"string","value":"","require":"0","remark":"跳转小程序类型:developer为开发版;trial为体验版;formal为正式版;默认为正式版"},{"name":"lang","type":"string","value":"","require":"0","remark":"进入小程序查看”的语言类型,支持zh_CN(简体中文)、en_US(英文)、zh_HK(繁体中文)、zh_TW(繁体中文),默认为zh_CN"},{"name":"data","type":"object","value":"","require":"1","remark":"模板内容,格式形如 { \"key1\": { \"value\": any }, \"key2\": { \"value\": any } }"}]},"headers":[{"name":"miniCode","type":"string","value":"xiaoxin","require":"1","remark":"小程序标识","disable":"0"}],"cookies":[{"name":"","value":""}],"auth":[]},"response":{"responseText":"{\n \"data\": {},\n \"head\": {\n \"code\": 0,\n \"msg\": \"ok\"\n }\n}","responseOriginal":{"data":{},"head":{"code":0,"msg":"ok"}},"responseExample":"{\n \"data\": {},\n \"head\": {\n \"code\": 0,\n \"msg\": \"ok\"\n }\n}","responseHeader":{"access-control-allow-origin":"*","content-length":"40","content-type":"application/json;charset=UTF-8","date":"Wed, 10 Nov 2021 09:13:08 GMT","vary":"Origin, Access-Control-Request-Method, Access-Control-Request-Headers"},"responseStatus":200,"responseParamsDesc":[{"name":"data","type":"object","remark":"数据"},{"name":"head","type":"object","remark":"消息头"},{"name":"code","type":"string","remark":"返回码"},{"name":"msg","type":"string","remark":"消息文本"}],"remark":"返回码 code 说明:\n参考地址: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.send.html\n40003:\ttouser字段openid为空或者不正确\t\n40037:\t订阅模板id为空不正确\t\n43101:\t用户拒绝接受消息,如果用户之前曾经订阅过,则表示用户取消了订阅关系\t\n47003:\t模板参数不准确,可能为空或者不满足规则,errmsg会提示具体是哪个字段出错\t\n41030:\tpage路径不正确,需要保证在现网版本小程序中存在,与app.json保持一致"},"scripts":{"pre":"","post":""},"extend":{}}

页面列表

ITEM_HTML