Skip to main content

weixin-api

weixin api for miniprogram and minigame.

pip install -U weixin-api

Usage

import weixin_api

weixin_api.auth: 登录
weixin_api.media: 素材
weixin_api.message: 客服消息
weixin_api.qrcode: 二维码
weixin_api.template: 模板消息
weixin_api.sns: sns相关

pay:

from weixin_api.midas import MidasPay

midas_pay = MidasPay(
    app_id='appid',
    offer_id='12345678',
    app_key='app_key',
    sandbox=False,
)

midas_pay.getbalance(access_token, session_key, open_id, **kwargs)
midas_pay.pay(access_token, session_key, open_id, bill_no, amount, **kwargs)
midas_pay.cancelpay(access_token, session_key, open_id, bill_no, **kwargs)
midas_pay.present(access_token, session_key, open_id, bill_no, **kwargs)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

weixin-api-1.4.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

weixin_api-1.4.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file weixin-api-1.4.0.tar.gz.

File metadata

  • Download URL: weixin-api-1.4.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5

File hashes

Hashes for weixin-api-1.4.0.tar.gz
Algorithm Hash digest
SHA256 e2ed8a1a4f38609c8c9811877e701c35aa0e89835b11f7b6f085af647ae83766
MD5 d59fd2156420c1b8cf007cfdb0f0052e
BLAKE2b-256 75271d8fc0adaf50c6b6bdfb84c67297739d621e6b106d067c277e9b23388473

See more details on using hashes here.

File details

Details for the file weixin_api-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: weixin_api-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5

File hashes

Hashes for weixin_api-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7452619211edb2a37c87055b4729eec50a5b3b9b3ac7336a7f90ee492a141e89
MD5 4662f861c300f129930b8785e2eda87a
BLAKE2b-256 c691f9d5f062be1a8a13bf12082ac1860d95fd67b54cd01156ea4eabaaa6e8fb

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 files

Supported by

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