API /Identity Management API /getIdentityCode /
wx.getIdentityCode(Object object)
During the system logon state is in effect, the login credentials can be obtained by calling this interface to request the server API code2Verifyinfo。
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 |
10001011 | System login status invalid |
-700000 | Front End Error, errMsg Will give detailed hints |
sample code
The translations are provided by WeChat Translation and are for reference only. In case of any inconsistency and discrepancy between the Chinese version and the English version, the Chinese version shall prevail.Incorrect translation. Tap to report.