wmpf.Channel.invoke(Object object)
Asynchronous trigger third party App Service instruction
parameter
Object object
attribute | type | Default value | Required | Introductions |
command | string | | yes | Mini Program through wmpf Transmitted to third parties app The instruction name of the |
data | Object | | no | Mini Program through wmpf Transmitted to third parties app Instruction parameters of the |
success | function | | no | Interface calls a successful callback function |
fail | function | | no | Interface call failed callback function |
complete | function | | no | The callback function at the end of the interface call (the call is executed on success or failure) |
object.success callback
parameter
Object res
attribute | type | Introductions |
data | string | third party app through wmpf The call passed to the Mini Program returns the result |
sample code