# wmpf.Channel.registerEvent(Object object)

Registration of third parties App Service events

# parameter

# Object object

attribute type Default value Required Introductions
event string yes Event name to be registered
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)

# sample code

wmpf.Channel.registerEvent({
  event: 'test',
  success(res) {
    console.log(res)
  }
})