Wechat miniprogram http api tools
Project description
This package is maintained by Typing Catliuchunyao0321@gmail.com.
This package is useful for WeChat miniprogram development, especially 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 file names with strings instead of Chinese names.
upload_file: (token, env_id, cloud_path, cloud_dir, local_path)
Upload a file to the specified path on wx cloud storage.
rebuild: (file_path, env_id, token, collection_name)
Refresh a collection by removing and rebuilding. NOTICE that you must upload the data file to the cloud storage first. The file path must be a cloud file path, not local.
Modify api urls by assignment when WeChat team 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.8.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for wxcloudsdk-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46e605eadabd1d539d3edd4e7c516445ffde11d4d1eb98f1a5fe3949d08d0f5d |
|
MD5 | 2577026922333ac16b7e5e5ef89daf0e |
|
BLAKE2b-256 | 17c1c48ec0ec19631b6886a30af87657c0be2e27ac3e5a6f1a455ce6c173f916 |