API call address
{域名地址}/api/guestbook.html
illustrate:{域名地址}
You need to replace it with your domain address, such ashttps://en.anqicms.com/api/guestbook.html
Calling methods
POST application/json
Request parameters
Field name |
type |
Required |
illustrate |
user_name |
string |
yes |
username |
content |
string |
no |
Message content |
contact |
string |
no |
Contact information |
Custom fields |
string |
no |
Custom fields in the message form |
Return parameters
Field name |
type |
illustrate |
code |
int |
Error code |
msg |
string |
Error Cause Description |
Request data example
{
"user_name": "anqicms",
"content": "欢迎使用AnqiCMS",
"contact": "13888888888"
}
Return to the data example
{
"code": 0,
"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 |