@sewise-dev
2016-11-30T09:50:26.000000Z
字数 1422
阅读 759
微电影
参数 必选 类型 说明 RequestBody time 是 string 时间戳 org_code 是 string 使用MD5(op.time.accesID)生成的长字符串
请求 CheckOrderInfo接口,op='CheckOrderInfo',则
md5('CheckOrderInfo'.'1478153618'.'niulangsewise888')
得到结果:f1037b8d11d6f4b0514c584f705305df
/index.php?mod=CMSAPI&do=Niulang
application/json
POST
参数 必选 类型 说明 RequestBody op 是 string CheckUserInfo Oid 是 int 渠道ID userid 是 int 用户ID Phone 否 string 用户手机号 number 否 int 学号 info 否 string 扩展字段(用户其余信息)
200
返回字段 | 字段类型 | 说明 |
---|---|---|
code | int | 返回状态码(1:成功, 0:失败) |
user_token | string | 16位的授权码 |
Request
curl -X POST -H "Content-Type:application/json" -d http://wxvod.sewise.com/index.php?mod=CMSAPI&do=Niulang
Response
{"code":1,"user_token":"ksjhfherfgiue5684787"
}
/index.php?mod=CMSAPI&do=Niulang
application/json
POST
参数 必选 类型 说明 RequestBody op 是 string CheckOrderInfo Oid 是 int 渠道ID total_fee 是 int 金额(分) out_trade_no 是 string 订单号 ctime 是 int 订单创建时间
200
返回字段 | 字段类型 | 说明 |
---|---|---|
code | int | 返回状态码(1:验证成功,无错误 0:验证失败) |
Request
curl -X POST -H "Content-Type:application/json" -d http://wxvod.sewise.com/index.php?mod=CMSAPI&do=Niulang
Response
{"code":1
}
/index.php?mod=CMSAPI&do=Niulang
application/json
POST
参数 必选 类型 说明 RequestBody op 是 string AddPayRecord Oid 是 int 渠道ID total_fee 是 int 金额(分) out_trade_no 否 string 订单号
200
返回字段 | 字段类型 | 说明 |
---|---|---|
code | int | 返回状态码(1:成功, 0:失败) |
Request
curl -X POST -H "Content-Type:application/json" -d http://wxvod.sewise.com/index.php?mod=CMSAPI&do=Niulang
Response
{"code":1
}