users.validateVerificationCode
Syntax
bool users.validateVerificationCode ( int vhost, int verificationCode, int phone = 0, int countryCode = 0, string email = '' )Argument Info
| Type | Description | |||
|---|---|---|---|---|
| none | ID of the application that the media is in. | |||
| none | The code that was sent to the user via sendVerificationCode | |||
| 0 | Phone number of the user, numeric only | |||
| 0 | country code of the user, numeric only | |||
| '' | Email address that was used to send the verifcationCode |
Return Values
| Field | Description | Possible Values |
|---|---|---|
| @param int $vhost ID of the application that the media is in.a | N/A | |
| @param int $verificationCode The code that was sent to the user via sendVerificationCodea | N/A | |
| @param int $phone Phone number of the user, numeric onlya | N/A | |
| @param int $countryCode country code of the user, numeric onlya | N/A | |
| @param string $email Email address that was used to send the verifcationCodea | N/A | |
| @return bool true for valid code, false otherwisea | N/A |
