返回
竞猜详情接口
请求方式: HTTP GET
返回格式: JSON
版本:互动电视5.3开始
请求参数说明:
| 参数名 |
参数类型 |
必选 |
参数说明 |
| spId |
String |
true |
服务提供商 |
| token |
String |
true |
参数加密串 |
| ----plat |
String |
true |
客户端平台 |
| ----id |
Integer |
true |
竞猜ID |
| ----sid |
Integer |
true |
用户ID |
返回格式说明:
{
errorCode:"",
errorMsg:"",
data:{
id:"", // 问题ID
question:"", // 问题
active:"", // 0(不可互动)| 1(可互动)
type:"" // 0(单选)|1(多选)
tip:"" // 互动规则
awardCnCoin:"" // 猜对奖励的中国币数量
options:[
{
id:"", // 选项ID
index:"", // 选项序号
detail:"", // 文字描述
rating:"", // 当前被选择的数量
correct:"" // 是否正确: 0(非) | 1(是) | -1(没有答案)
choose:"" // 用户是否已选:0(未选) | 1(已选)
}
]
}
}
返回格式样例:
{
"errorCode": "0",
"errorMessage": "success",
"data": {
"id": "7",
"question": "吴莫愁今天的压轴歌曲是?",
"active": "1",
"type": "0",
"tip": "http://baidu.com",
"awardCnCoin": "20",
"options": [
{
"id": "15",
"index": "A",
"detail": "人在囧途",
"rating": "0",
"correct": "1",
"choose": "0"
},
{
"id": "16",
"index": "B",
"detail": "泰囧",
"rating": "1",
"correct": "0",
"choose": "0"
},
{
"id": "17",
"index": "C",
"detail": "港囧",
"rating": "0",
"correct": "0",
"choose": "0"
},
{
"id": "18",
"index": "D",
"detail": "印囧",
"rating": "0",
"correct": "0",
"choose": "0"
}
]
}
}