jeffkit / wechat Goto Github PK
View Code? Open in Web Editor NEWA wechat python SDK
License: GNU General Public License v3.0
A wechat python SDK
License: GNU General Public License v3.0
已经有werobot,这个wechat做的时候,出发点是什么呢?觉的werobot结构不好太乱?
或者换句话说,在werobot和wechat上,什么时候用哪个比较好呢?
如题,在WxTextResponse(result, req)
中如果result是包含中文的话,微信客户端没有反应;如果只是英文和数字没有问题,考虑应该是编码的问题导致微信端解密失败,目前还没发现哪个地方有问题。
开发文档: https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1419318292&lang=zh_CN
运行两次,
client = itchat.new_instance()
client.auto_login(hotReload=True, statusStorageDir='newInstance.pkl')
client.send_msg(msg, toUserName=name)
在测试时,发送给同一个人消息,第一次发消息扫描二维码,可以发送成功, 第二次消息会丢。
返回的json
{'LocalID': '1480947357859', 'BaseResponse': {'RawMsg': '请求成功', 'Ret': 0, 'ErrMsg': '请求成功'}, 'MsgID': '3373485233876127949'}
感觉使用web的网页给某个人发消息, 是可以成功的。
首页文档里的是正确的,我来尝试更新一下
试用demo代码,Wx app并未能如愿返回用户输入,而是遇到invalid request.
**invalid request [22/Feb/2016 20:05:15] "POST /echo?signature=025f1ccce4da17588cd4180504b0d473183a992c×tamp=1456142710&nonce=2123908672 HTTP/1.0" 200 15**
demo 代码中 import 的 WxClient 根本没有好像。。?
结构已经好了很多 ;-)
自定义菜单管理
OAuth API
~ 自定义菜单管理对于有的土豪 公众号, 已经开通了自制菜单,
如何快速可动态调整的响应 自制菜单的上行,就非常关键了,
这方面能给出具体的思路和 demo 嘛?
关于Oauth只有企业号里面有个url的封装啊, oauth有自己的accesstoken呢
下面说的二维码的功能,还没实现吧?
OAuth API目前仅支持下列常用接口:
发送消息
用户管理
自定义菜单管理
多媒体上传下载
二维码
其他接口拟于未来的版本中支持,同时欢迎大家来增补。
从源码看,是is_valid_params()
返回None了。在views中加日志确定,作为app.process(request.GET, request.body)
中的request.GET
是空集合。
根据微信开发者文档-接收普通消息 ,微信post到url的请求没有参数,所以这种情况是不是就不应该检查params了。
是不是可以通过检查请求方法是GET还是POST来判断要不要验证参数?
缺少License,推荐MIT License。
如题
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.