qyweixin 0.3.1

Creator: railscoderz

Last updated:

Add to Cart

Description:

qyweixin 0.3.1

qyweixin






Enterprise weixin, interface.

Usage

get token

>>> import qyweixin
>>> token = qyweixin.get_token('corpid', 'corpsecret')
>>> token
...

push message

>>> import qyweixin
>>> 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

upload files

>>> import qyweixin
>>> media_id = qyweixin.upload(token, filename, filepath, filetype)
...


Features

push messages
uploads media
manage media
more qyweixin api



Installation
To install qyweixin, simply:
$ pip install qyweixin


Notice
This package on v0.3.0 has one broken api. When the message fails to send, the details are returned.



License
Copyright (C) 2015-2017 TaoBeier


HISTORY

2015.09.27 Start
2015.10.08 Add file upload
2015.11.19 Simple API
2016.11.22 Upgrade to 0.2.2 improve push_message API

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.