Skip to content

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:

PropertyTypeRequiredDescription
querystringNoBusiness parameters carried in the share
successfunctionNoCallback function for a successful API call
failfunctionNoCallback function for a failed API call
completefunctionNoCallback function for the completion of the API call

Parameters of the fail callback

  • Object err: Error information

Properties of err:

PropertyTypeDescription
errCodenumberError code
errMsgstringError message