API call address
{域名地址}/api/captcha
illustrate:{域名地址}
You need to replace it with your domain address, such ashttps://en.anqicms.com/api/captcha
Calling methods
GET
Request parameters
none
Return parameters
Field name |
type |
illustrate |
code |
int |
Error code |
msg |
string |
Error Cause Description |
data |
object |
captcha content |
data Parameters
Field name |
type |
illustrate |
captcha |
string |
base64 encoded string of captcha image |
captcha_id |
string |
captcha image ID |
Request data example
无
Return to the data example
{
"code": 0,
"data": {
"captcha": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPAAAABMCAIAAADcP63LAAAVH0lEQVR4nO",
"captcha_id": "g0HFYRQUrC9rYbX2EZMH"
},
"msg": ""
}
Error code
Error code |
illustrate |
0 |
OK |
-1 |
Error, the error reason is indicated in msg |
1001 |
Not logged in |
1002 |
Unauthorized |
200 |
API Request OK |