Overview
The Mini Program Open Service facilitates access to users' openid or enables message pushing to users. This document provides a detailed workflow for integrating with the Mini Program Open Service.
Terminology
- MiniApp: The mini application developed by the merchant.
- MPFramework: The mini program framework that extends the JS API to the mini application.
- User: The end users of Binance.
- Backend: The merchant's backend.
- OpenService: The mini program platform's Open Service, which avails APIs for accessing user information or pushing messages to users.
OpenAPI
These are the currently supported OpenAPIs:
-
GetUserOpenId - Access user's openid.
-
SendPushMessage - Send template messages to users.
-
BroadcastMessage - Broadcast template messages to users.
-
UploadFile - Upload files to the mini program service to obtain a fileID for future use.
-
GetFileStatus - Check the successful upload of a file.
-
CreateSKUInAudit - Create a new sku for a mini program. Any newly created sku will need to be audited.
-
GetSKU - Retrieve a specific SKU and its current audit and online state.
-
ListSKUs - List all SKUs for a mini program, with optional filtering by audit status.
-
UpdateSKU - Update sku information for a mini program. Except for selling price and discount percentage, updates will need to be audited.
-
ActivateSKU - Activate or deactivate a specific sku.
-
GetUserPayId - Acquire Binance PayID for a given OpenID.
Appendix: