[关闭]
@fuyb1986 2016-03-22T08:19:22.000000Z 字数 406 阅读 488

检测输入内容是否可用

好热闹


Method and URL Structure

Method Resource URL
GET /forum/input_validator/

Request Parameters

Name Description Required Default
resource 检测的项目 YES
value 检测的值 YES

Resource List

Name Description
username 用户名
nickname 昵称

cURL Example

  1. curl www.haorenao.cn/forum/validator/?resource=nickname&value=我的昵称

JSON Response

Name Description
ret 标识是否成功。ok, 成功; failed, 失败
reason 失败原因,比如:参数错误
valid true, 有效; false, 无效
  1. {"ret": "ok", "reason": "", "valid": false,}
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注