May 20, 2021 WeChat Mini Program Development Document
In addition to supporting small-side SDK and cloud-side SDK access, cloud-side SDK access is supported from 06/04.
The Web SDK is used in the web, has access to cloud development resources, currently only supports unsigned-in mode access, and does not support getting login status on the web at this time.
The Web SDK API is basically the same as the small terminal API, with the following differences:
cloud.init
cloud.init adds parameter appids, which must be called with a small program appid, such as:
cloud.init({
appid: 'wx123456789',
env: 'release-xxx',
})
uploadFile
The small terminal is the incoming temporary file address as the source file uploaded, and the web side requires the incoming file parameter, the type File.
downloadFile
The small terminal saves the downloaded file as a local temporary file, and the web side returns the content as arraybuffer in the field data.
Document
API documentation is in the SDK API documentation, and APIs that support web-side use are labeled.
Update the log