Page History

Qadetail

Last edited by 国亚奇

返回

问答详情接口


URL: https://mobile.cnlive.com/CnliveMobile/hd/getQADetail.action?spId=xxx&token=xxx


请求方式: 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": "6",
        "question": "吴莫愁的年龄?",
        "active": "1",
        "type": "0",
        "tip": "http://baidu.com",
        "awardCnCoin": "20",
        "options": [
            {
                "id": "8",
                "index": "A",
                "detail": "20岁",
                "rating": "1",
                "correct": "1",
                "choose": "0"
            },
            {
                "id": "9",
                "index": "B",
                "detail": "30岁",
                "rating": "1",
                "correct": "1",
                "choose": "0"
            },
            {
                "id": "10",
                "index": "C",
                "detail": "40岁",
                "rating": "0",
                "correct": "0",
                "choose": "0"
            }
        ]
    }
}