Quick Start
- Pro Validator for email, mobile phone, isbn, ip and even more. Features are coming!
- All Responses are in json format.
- Any more questions, DO NOT hesitate to contact me.
Success Response
- If request goes well, the json response “code” will be and only will be zero, and all of the data you need is under path:“data”.
- You can rely on code ==0 to do success work, api will never change this.
Just an example:
{
"code": 0, //It means successful response.
"data": {
"op": "isEmail", //The validator you made.
"v": "your_name@gmail.com", // The param you passed.
"result": true // The validation result. True or False.
}
}
Failure Response
- Unfortunately when it’s failed, the json response “code” will not be zero, and msg describes the error. In this case, do not hesitate to contact me.
- You can rely on code !=0 to do failure work, api will never change this.
Just an example:
{
"code": -9903,
"msg": "bad http get request."
}
Error codes
- -9900: Server error, i hope you’ll never see it.
- -9903: bad http get request.