# wx.miniapp.bindApple (Object object)
iOS >= 1.0.9,Android >= 1.0.5
Call the interface to bind the Apple account while the system login state is in effect.
# parameter
# Object object
attribute | type | Default value | Required | Introductions |
---|---|---|---|---|
success | function | no | Interface calls a successful callback function | |
fail | function | no | Interface to call a failed callback function | |
complete | function | no | The callback function at the end of an interface call |
# object.fail callback
# parameter
# Object res
attribute | type | Introductions |
---|---|---|
errCode | number | Error code |
errMsg | string | Error message |
**res.errCode **
errCode | Introductions |
---|---|
-1 | system error |
10001011 | System login status invalid |
10001037 | The Apple account already exists. Binding failure |
-700000 | Front End Error, errMsg Will give detailed hints |
# sample code
wx.miniapp.bindApple ({
success(res) {
// Binding success
}
})