Page History

Giftdetail

Last edited by 国亚奇

返回

礼物详情


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


请求方式: HTTP GET


返回格式: JSON


版本:互动电视5.3开始


请求参数说明:

参数名 参数类型 必选 参数说明
spId String true 服务提供商
token String true 加密串
-----plat String true 客户端平台
-----jid String true 聊天室jid
-----module String true 礼物模板(live:普通直播,hostLive:主播直播)
-----redPkgFlag String true 0-不启用红包,1-启用红包
-----chatRoomId String false 聊天室插件ID

返回样例说明:

{
    "errorCode": "0",
    "errorMessage": "success",
    "data": [
        {
            "id": "178",
            "image": "http://y1.cnliveimg.com:8080/tvpLiveUpload/2015/12/01/kiss.png",
            "title": "香吻",
            "description": "-50中国币",
            "button": "赠送",
            "credits": "-50",
            "type": "0"
        },
        {
            "id": "314",
            "image": "http://y2.cnliveimg.com:8080/tvpLiveUpload/2015/12/01/flower.png",
            "title": "鲜花",
            "description": "0中国币",
            "button": "免费",
            "credits": "0",
            "type": "0"
        },
        {
            "id": "316",
            "image": "http://y3.cnliveimg.com:8080/tvpLiveUpload/2015/12/01/aoto.png",
            "title": "汽车",
            "description": "-100中国币",
            "button": "赠送",
            "credits": "-100",
            "type": "0"
        },
        {
            "id": "321",
            "image": "http://y1.cnliveimg.com:8080/tvpLiveUpload/2015/12/01/tea.png",
            "title": "蜂蜜柚子茶",
            "description": "+10中国币",
            "button": "免费",
            "credits": "10",
            "type": "0"
        },
        {
            "id": "0",
            "image": "",
            "title": "红包",
            "description": "随意金额",
            "button": "发红包",
            "credits": "-1",
            "type": "1"
        }
    ]
}