QueryVerifyCodeStatus
[MSDK & Player Network SDK] Queries the verification code status.
Supported Platform
- 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
Parameter | Type | Description |
---|---|---|
account | string | Account, which can be registered with an email address or phone number. |
verifyCode | string | Verification code |
codeType | int | Type of requested verification code 0: Registration 1: Modify password 2: Log in with verification code 3: Modify account information |
areaCode | string | Phone area code, such as "86" for China. If you register an account with an email address, the field is left empty. |
extraJson | string | Extended information |
channel | string | Channel Currently not in use, pass "" |
langType | string | Language type Currently not in use, pass "" |
Parameter | Type | Description |
---|---|---|
account | std::string | Account, which can be registered with an email address or phone number. |
verify_code | std::string | Verification code |
code_type | int | Type of requested verification code 0: Registration 1: Modify password 2: Log in with verification code 3: Modify account information |
channel | std::string | Channel Currently not in use, pass "" |
lang_type | std::string | Language type Currently not in use, pass "" |
phone_area_code | std::string | Phone area code, such as "86" for China. If you register an account with an email address, the field is left empty. |
extra_json | std::string | Extended information |
Callback Processing
The callback processing API is GUAAccountResultObservers. The callback data structure is GUAAccountResult.
- Unity
- Unreal Engine
The callback event is AccountEvents.
The callback methodID is GUA_ACCOUNT_QUERY_VERIFY_CODE_STATUS
.
The callback event is OnAccountResultNotify.
The callback methodID is kMethodIDAccountQueryVerifyCodeStatus
.
Code Sample
- Unity
- Unreal Engine
UnionAdapterAPI.GetAccountService().QueryVerifyCodeStatus("account", "verifyCode", 0, "86");
GUA_NAMESPACE::GUAAccountService::QueryVerifyCodeStatus("Account", "VerifyCode", 0, "86");