GithubHelp home page GithubHelp logo

wechat-test's Introduction

不懂看这里,文件下载直接使用

链接:https://pan.baidu.com/s/1aZkKbi_ONwVLrsKN_EVz6g
提取码:r1rt

前置条件

注册一个微信公众号

https://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/login

扫码登录成功后,就可以生成微信公众测试号的appID和appsecret 扫描测试号二维码后会生成微信号,那个账号需要接收就扫码

新增测试模板

模板标题: 自定义,例如: 宝宝,晚上好!
模板内容参考:

{{date.DATA}}  
城市:{{city.DATA}}  
天气:{{weather.DATA}}  
最低气温: {{min_temperature.DATA}}  
最高气温: {{max_temperature.DATA}}  
今天是我们恋爱的第{{love_day.DATA}}天  
距离小宝的生日还有{{birthday.DATA}}天  


{{note_en.DATA}}  
{{note_ch.DATA}}

安装python3

官方网站: https://www.python.org/getit/

安装requests包

打开cmd,执行以下命令

pip3 install requests

修改配置文件

app_id: 测试号信息里的appID

app_secret: 测试信息里的appsecret

template_id: 模板消息接口里的模板ID

user: 测试号里的用户微信号

province: 所在省份

city: 所在城市

birthday: 生日

love_date: 纪念日

运行程序

python3 main.py

wechat-test's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.