Skip to main content

Interface for Tencent enterprise weixin.

Project description

qyweixin

https://img.shields.io/pypi/v/qyweixin.svg

enterprise weixin, interface.

Usage

  • get token

>>> import qyweixin
>>> qy = qyweixin.AccessToken(corpid, corpsecret)
>>> token = qy.get_token()
>>> token
...
  • push message

>>> push_msg = qyweixin.WeixinPush()
>>> push_msg.push_text_msg(token=token, content='test msg')
True
  • upload files

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

Features

  • uploads media

  • manage media

  • receive message

  • more qyweixin api

Installation

To install qyweixin, simply:

$ pip install qyweixin

HISTORY

  • 2015.09.27 start

  • 2015.10.08 Add file upload

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

Uploaded Source

Built Distribution

qyweixin-0.1.3-py2.py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 2 Python 3

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