Skip to main content

weixin api for miniprogram and minigame

Project description

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)

Project details


Release history Release notifications

Download files

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

Files for weixin-api, version 1.4.0
Filename, size File type Python version Upload date Hashes
Filename, size weixin_api-1.4.0-py3-none-any.whl (9.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size weixin-api-1.4.0.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page