wx.appleLogin(Object object)
call JSAPI Conduct Apple log in, Get Temporary Login Credentials (Code)In exchange for user identification information.
Note: This interface is not supported inMobile App AssistantDebugging, developers need to build ipa Install to the phone before debugging
Front preparation
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.success callback
parameter
Object res
attribute | type | Introductions |
Code | string | User login credentials (valid for five minutes). The developer can call the code2Verifyinfo, Use Code In exchange for user identification information |
object.fail callback
parameter
Object res
attribute | type | Introductions |
errCode | number | Error code |
errMsg | string | Error message |
**res.errCode **
errCode | Introductions |
-1 | system error |
10001005 | Multiterminal Application Unplugged Identity Management |
10001009 | Apple Login Not configured |
10001010 | Apple Login Configuration Error |
10001020 | Failed to request an Apple service, Please try again later. |
-700000 | Front End Error, errMsg Will give detailed hints |
sample code