# wmpf.getWmpfPushToken(Object object)
To get the Token voucher
# parameter
# Object object
attribute | type | Default value | Required | Introductions |
---|---|---|---|---|
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 |
---|---|---|
初始值 | string | For pushing messages Token voucher |
初始值 | string | Token Invalid timestamp |
# sample code
wmpf.getWmpfPushToken({
success: res => {
console.log(res)
},
fail: res => {
console.log(res)
}
})