OkayAPI Docs
API Params
Parameter | Type | Required | Default | Note | Description |
---|---|---|---|---|---|
HTTP_APPKEY | String | Required | MIN: 32 | Common Put Your APPKEY | |
cap_type | Int | Optaion | 0 | 验证码的字符集类型,0纯数字,1纯小写字母,2纯大写字母,3数字+小写字母,4数字+大写字母,5大小写字母,6数字+大小写字母 | |
cap_width | Int | Optaion | 150 | 验证码图片宽度,单位:px | |
cap_height | Int | Optaion | 40 | 验证码图片高度,单位:px |
API Debug
KEY | REQUIRED | VALUE |
---|---|---|
app_key | *Required | |
cap_type | Option | |
cap_width | Option | |
cap_height | Option |
API Response
KEY | Type | Description |
---|---|---|
err_code | Int | 操作码,0表示生成成功 |
err_msg | String | 错误提示信息,err_code非0时参考此提示信息 |
img_url | String | 验证码图片地址,例如:http://cd7.yesapi.net/CEE4B8A091578B252AC4C92FB4E893C3_20220428173857_955e98d069e35b12fd331e53033d91e0.jpg |
code | String | 验证码字符串,如:7691 |
HTTP Response Code
HTTP Status Code | Description |
---|---|
Http Status = 200 | Success |
Http Status = 400 | Illegal-Params |
Http Status = 401 | Illegal-Token |
Http Status = 402 | IP-Banned |
Http Status = 404 | API-NOT-Exsits |
Http Status = 406 | Illegal-APPKEY |
Http Status = 407 | APPKEY-Expired-Out |
Http Status = 408 | APPKEY-Busy |
Http Status = 409 | Illegal-Sign |
Http Status = 413 | API-Traffic-NOT-Enough |
Http Status = 415 | API-LOCKED |
Http Status = 500 | Internal-Server-Error |