V3 Manage Mini Program Information
JSON Fields Sent by the App:
Field Name | Field Type | Field Description |
---|---|---|
version | int | Protocol library version |
operate | int | 0: Invalid 1: Launch mini program 2: Delete mini program 3: Get installed mini program list |
mini_program_name | char [] | Mini program name Not applicable for operate=0 or operate=3. No need to send the name Maximum 29 bytes |
name_len | int | The name of the applet contains a maximum of 30 bytes by default and contains one terminator operate=0 & operate=3. The operation is invalid |
Example:
{
"version": 0,
"operate": 1,
"name_len": 5,
"mini_program_name": "粤康码"
}
JSON Fields Received by the App:
Field Name | Field Type | Field Description |
---|---|---|
version | int | Protocol library version |
operate | int | 0: Invalid 1: Launch mini program 2: Delete mini program 3: Get installed mini program list |
error_code | int | 0: Success 17: The application is being started 22: Low power 26: Power saving mode 27: In motion 28: The call is ongoing 29: Charging |
mini_program_num | int | Number of mini programs (valid for operate=3) Maximum 50 programs |
residual_space | int | Remaining space |
total_space | int | Total space |
info_item | array | List of mini programs |
support_get_mini_program_max_num | int | The maximum number of small programs supported. The default is 20 |
support_mini_program_name_max_len | int | The maximum length of the supported applet name is 30 bytes by default and contains a terminator |
In info_item:
Field Name | Field Type | Field Description |
---|---|---|
mini_program_name | char [] | Mini program name (maximum 29 bytes) |
mini_program_size | int | Mini program size |
mini_program_version | int | Mini program version number |
name_len | int | The maximum default length of a small program name is 30 bytes and contains a terminator |
Example:
{
"version": 0,
"operate": 1,
"error_code": 0,
"mini_program_num": 0,
"residual_space": 0,
"total_space": 0,
"info_item": null,
"support_get_mini_program_max_num":7,
"support_mini_program_name_max_len":8
}