Query verification code status (QueryVerifyCodeStatus)
[MSDK & Player Network SDK] Query the status of the verification code.
Supported platforms
- Unity
- Unreal Engine
Supports
Android, iOS, Windows platform.Supports
Android, iOS, Windows platform.Function Definition
- Unity
- Unreal Engine
void QueryVerifyCodeStatus(string account, string verifyCode, int codeType,string areaCode, string extraJson = "{}", string channel = "Self", string langType = "en_US");
static void QueryVerifyCodeStatus(const std::string &account, const std::string &verify_code, const int code_type, const std::string &channel = "Self", const std::string &lang_type = "en_US", const std::string &phone_area_code = "86", const std::string &extra_json = GUA_DEFAULT_JSON_STRING);
Input Parameters
- Unity
- Unreal Engine
| Parameters | Type | Description |
|---|---|---|
| account | string | Account can be registered with email and phone number |
| verifyCode | string | Verification code |
| codeType | int | Type of Verification Code Request: 0 – Registration 1 – Change Password 2 – Login with Verification Code 3 – Modify Account Information |
| areaCode | string | Phone area code example "86" for China, leave empty if the account is an email. |
| extraJson | string | Extended information |
| channel | string | Channel Currently not used by Player Network SDK, can be set to c" |
| langType | string | Language type Currently not used by Player Network SDK, can be "" |
| Parameters | Type | Description |
|---|---|---|
| account | std::string | Account can be registered with email and phone number |
| verify_code | std::string | Verification code |
| code_type | int | Type of Verification Code Request: 0 – Registration 1 – Change Password 2 – Login with Verification Code 3 – Modify Account Information |
| channel | std::string | Channel Currently not used by Player Network SDK, can be set to "" |
| lang_type | std::string | Language type Currently not used by Player Network SDK, can be "" |
| phone_area_code | std::string | Phone area code example "86" for China, leave empty if the account is an email. |
| extra_json | std::string | Extended information |
Callback Handling
The callback handler interface is GUAAccountResultObservers.The callback data structure is GUAAccountResult.
- Unity
- Unreal Engine
The callback event is AccountEvents. The callback ID is GUA_ACCOUNT_QUERY_VERIFY_CODE_STATUS.
The callback event is OnAccountResultNotify. The callback ID is kMethodIDAccountQueryVerifyCodeStatus.
Code Example
- Unity
- Unreal Engine
UnionAdapterAPI.GetAccountService().QueryVerifyCodeStatus("account", "verifyCode", 0, "86");
GUA_NAMESPACE::GUAAccountService::QueryVerifyCodeStatus("Account", "VerifyCode", 0, "86");