API Call Address
{域名地址}/api/guestbook.html
Description:{域名地址}
Need to replace it with your domain address, such ashttps://en.anqicms.com/api/guestbook.html
Calling method
POST application/json
Request parameters
Field name |
Type |
Required |
Description |
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 |
Description |
code |
int |
error code |
msg |
string |
error reason description |
request data example
{
"user_name": "anqicms",
"content": "欢迎使用AnqiCMS",
"contact": "13888888888"
}
Return Data Example
{
"code": 0,
"msg": "感谢您的留言!"
}
Error Code
error code |
Description |
0 |
OK |
-1 |
Error, the reason is indicated in the msg |
1001 |
Not logged in |
1002 |
Unauthorized |
200 |
API request OK |