Skip to main content

Interface for Tencent enterprise weixin.

Project description

qyweixin

https://img.shields.io/pypi/v/qyweixin.svg https://travis-ci.org/MoeLove/qyweixin.svg?branch=master https://coveralls.io/repos/MoeLove/qyweixin/badge.svg?branch=master&service=github https://img.shields.io/pypi/dm/qyweixin.svg https://img.shields.io/pypi/wheel/qyweixin.svg https://img.shields.io/pypi/status/qyweixin.svg

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

License

Copyright (C) 2015-2016 TaoBeier

HISTORY

  • 2015.09.27 Start

  • 2015.10.08 Add file upload

  • 2015.11.19 Simple API

  • 2016.11.22 Upgrade to 0.2.1 improve push_message API

Project details


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.2.1.tar.gz (5.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page