API Call Address
{域名地址}/api/archive/prev
Description:{域名地址}
Need to replace it with your domain address, such ashttps://en.anqicms.com/api/archive/prev
Calling method
GET
Request parameters
Field name |
Type |
Required |
Description |
id |
int |
Yes |
Document ID |
Return parameters
Field name |
Type |
Description |
code |
int |
error code |
msg |
string |
error reason description |
data |
object |
result content |
data parameter
Field name |
Type |
Description |
id |
int |
Document ID |
title |
string |
Document Title |
seo_title |
string |
Document SEO Title |
url_token |
string |
Document URL Alias |
Keywords |
string |
Document Keywords |
Description |
string |
Document Summary |
module_id |
int |
Document Model ID |
category_id |
int |
Document Category ID |
Views |
int |
Document Views |
Comment Count |
int |
Document comments count |
images |
string[] |
Document group image |
Logo |
string |
Document Logo |
Thumb |
string |
Document thumbnail |
flag |
string |
Document recommendation attributes, headline [h] recommended [c] featured [f] special [a] scrolling [s] bold [h] image [p] jump [j] |
canonical_url |
string |
canonical url |
fixed_link |
string |
document fixed link |
Created Time |
int |
document publish timestamp |
updated_time |
int |
Document update timestamp |
status |
int |
Document display status |
user_id |
int |
User ID |
price |
int |
Price, unit in cents |
stock |
int |
Inventory quantity |
user_id |
int |
User ID |
request data example
Return Data Example
{
"code": 0,
"data": {
"id": 3,
"created_time": 1607308858,
"updated_time": 1611373923,
"title": "AnqiCMS使用帮助",
"seo_title": "",
"url_token": "help",
"keywords": "",
"description": "AnqiCMS使用帮助",
"module_id": 1,
"category_id": 1,
"views": 1256,
"comment_count": 0,
"images": null,
"template": "",
"status": 1,
"canonical_url": "",
"fixed_link": "",
"flag": "",
"user_id": 0,
"price": 0,
"stock": 9999999,
"logo": "https://en.anqicms.com/uploads/20225/27/5cd9e65be13cbe6b.webp",
"thumb": "https://en.anqicms.com/uploads/20225/27/5cd9e65be13cbe6b.webp",
"link": "https://en.anqicms.com/help"
},
"msg": ""
}{
"code": 0,
"data": null,
"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 |