A Django app to use wechat.
Project description
Django Wechat Base
基于django的微信基础模块, 包括使用django缓存, 图片存储等
Quick Start
Install
$ pip install django-wechat-base
Update settings.py
WECHAT = {
'appid': '',
'secret': '',
...
}
Usage
from wechat.wxa import Wxa
wxa = Wxa()
qrcode = wxa.get_qrcode('https://github.com/ChanMo/')
print(qrcode)
API List
Wxa
from wechat import wxa
小程序相关功能
get_pay_data
获取小程序支付数据get_qrcode
获取小程序二维码get_delivery
获取小程序物流信息
Wxb
from wechat import wxb
公众号模块
get_js_config
获取js配置json
Message
from wechat import message
消息模块
send
发送模块消息
Payment(v3)
from wechat import payment3
微信支付相关(v3)
get_pay_data
获取支付数据parse_result
解析异步返回值return_failure
返回错误信息return_success
返回成功信息
Payment(v2)
微信支付相关(v2)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django_wechat_base-2.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69301c6d49e5c489ca5629ecce2cca3284fb7b4054b5c044355776ab70c5ffcb |
|
MD5 | ebd63fa9017070e80e6173d47215df55 |
|
BLAKE2b-256 | 9a9e9a04d7c15d21a4be3adf2032a11d4ab532ccfa839c96390e46ec924bda76 |