ECJiaWiki:Api:adsense cycleimage api

来自ECJiaWiki
跳到导航 跳到搜索

应用场景

 获取广告位的广告列表

接口名称

cycleimage

请求参数

字段名 变量名 必填 类型 示例值 描述
当前城市ID city char 0 当前城市ID
广告位置代号 code char home_cycleimage 广告位置代号
客户端 client int 2:Android;1:iPhone;4:H5;8:PC 客户端

举例如下

$cycleimage = RC_Api::api('adsense', 'cycleimage',array('code' => 'home_cycleimage','client'=> 4));

成功举例如下

CONTENT: Array
(
    [0] => Array
        (
            [image] => http://www.test.com/content/uploads/data/cycleimage/1492650806593974463.png
            [url] => https://cityo2o.ecjia.com/index.php?m=merchant&c=store&a=category&cat_id=4
            [text] => 
        )

    [1] => Array
        (
            [image] => http://www.test.com/content/uploads/data/cycleimage/1492651290525993731.png
            [url] => https://cityo2o.ecjia.com/index.php?m=merchant&c=goods&a=init&store_id=111
            [text] => 
        )

    [2] => Array
        (
            [image] => http://www.test.com/content/uploads/data/cycleimage/1492651307128656813.png
            [url] => https://cityo2o.ecjia.com/index.php?m=merchant&c=goods&a=init&store_id=60
            [text] => 
        )

    [3] => Array
        (
            [image] => http://www.test.com/content/uploads/data/cycleimage/1492651334051472978.png
            [url] => https://cityo2o.ecjia.com/index.php?m=merchant&c=goods&a=init&store_id=109
            [text] => 
        )

    [4] => Array
        (
            [image] => http://www.test.com/content/uploads/data/cycleimage/1492651353919196607.png
            [url] => https://cityo2o.ecjia.com/index.php?m=goods&c=index&a=init&cat_id=1033
            [text] => 
        )

)

失败举例如下

注:错误编码