简要描述:
请求URL:
https://api.chuangcache.com/content/getPreCacheList
请求方式:
请求参数:
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
access_token | 是 | string | 密钥 |
task_id | 否 | string | 任务ID |
start_time | 否 | string | 开始时间,支持到分钟 格式: 201606281201 |
page | 否 | string | 页码 |
page_num | 否 | string | 显示条目,默认显示50 |
请求示例
curl -i -X POST https://api.chuangcache.com/content/getPreCacheList -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"access_token": "ACCESS_TOKEN", "start_time": "201608270000", "page": "0", "page_num": "10"}'
响应示例
{
"status": 1,
"info": "操作成功",
"data": [
{
"url_name": "http://www.test.com/js/jquery.min.js",
"status": "1",
"status_info": "完成",
"start_time": "2016-09-12 22:46:25",
"finish_time": "2016-09-12 22:58:29"
},
{
"url_name": "http://www.test.com/images/home_msg.png",
"status": "1",
"status_info": "完成",
"start_time": "2016-09-12 22:46:25",
"finish_time": "2016-09-12 22:58:29"
},
{
"url_name": "http://www.test.com/images/home_ball.png",
"status": "2",
"status_info": "失败",
"start_time": "2016-09-12 22:46:25",
"finish_time": "2016-09-12 22:58:29"
},
{
"url_name": "http://www.test.com/home.html",
"status": "3",
"status_info": "处理中",
"start_time": "2016-09-12 22:45:41",
"finish_time": "2016-09-12 22:58:29"
}
]
}
返回参数说明
参数名 | 类型 | 说明 |
---|---|---|
status | int | 接口返回码 [ 0(操作失败)、1(操作成功)] |
info | string | 接口返回信息 [ 操作失败 / 操作成功 ] |
data | array | 接口返回数据列表 |
data.url_name | string | 刷新url |
data.status | string | 状态码 [1(成功)、2(失败)、3(处理中)] |
data.status_info | string | 状态 |
data.start_time | string | 开始时间 |
data.finish_time | string | 完成时间 |