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

{{item.type_name}}:

API 市场 / 高佣精选
 

高佣精选
吐槽建议
应用场景:
用于搭建应用内的营销专区,或在社群内进行分发推广
接口说明:
接口返回大淘客精选高佣商品合集,高佣金高收益(佣金比例大于等于40%)
使用人数: 1000+
高佣精选 接口测试 建议使用通用GET方法调用
  • 接口说明
  • 更新日志
  • 接口版本号:v1.0.0

请求地址:https://openapi.dataoke.com/api/goods/singlePage/list-height-commission 复制

请求方式:GET

公共参数:
请求参数:

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

返回数据:
调用示例:
String url = "https://openapi.dataoke.com/api/goods/singlePage/list-height-commission";
String appKey = "xxx";
String appSecret = "xxx";
TreeMap<String, String> paraMap = new TreeMap<>();
paraMap.put("version", "v1.0.0");
paraMap.put("cid", 12);
paraMap.put("pageId", "1");
paraMap.put("pageSize", 20);
String data = ApiClient.sendReq(url, appSecret, paraMap);

SDK调用示例
String appKey = "xxx";
String appSecret = "xxx";
DtkApiClient client = DtkApiClient.getInstance(appKey,appSecret);
DtkHighCommissionSelectedRequest request = new DtkHighCommissionSelectedRequest();
request.setPageSize(20);
request.setPageId("1");
request.setCid(12);
request.setSort(1);
DtkApiResponse < DtkPageResponse < DtkHighCommissionSelectedResponse >> execute = client.execute(request);
 //高佣精选
    $data = [
        'appKey' => "xxxxxxxxxxxx",
        'version' => "v1.0.0",
        ...
    ];
    $host = "https://openapi.dataoke.com/api/goods/singlePage/list-height-commission";
    $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 GetListHeightCommission();
    $client->setAppKey("xxxxxxxxx");
    $client->setAppSecret("xxxxxxxxxxxxxxxxxxxxxxxxx");
    $client->setVersion("v1.0.0");

    $res = $client->setParams([])->request();

package main

import (
	"fmt"
	"gitee.com/dtk-developer/openapi-sdk-go/sdk"
)

func main() {
	// 1.初始化所需要的参数appKey, appSecret, version
	var (
		appKey = "xxxxxxxxxx"
		appSecret = "xxxxxxxxxx"
		version = "v1.3.1"
	)

	// 2.初始化开放平台api的客户端句柄
	oa := &sdk.OpenApi{}
	oa.AppKey = appKey
	oa.AppSecret = appSecret
	oa.Version = version
	client :=  oa.GetClient()

	// 3.准备请求参数
	params := map[string]string {
		"cid": "3",
	}

	// 4.业务请求,示例使用高佣精选和淘系万能解析接口,其它开放接口使用方法相同
	resp, err := client.ListHeightCommission(params)
	if err != nil {
		panic(err)
	}
	fmt.Println(resp)

	// 复用client句柄
	params = map[string]string {
		// 指定接口版本
		"version": "v1.0.0",
		"content": "1👈¥fym8XiJU9Oi¥ https://s.click.taobao.com/Ys3TNlu  包邮 漫花抽纸10包4层加厚280张/包纸巾卫生纸家用实惠装面巾纸",
	}
	resp, err = client.ParseContent(params)
	if err != nil {
		panic(err)
	}
	fmt.Println(resp)
}
返回示例:
{
    "requestId": "b16a92f9d973410a960b8218e86f2be5",
    "time": 1611287014894,
    "code": 0,
    "msg": "成功",
    "data": {
        "list": [
            {
                "id": 31738498,
                "goodsId": "612415107604",
                "itemLink": "https://detail.tmall.com/item.htm?id=612415107604",
                "title": "【学玩礼包】编程猫4-12岁编程课提升儿童数理兑换赠百科儿童画报",
                "dtitle": "编程猫4-12岁少儿在线学习编程课",
                "originalPrice": 15.10,
                "actualPrice": 5.10,
                "shopType": 1,
                "monthSales": 441,
                "twoHoursSales": 0,
                "dailySales": 5,
                "commissionType": 3,
                "desc": "【满5减4.8,赠百科儿童画报】锻炼儿童逻辑思维,提高专注力,助力学科学习;打造终身学习体系,孩子学编程,越学越聪明,学习更自信~",
                "specialText": [
                    "下单立减",
                    "满5减4.8"
                ],
                "couponReceiveNum": 95,
                "couponLink": "https://uland.taobao.com/quan/detail?sellerId=4035220278&activityId=ded4de168868483c88ca49ddc418cc89",
                "couponEndTime": "2021-01-25 23:59:59",
                "couponStartTime": "2021-01-19 00:00:00",
                "couponPrice": 10.0,
                "couponConditions": "11",
                "activityType": 1,
                "createTime": "2021-01-18 17:01:14",
                "mainPic": "https://img.alicdn.com/imgextra/i4/4035220278/O1CN01clYzxP1DvMkIB1xDj_!!4035220278.png",
                "marketingMainPic": "https://sr.ffquan.cn/dtk_user_fd/20210118/c02krtiulrg8kvppj3v00.jpg",
                "video": "",
                "sellerId": "4035220278",
                "cid": 7,
                "tbcid": 124692004,
                "discounts": 0.66,
                "commissionRate": 0.90,
                "couponTotalNum": 99905,
                "activityStartTime": "",
                "activityEndTime": "",
                "shopName": "编程猫教育旗舰店",
                "shopLevel": "10",
                "descScore": 4.9,
                "dsrScore": 4.87,
                "dsrPercent": 1.33,
                "shipScore": 4.85,
                "shipPercent": 0.67,
                "serviceScore": 4.84,
                "servicePercent": 0.74,
                "brand": -1,
                "brandId": 1978867742,
                "brandName": "",
                "hotPush": 110,
                "teamName": "粉够教主联盟",
                "quanMLink": 0,
                "hzQuanOver": 0,
                "yunfeixian": 0,
                "estimateAmount": 0,
                "tchaoshi": 0,
                "goldSellers": 0,
                "freeshipRemoteDistrict": 1
            }
        ],
        "totalNum": 46,
        "pageId": "1"
    }
}
错误码列表: