[关闭]
@sewise-dev 2016-11-29T01:36:57.000000Z 字数 935 阅读 666

微电影微信端-核心接口

微电影


用户验证以及授权(所有请求都需带上)

请求参数
参数 必选 类型 说明
RequestBody
time string 时间戳
org_code string 使用MD5(op.time.accesID)生成的长字符串

1.节点服务器回调数据同步结果接口

接口地址

/index.php?mod=CMSAPI&do=Server

HTTP Content-Type / 请求方式

application/json
GET

请求参数
参数 必选 类型 说明
RequestBody
op string UpdateStatus
sourceid string 视频的sourceid
status int 状态
process float 同步状态
HTTP 响应状态

200

返回字段 字段类型 说明
code int 返回状态码(1:成功, 0:失败)
接口示例

Request
curl -X POST -H "Content-Type:application/json" -d http://wxvod.sewise.com/index.php?mod=CMSAPI&do=Server
Response
{"code":1
}

2.验证请求用户合法性

接口地址

/index.php?mod=CMSAPI&do=Server

HTTP Content-Type / 请求方式

application/json
POST

请求参数
参数 必选 类型 说明
RequestBody
op string CheckUser
sourceid string 视频标记
data String JSON格式的用户验证信息,Request Item

Request Item

参数 必选 类型 说明
userid 可选 string 用户id
Oid 可选 int 机构id
openid 可选 string 微信openid
token 可选 string 用户凭证
Vid 可选 int 节目id
HTTP 响应状态

200

返回字段 字段类型 说明
code int 返回状态码(1:验证成功, 0:验证失败)
接口示例

Request
curl -X POST -H "Content-Type:application/json" -d http://wxvod.sewise.com/index.php?mod=CMSAPI&do=Server
Response
{"code":1
}

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注