A weixin api project
Project description
# 微信API Python sdk
本项目是对微信官方提供的api的封装,方便各种功能的实现,另外提供了access_token的中控器。
## 安装
pip install weixin
## 使用
from weixin import Manager, WxApiPublic
m = Manager(name="1", redis_addr=None, redis_port=6379, redis_password=None, redis_index=1,
app_id="xxxxxxxxx", app_secret="xxxxxxx")
api = WxApiPersonal(m)
print api.get_weichat_ip()
## Manager
__init__
|名称|类型|描述|起始版本|示例|
|---|---|---|---|---|---|
| name | string |用于该manager的标识|0.1||
| redis_addr |string|redis服务器地址|0.1||
| redis_port |int|redis服务器端口|0.1|0|
| redis_password | string |redis密码|0.1||
| redis_index | int |redis数据库索引|0.1||
| app_id | string |微信公众号的的appid|0.1||
| app_secret | string |微信公众号的appsecret|0.1||
## WxApiPersonal
用于微信公众号个人公众号
get_weichat_ip 获得微信服务器地址
## WxApiPublic
用于微信公众号订阅号 暂未测试
本项目是对微信官方提供的api的封装,方便各种功能的实现,另外提供了access_token的中控器。
## 安装
pip install weixin
## 使用
from weixin import Manager, WxApiPublic
m = Manager(name="1", redis_addr=None, redis_port=6379, redis_password=None, redis_index=1,
app_id="xxxxxxxxx", app_secret="xxxxxxx")
api = WxApiPersonal(m)
print api.get_weichat_ip()
## Manager
__init__
|名称|类型|描述|起始版本|示例|
|---|---|---|---|---|---|
| name | string |用于该manager的标识|0.1||
| redis_addr |string|redis服务器地址|0.1||
| redis_port |int|redis服务器端口|0.1|0|
| redis_password | string |redis密码|0.1||
| redis_index | int |redis数据库索引|0.1||
| app_id | string |微信公众号的的appid|0.1||
| app_secret | string |微信公众号的appsecret|0.1||
## WxApiPersonal
用于微信公众号个人公众号
get_weichat_ip 获得微信服务器地址
## WxApiPublic
用于微信公众号订阅号 暂未测试
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
weixins-0.1.0.tar.gz
(6.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file weixins-0.1.0.tar.gz.
File metadata
- Download URL: weixins-0.1.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a7d41fd150552f86c1878670ac091dd6fb0dec75e408e20c6fe56d4edb1956c
|
|
| MD5 |
b82756b47648c8594da517e16d155c80
|
|
| BLAKE2b-256 |
7c362b853aacd88de8ee011d56a7e4fd4c92b3ad848bfd6912bce4545fd33807
|
File details
Details for the file weixins-0.1.0-py2-none-any.whl.
File metadata
- Download URL: weixins-0.1.0-py2-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f36c77148adcd05cf9bfa60fc24d31e0e4749d528ba675d945e95060328a549
|
|
| MD5 |
d095c80907c1bf613757fb8e61f3acc0
|
|
| BLAKE2b-256 |
f0bdeeac9bf96b5582e89f438920cde76f67d20412b957327583460cedf3b498
|