@sewise-dev
2016-11-08T10:01:13.000000Z
字数 4186
阅读 596
微电影
参数 必选 类型 说明 RequestBody org_id 是 string 机构id time 是 string 时间戳 org_code 是 string 使用MD5(op.time.accesID)生成的长字符串
/index.php?mod=CMSAPI&do=CourseTag
application/json
POST
参数 必选 类型 说明 RequestBody op 是 string addCourseTag title 是 string 标题
200
返回字段 | 字段类型 | 说明 |
---|---|---|
code | int | 返回状态码(1:成功, 0:失败) |
tag_id | int | 新增完成的分类id |
Request
curl -X POST -H "Content-Type:application/json" -d http://wxvod.sewisecom/index.php?mod=CMSAPI&do=CourseTag
Response
{"code":1,"tag_id":1
}
/index.php?mod=CMSAPI&do=CourseTag
application/json
POST
参数 必选 类型 说明 RequestBody op 是 string editCourseTag tag_id 是 int 分类id title 是 string 标题
200
返回字段 | 字段类型 | 说明 |
---|---|---|
code | int | 返回状态码(1:成功, 0:失败) |
Request
curl -X POST -H "Content-Type:application/json" -d http://wxvod.sewisecom/index.php?mod=CMSAPI&do=CourseTag
Response
{"code":1
}
/index.php?mod=CMSAPI&do=CourseTag
application/json
POST
参数 必选 类型 说明 RequestBody op 是 string delCourseTag tag_id 是 int 分类id
200
返回字段 | 字段类型 | 说明 |
---|---|---|
code | int | 返回状态码(1:成功, 0:失败) |
Request
curl -X POST -H "Content-Type:application/json" -d http://wxvod.sewisecom/index.php?mod=CMSAPI&do=CourseTag
Response
{"code":1
}
/index.php?mod=CMSAPI&do=Course
application/json
POST
参数 必选 类型 说明 RequestBody op 是 string addCourse courseTitle 是 string 电影标题 tag_id 是 int 分类id coursePhotos 是 string 电影图片 cost 是 int 单价 description 是 string 简介
200
返回字段 | 字段类型 | 说明 |
---|---|---|
code | int | 返回状态码(1:成功, 0:失败) |
cid | int | 新增完成的电影id |
Request
curl -X POST -H "Content-Type:application/json" -d http://wxvod.sewisecom/index.php?mod=CMSAPI&do=Course
Response
{"code":1,"cid":1
}
/index.php?mod=CMSAPI&do=Course
application/json
POST
参数 必选 类型 说明 RequestBody op 是 string editcourse cid 是 string 电影id courseTitle 是 string 电影标题 tag_id 是 int 分类id coursePhotos 是 string 电影图片 cost 是 int 单价 description 是 string 简介
200
返回字段 | 字段类型 | 说明 |
---|---|---|
code | int | 返回状态码(1:成功, 0:失败) |
Request
curl -X POST -H "Content-Type:application/json" -d http://wxvod.sewisecom/index.php?mod=CMSAPI&do=Course
Response
{"code":1
}
/index.php?mod=CMSAPI&do=Course
application/json
POST
参数 必选 类型 说明 RequestBody op 是 string delCourse cid 是 string 电影id
200
返回字段 | 字段类型 | 说明 |
---|---|---|
code | int | 返回状态码(1:成功, 0:失败) |
Request
curl -X POST -H "Content-Type:application/json" -d http://wxvod.sewisecom/index.php?mod=CMSAPI&do=Course
Response
{"code":1
}
/index.php?mod=CMSAPI&do=Course
application/json
POST
参数 必选 类型 说明 RequestBody op 是 string publish(上架)/unpublish(下架) cid 是 string 电影id
200
返回字段 | 字段类型 | 说明 |
---|---|---|
code | int | 返回状态码(1:成功, 0:失败) |
Request
curl -X POST -H "Content-Type:application/json" -d http://wxvod.sewisecom/index.php?mod=CMSAPI&do=Course
Response
{"code":1
}
/index.php?mod=CMSAPI&do=vod
application/json
POST
参数 必选 类型 说明 RequestBody op 是 string addvod courseid 是 int 电影id name 是 string 标题 classPhotos 是 string 电影图片 description 是 string 简介 resourse 是 string 资源信息,由title,url,sourceid,cover,file_info组成的json
200
返回字段 | 字段类型 | 说明 |
---|---|---|
code | int | 返回状态码(1:成功, 0:失败) |
vid | int | 新增完成的分集id |
Request
curl -X POST -H "Content-Type:application/json" -d http://wxvod.sewisecom/index.php?mod=CMSAPI&do=vod
Response
{"code":1,"vid":1
}
/index.php?mod=CMSAPI&do=vod
application/json
POST
参数 必选 类型 说明 RequestBody op 是 string editvod vid 是 string 分集id name 是 string 标题 classPhotos 是 string 电影图片 description 是 string 简介 resourse 是 string 资源信息,由title,url,sourceid,cover,file_info组成的json
200
返回字段 | 字段类型 | 说明 |
---|---|---|
code | int | 返回状态码(1:成功, 0:失败) |
Request
curl -X POST -H "Content-Type:application/json" -d http://wxvod.sewisecom/index.php?mod=CMSAPI&do=vod
Response
{"code":1
}
/index.php?mod=CMSAPI&do=vod
application/json
POST
参数 必选 类型 说明 RequestBody op 是 string delvod vid 是 string 分集id
200
返回字段 | 字段类型 | 说明 |
---|---|---|
code | int | 返回状态码(1:成功, 0:失败) |
Request
curl -X POST -H "Content-Type:application/json" -d http://wxvod.sewisecom/index.php?mod=CMSAPI&do=vod
Response
{"code":1
}
application/json
POST
参数 必选 类型 说明 RequestBody org_id 是 string 机构id video 是 json 电影分集数据{'id':{1,2}} start_time 是 string 开始日期 end_time 是 string 结束日期
200
返回字段 | 字段类型 | 说明 |
---|---|---|
start_time | string | 开始日期 |
end_time | string | 开始日期 |
list | array | 根据video对应的id,查找出日期内的观看人数data array('id'=>1,'name'=>'XXX','data'=>array(XX,XXX)) |
Request
curl -X POST -H "Content-Type:application/json" -d http://wxvod.sewisecom/index.php?mod=CMSAPI&do=vod
Response
{"code":1
}