Interface for Tencent enterprise weixin.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qyweixin-0.3.1.tar.gz
(5.6 kB
view details)
Built Distribution
File details
Details for the file qyweixin-0.3.1.tar.gz
.
File metadata
- Download URL: qyweixin-0.3.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 749e037bb5a48e653afa80338d7c4e7bf0c628c651742009ce2bfd8f32d642dc |
|
MD5 | 338d961249799d9b925fdd07abea3bb1 |
|
BLAKE2b-256 | 7f1cd4aee125a054ad555d239acada6fd92e32be48ad248153031e78885ea228 |
File details
Details for the file qyweixin-0.3.1-py2.py3-none-any.whl
.
File metadata
- Download URL: qyweixin-0.3.1-py2.py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b622b5cf7c8ad9b61905743f94b928e0d81f706cf384f4034dbf1c85acf2ab6 |
|
MD5 | 63fac1d5b77999b0a16c940e63d2f70d |
|
BLAKE2b-256 | 8857038a4263bf3ed27e762120680c8fcaeed0a14ece3cf02d4db25ceca7363f |