大淘客,让选品更简单! |

{{item.type_name}}:

API 市场 / 咚咚抢
 

应用场景:
用于搭建应用内的营销专区,或在社群内进行分发推广
接口说明:
返回每天参与整点抢购活动的高性价比商品列表。精品中的极品,高性价比高转化
使用人数: 5000+
咚咚抢 接口测试 建议使用通用GET方法调用
  • 接口说明
  • 更新日志
  • 接口版本号:v1.2.1
  • 接口版本号:v1.2.0

请求地址:https://openapi.dataoke.com/api/category/ddq-goods-list 复制

请求方式:GET

公共参数:
请求参数:

注:请求参数须区分大小写

返回数据:
调用示例:
String url = "https://openapi.dataoke.com/api/category/ddq-goods-list";
String appKey = "xxx";
String appSecret = "xxx";
TreeMap<String, String> paraMap = new TreeMap<>();
paraMap.put("version", "v1.2.1");
paraMap.put("appKey", appKey);
String data = ApiClient.sendReq(url, appSecret, paraMap);

SDK调用示例
String appKey = "xxx";
String appSecret = "xxx";
DtkApiClient client = DtkApiClient.getInstance(appKey,appSecret);
DtkDdqGoodsListRequest request = new DtkDdqGoodsListRequest();
request.setRoundTime("2021-07-14 12:00:00"); 
DtkApiResponse < DtkDdqGoodsListResponse > execute = client.execute(request);
    //唯品会商品列表
    $data = [
        'appKey' => "xxxxxxxxxxxx",
        'version' => "v1.2.1",
        ...
    ];
    $host = "https://openapi.dataoke.com/api/category/ddq-goods-list";
    $url = $host . '?' . http_build_query($data);
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    $output = curl_exec($ch);
    $a = curl_error($ch);
    if(!empty($a)){
        return json_encode(array('code'=>10003, 'msg'=>$a));
    }
    curl_close($ch);
    return $output;

    SDK调用示例
    $client = new GetDdqGoodsList();
    $client->setAppKey("xxxxxxxxx");
    $client->setAppSecret("xxxxxxxxxxxxxxxxxxxxxxxxx");
    $client->setVersion("v1.2.1");

    $res = $client->setParams([])->request();
返回示例:
{
	"time": 1575970678290,
	"code": 0,
	"msg": "成功",
	"data": {
		"ddqTime": "2019-12-10 08:00:00",
		"status": 0,
		"goodsList": [{
			"id": 23863945,
			"goodsId": "602524111820",
			"itemLink": "https://detail.tmall.com/item.htm?id=602524111820",
			"title": "志高电热毯双人电褥子双控调恒温单人安全家用水暖毯学生宿舍加大",
			"dtitle": "【志高】家用电热毯双控调温",
			"cid": 8,
			"subcid": [113820],
			"ddqDesc": "除螨虫,更健康",
			"mainPic": "https://img.alicdn.com/imgextra/i1/1754461448/O1CN01TdZDf71MZE4C5MFh3_!!1754461448.jpg",
			"originalPrice": 89.0,
			"actualPrice": 49.0,
			"couponPrice": 40.0,
			"discounts": 0.55,
			"couponLink": "https://uland.taobao.com/quan/detail?sellerId=2744899201&activityId=de6bee4431d24058a9314dc4f300a05a",
			"couponEndTime": "2019-12-11 23:59:59",
			"couponStartTime": "2019-12-10 00:00:00",
			"couponConditions": "89",
			"commissionType": 3,
			"commissionRate": 20.0,
			"createTime": "2019-12-09 16:14:19",
			"couponReceiveNum": 2000,
			"couponTotalNum": 100000,
			"monthSales": 45737,
			"activityType": 1,
			"activityStartTime": "",
			"activityEndTime": "",
			"shopName": "chigo志高鑫溶铭专卖店",
			"shopLevel": 14,
			"sellerId": "2744899201",
			"brand": 1,
			"brandId": 30664,
			"brandName": "志高",
			"twoHoursSales": 26,
			"dailySales": 26,
			"quanMLink": 0,
			"hzQuanOver": 0,
			"yunfeixian": 1,
			"estimateAmount": -1,
			"tbcid": 50000360
		}],
		"roundsList": [{
			"ddqTime": "2019-12-10 08:00:00",
			"status": 0
		}, {
			"ddqTime": "2019-12-10 10:00:00",
			"status": 1
		}]
	}
}
常见错误码:
{
    "msg":"服务器错误",
    "code":-1,
    "time":1554365022200
}
错误码列表:

请求地址:https://openapi.dataoke.com/api/category/ddq-goods-list 复制

请求方式:GET

公共参数:
请求参数:

注:请求参数须区分大小写

返回数据:
调用示例:
String url = "https://openapi.dataoke.com/api/category/ddq-goods-list";
String appKey = "xxx";
String appSecret = "xxx";
TreeMap<String, String> paraMap = new TreeMap<>();
paraMap.put("version", "v1.2.0");
paraMap.put("appKey", appKey);
String data = ApiClient.sendReq(url, appSecret, paraMap);
返回示例:
{
	"time": 1575970678290,
	"code": 0,
	"msg": "成功",
	"data": {
		"ddqTime": "2019-12-10 08:00:00",
		"status": 0,
		"goodsList": [{
			"id": 23863945,
			"goodsId": "602524111820",
			"itemLink": "https://detail.tmall.com/item.htm?id=602524111820",
			"title": "志高电热毯双人电褥子双控调恒温单人安全家用水暖毯学生宿舍加大",
			"dtitle": "【志高】家用电热毯双控调温",
			"cid": 8,
			"subcid": [113820],
			"ddqDesc": "除螨虫,更健康",
			"mainPic": "https://img.alicdn.com/imgextra/i1/1754461448/O1CN01TdZDf71MZE4C5MFh3_!!1754461448.jpg",
			"originalPrice": 89.0,
			"actualPrice": 49.0,
			"couponPrice": 40.0,
			"discounts": 0.55,
			"couponLink": "https://uland.taobao.com/quan/detail?sellerId=2744899201&activityId=de6bee4431d24058a9314dc4f300a05a",
			"couponEndTime": "2019-12-11 23:59:59",
			"couponStartTime": "2019-12-10 00:00:00",
			"couponConditions": "89",
			"commissionType": 3,
			"commissionRate": 20.0,
			"createTime": "2019-12-09 16:14:19",
			"couponReceiveNum": 2000,
			"couponTotalNum": 100000,
			"monthSales": 45737,
			"activityType": 1,
			"activityStartTime": "",
			"activityEndTime": "",
			"shopName": "chigo志高鑫溶铭专卖店",
			"shopLevel": 14,
			"sellerId": "2744899201",
			"brand": 1,
			"brandId": 30664,
			"brandName": "志高",
			"twoHoursSales": 26,
			"dailySales": 26,
			"quanMLink": 0,
			"hzQuanOver": 0,
			"yunfeixian": 1,
			"estimateAmount": -1,
			"tbcid": 50000360
		}],
		"roundsList": [{
			"ddqTime": "2019-12-10 08:00:00",
			"status": 0
		}, {
			"ddqTime": "2019-12-10 10:00:00",
			"status": 1
		}]
	}
}
常见错误码:
{
    "msg":"服务器错误",
    "code":-1,
    "time":1554365022200
}
错误码列表: