wxpusher sdk python
Long time no see
WxPusher Python SDK.
Other language versions: English, Simplified Chinese.
pip install -U wxpusher
from wxpusher import WxPusher
WxPusher . send_message ( '<content>' ,
uids = [ '<uids>' ],
topic_ids = [ '<topic_ids>' ],
token = '<appToken>' )
WxPusher . query_message ( '<messageId>' )
WxPusher . create_qrcode ( '<extra>' , '<validTime>' , '<appToken>' )
WxPusher . query_user ( '<page>' , '<page_size>' , '<appToken>' )
Running tests requires configuring appToken
and uids
.
First, copy the configuration sample config.sample.py
in the wxpusher/tests/
folder and name it config.py
.
cd wxpusher/tests
cp config.sample.py config.py
Then, fill in the corresponding information in config.py
.
After configuration, you can use tox
to run the test.
tox
Or you can use nose
directly
nosetests