sud.shareAppMessage
JS
sud.shareAppMessage(Object object)Shares the current minigame. Use query to pass custom business parameters.
Parameters
- Object object: Input parameters; see the table below for specific properties
Properties of object:
| Property | Type | Required | Description |
|---|---|---|---|
| query | string | No | Business parameters carried in the share |
| success | function | No | Callback function for a successful API call |
| fail | function | No | Callback function for a failed API call |
| complete | function | No | Callback function for the completion of the API call |
Parameters of the fail callback
- Object err: Error information
Properties of err:
| Property | Type | Description |
|---|---|---|
| errCode | number | Error code |
| errMsg | string | Error message |
