{域名地址}/api/guestbook.html
illustrate:{域名地址}
You need to replace it with your domain address, such as/api/guestbook.html
POST application/json
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 |
Field name |
type |
illustrate |
code |
int |
Error code |
msg |
string |
Error Cause Description |
{
"user_name":"anqicms",
"content": "欢迎使用AnqiCMS",
"contact": "13888888888"
}
{
"code": 0,
"msg": "感谢您的留言!"
}
Error code |
illustrate |
0 |
OK |
-1 |
Error, the cause of the error is pointed out in msg |
1001 |
Not logged in |
1002 |
Unauthorized |
200 |
API request OK |