网络界面
qyweixin的Python项目详细描述
QyWeixIn/H2>
使用量
- 获取令牌
>>>importqyweixin>>>token=qyweixin.get_token('corpid','corpsecret')>>>token...
- 推送消息
>>>importqyweixin>>>push_msg=qyweixin.WeixinPush()>>>push_msg.push_text_msg(token=token,agentid=0,content='test msg',touser='test',toparty='test_group',totag='',safe=0)True
- 上载文件
>>>importqyweixin>>>media_id=qyweixin.upload(token,filename,filepath,filetype)...
功能
- 推送消息
- 上载媒体
- 管理媒体
安装
安装QyWiXin,简单地说:
$ pip install qyweixin
注意
v0.3.0上的这个包有一个损坏的api。当消息发送失败时,将返回详细信息
许可证
版权所有(c)2015-2017 Taobeier
历史
- 2015.09.27开始
- 2015.10.08添加文件上载
- 2015.11.19简单API
- 2016.11.22升级至0.2.2改进推送消息API