Skip to content

MoeLove/qyweixin

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

qyweixin

https://travis-ci.org/MoeLove/qyweixin.svg?branch=master https://coveralls.io/repos/MoeLove/qyweixin/badge.svg?branch=master&service=github

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-2018 TaoBeier