V2 0/other/ad index/get

来自技术开发小组内部wiki
跳转至: 导航搜索

功能说明

获取客户端启动页广告

URL

http://[域名]/v2_0/other/ad_index_get

返回格式

支持json,xml.通过format参数来控制

HTTP请求方式

POST.可以post的数据为xml或json.

输入参数说明

参数名称 是否必须 类型 描述
city_id

int 城市id:1北京2上海,0全国

请求示例

正式环境
http://api.fumubang.com/v2_0/other/ad_index_get
测试环境
http://api.fumubang.net/v2_0/other/ad_index_get
本地环境
http://dev-api.fumubang.net/v2_0/other/ad_index_get

正确返回示例

{

    "is_exist":'1',//1存在0不存在
    "ad_info": {//广告信息
        "id": "1",//广告id
        "ad_banner": "http://img2.fumubang.net/tpl_imgpath/banner/X20150528111727939.jpg!thumb_640",//广告图片
        "start_time": "2015-08-31 15:54:03",//广告展示期-开始时间
        "end_time": "2015-09-03 15:54:08",//广告展示期-结束时间
        "is_skip": "1",//是否显示跳过按钮:1-显示"跳过"按钮  2-不显示"跳过"按钮
        "notification_type": "2",//跳转类型:1专题、2活动详情页、3文章详情页、15无
        "linkurl": "",//专题链接
        "activity_id": "100669",//活动id
        "news_id": "0",//文章id
        "city_id": "1",//城市
        "ticket_type": "4"//活动类型:4酒店,其他为普通活动
    },  "kefu_phone": "400-680-9888",
    "nav_recomand": [  //导航推荐栏
        {
            "rid": "4485",
            "title": "测试他弹屏", //标题
            "description": "",
            "page_url": "", //链接
            "show_index": "0",
            "image_path": "http://img2.fumubang.net/tpl_imgpath/app_index_recommand/X20160914112201189.jpg", //图片
            "type": "2",//类型:1专题页面,2推荐文章,3推荐活动,4福利列表,5标签活动列表,6自定义列表
            "activity_id": "0", //活动id
            "article_id": "3323",//文章id
            "city_id": "0",//城市id
            "activity_tag": "",//活动标签
            "tag_list_title": "",//标题
            "action_name": ""//自定义跳转名称
        }
    ],
    "scr_recommand": [ //弹屏推荐栏
        {
            "rid": "4483",
            "title": "导航推荐",
            "description": "",
            "page_url": "http://m.fumubang.net/mobile/child_news/index/3323?is_app=1",
            "show_index": "0",
            "image_path": "http://img2.fumubang.net/tpl_imgpath/app_index_recommand/X20160914110158958.png",
            "type": "1",
            "activity_id": "0",
            "article_id": "0",
            "city_id": "0",
            "activity_tag": "",
            "tag_list_title": "",
            "action_name": ""
        }
    ],
    "sites": [ //站点列表
        {
            "site_id": "1", //站点id
            "site_logo": "",//站点logo
            "link_city_id": "1", //城市ID
            "around_city_ids": "", //周边城市配置id

           "around_city_names": "",//周边城市配置名称
            "short_name": "北京" //简称
        },
       ...
    ]
}
}