Skip to main content

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

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

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qyweixin-0.3.1-py2.py3-none-any.whl (7.2 kB view details)

Uploaded Python 2Python 3

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

Hashes for qyweixin-0.3.1.tar.gz
Algorithm Hash digest
SHA256 749e037bb5a48e653afa80338d7c4e7bf0c628c651742009ce2bfd8f32d642dc
MD5 338d961249799d9b925fdd07abea3bb1
BLAKE2b-256 7f1cd4aee125a054ad555d239acada6fd92e32be48ad248153031e78885ea228

See more details on using hashes here.

File details

Details for the file qyweixin-0.3.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for qyweixin-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5b622b5cf7c8ad9b61905743f94b928e0d81f706cf384f4034dbf1c85acf2ab6
MD5 63fac1d5b77999b0a16c940e63d2f70d
BLAKE2b-256 8857038a4263bf3ed27e762120680c8fcaeed0a14ece3cf02d4db25ceca7363f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 files

0.3.0

2 files

0.2.2

2 files

0.2.1

1 file

0.2.0

2 files

0.1.3

2 files

0.1.2

1 file

0.1.1

1 file

0.1.0

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page