@sewise-dev
2016-11-30T07:14:59.000000Z
字数 3434
阅读 550
微电影
参数 必选 类型 说明 RequestBody org_id 是 string 机构id time 是 string 时间戳 org_code 是 string 使用MD5(op.time.accesID)生成的长字符串
/index.php?mod=CMSAPI&do=Program
application/json
POST
参数 必选 类型 说明 RequestBody op 是 string addProgram courseTitle 是 string 节目标题 coursePhotos 是 string 节目海报 livePoster 是 string 节目海报(横版) description 是 string 简介 TryLesson 是 string 预告片sourseid expect_time 是 string 预计时间 voddata 是 string 视频信息(数组)
voddata的结构如下:
参数 必选 类型 说明 title 是 string 标题 sourceid 是 string sourceid fileinfo 是 string 资源信息,由播放时长,文件大小等组成的json
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=Program
Response
{"code":1,"cid":1
}
/index.php?mod=CMSAPI&do=Program
application/json
POST
参数 必选 类型 说明 RequestBody op 是 string editProgram cid 是 string 节目id courseTitle 是 string 节目标题 coursePhotos 是 string 节目海报 livePoster 是 string 节目海报(横版) description 是 string 简介 TryLesson 是 string 预告片sourseid expect_time 是 string 预计时间 voddata 是 string 视频信息(数组)
voddata的结构如下:
参数 必选 类型 说明 title 是 string 标题 sourceid 是 string sourceid fileinfo 是 string 资源信息,由播放时长,文件大小等组成的json
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=Program
application/json
POST
参数 必选 类型 说明 RequestBody op 是 string delProgram 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=Program
Response
{"code":1
}
/index.php?mod=CMSAPI&do=Program
application/json
POST
参数 必选 类型 说明 RequestBody op 是 string delvod cid 是 string 节目id sourceid 是 string sourceid
200
返回字段 | 字段类型 | 说明 |
---|---|---|
code | int | 返回状态码(1:成功, 0:失败) |
Request
curl -X POST -H "Content-Type:application/json" -d http://wxvod.sewisecom/index.php?mod=CMSAPI&do=Program
Response
{"code":1
}
/index.php?mod=CMSAPI&do=SaleRecord
application/json
POST
参数 必选 类型 说明 RequestBody op 是 string getSaleCount
200
返回字段 | 字段类型 | 说明 |
---|---|---|
code | int | 返回状态码(1:成功, 0:失败) |
AllUser | int | 总用户数 |
AllIncome | int | 总销售额 |
ThisMonthIncome | int | 本月销售额 |
ThisMonthCount | int | 本月销售量 |
MonthUser | int | 本月包月用户 |
PublishCourse | int | 发布中影片数 |
Request
curl -X POST -H "Content-Type:application/json" -d http://wxvod.sewisecom/index.php?mod=CMSAPI&do=SaleRecord
Response
{"code":1,"AllUser":4,"AllIncome":4,"ThisMonthIncome":4,"ThisMonthUser":1,"MonthUser":3}
/index.php?mod=CMSAPI&do=SaleRecord
application/json
POST
参数 必选 类型 说明 RequestBody op 是 string getSaleCount
200
返回字段 | 字段类型 | 说明 |
---|---|---|
code | int | 返回状态码(1:成功, 0:失败) |
title | string | 商品名称 |
id | int | 订单 ID |
amout | int | 单价(分) |
username | string | 用户 |
create_time | int | 日期 |
Request
curl -X POST -H "Content-Type:application/json" -d http://wxvod.sewisecom/index.php?mod=CMSAPI&do=listSaleRecord
Response
{"record":[{
"id":"12",
"order_no":"69511611087967398173",
"openid":"oGSvRvwOKY6aUe8E1zoPDE",
"amout":"100",
"pay_state":"1",
"create_time":"1478587967",
"courseid":"333",
"username":null,
"title":"222222"}],
"total_page":1,
"page":1,
"pagesize":30,
"total_record":"1"
}
/index.php?mod=CMSAPI&do=SaleRecord
application/json
POST
参数 必选 类型 说明 RequestBody op 是 string register mobile 是 string 手机号 是 string 邮箱 contact 是 string 联系人 company 是 string 公司名称 是 string
200
返回字段 | 字段类型 | 说明 |
---|---|---|
code | int | 返回状态码(1:成功, 0:失败) |
Request
curl -X POST -H "Content-Type:application/json" -d http://wxvod.sewisecom/index.php?mod=CMSAPI&do=SaleRecord
Response
{"code":1
}