Wechat miniprogram http api tools
Project description
This package is maintained by Typing Catliuchunyao0321@gmail.com.
This package is useful for developing wechat miniprogram. Especially for the cloud apis.
API usage
pip install wxcloudsdk
demo.py
from wxcloudsdk import file_manager
file_manager.upload_file(a, b, c...)
get_md5: (title)
Return a md5 code by passing in a string. Useful for creating files' name instead of Chinese string.
upload_file: (token, env_id, cloud_path, cloud_dir, local_path)
Upload a single file to specific path wx cloud storage.
rebuild: (file_path, env_id, token, collection_name)
Refresh a collection by remove and rebuild it. NOTICE that you must upload the data file to the cloud storage first. File path is the cloud file path, not local.
Modify api urls by setting attributes when wechat update them
Default:
UPLOAD_API = "https://api.weixin.qq.com/tcb/uploadfile"
COLLECTION_DELETE_API = "https://api.weixin.qq.com/tcb/databasecollectiondelete"
COLLECTION_ADD_API = "https://api.weixin.qq.com/tcb/databasecollectionadd"
COLLECTION_MIGRATE_API = "https://api.weixin.qq.com/tcb/databasemigrateimport"
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wxcloudsdk-0.0.6.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for wxcloudsdk-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed3ad104e0f8225640aca8bc364c9c22054d89c00247bd3dfcfd4a87263259bf |
|
MD5 | f91b94863a3952640d4ed6271d8e06c3 |
|
BLAKE2b-256 | 3f4874de6eb6728184a2001470a29945e0b4e2d4e135d4723e40c234a1f33a7f |