发红包
URL: http://account.cnlive.com/my/sendRedPackage.action
请求方式: HTTP POST
返回格式: JSON
版本:互动电视5.3开始
请求参数说明:
| 参数名 | 参数类型 | 必选 | 参数说明 |
|---|---|---|---|
| spId | String | true | 服务提供商 |
| token | String | true | 参数加密串 |
| ----roomId | String | true | 房间ID |
| ----descript | String | true | 红包留言 |
| ----amount | String | true | 红包金额(单位:分) |
| ----packages | String | true | 红包个数 |
| ----sid | String | true | 用户ID |
| ----plat | String | true | 客户端平台 |
返回格式说明:
{
"errorCode": "0",
"errorMessage": "success",
"data": {
"type": "redPackage",
"title": "xxxx",
"descript": "发红包",
"click_url": "http://hdtv.com?cnliveV5=true&action=login&callback=http%3A%2F%2Fuc.cnlive.com%2Flot%2FgoRedPkg.action%3FlotId%3D167%26pos%3Dchat"
}
}
{
"errorCode": "-1",
"errorMessage": "挤爆了!红包没发出去,已退回个人钱包"
}