Skip to main content

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)

Uploaded Source

Built Distribution

wxcloudsdk-0.0.6-py3-none-any.whl (6.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page