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

{{item.type_name}}:

API 市场 / 朋友圈文案
 

朋友圈文案
吐槽建议
应用场景:
根据大淘客id或淘宝id,查询单个商品是否有朋友圈文案,如果有,则返回商品信息及朋友圈文案
接口说明:
暂无
使用人数: 10+
朋友圈文案 接口测试 建议使用通用GET方法调用
  • 接口说明
  • 更新日志
  • 接口版本号:V1.0.0

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

请求方式:GET

公共参数:
请求参数:

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

返回数据:
调用示例:
 //朋友圈文案
    $data = [
        'appKey' => "xxxxxxxxxxxx",
        'version' => "v1.0.0",
        ...
    ];
    $host = "https://openapi.dataoke.com/api/goods/friends-circle-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 GetFriendsCircleList();
    $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 {
		"goodsId": "639331017111",
	}

	// 4.业务请求,示例使用朋友圈文案和淘系万能解析接口,其它开放接口使用方法相同
	resp, err := client.FriendsCircleGoodsList(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)
}
返回示例:
{
    "cache":false,
    "code":0,
    "data":{
        "list":[
            {
                "id":38780692,
                "goodsId":"550312926568",
                "itemLink":"https://detail.tmall.com/item.htm?id=550312926568",
                "title":"去狐臭止汗腋臭香体露持久腋下除臭孤味净喷雾男女士专用去味异味",
                "dtitle":"云南本草【去狐臭香体露】30ml",
                "desc":"【天猫去狐臭品牌!累计300万+热销】【定制春夏版】抖音网红推荐!草本精华更止汗,更净味!专业祛除汗味+狐臭+体臭等各种体味,效果好到爆【赠运费险+保密发货】",
                "cid":3,
                "subcid":[
                    111751
                ],
                "tbcid":121392015,
                "mainPic":"https://img.alicdn.com/imgextra/i2/1119159717/O1CN01vVEzkz2LeRAC2j4uy_!!1119159717.jpg",
                "marketingMainPic":"https://sr.ffquan.cn/dtk_www/20220713/cb77hekc6rqe80venkq00.jpg",
                "originalPrice":35.9,
                "actualPrice":5.9,
                "discounts":0.84,
                "commissionType":3,
                "commissionRate":80,
                "couponLink":"https://uland.taobao.com/quan/detail?sellerId=1119159717\u0026activityId=869baaa56d414a94a09158c510e952b9",
                "couponTotalNum":100000,
                "couponReceiveNum":12000,
                "couponEndTime":"2022-07-16 23:59:59",
                "couponStartTime":"2022-07-14 00:00:00",
                "couponPrice":30,
                "couponConditions":"39",
                "monthSales":62668,
                "twoHoursSales":0,
                "dailySales":0,
                "brand":0,
                "brandId":201898133,
                "brandName":"肤乐维",
                "createTime":"2022-07-13 15:51:01",
                "shopType":1,
                "shopName":"肤乐维旗舰店",
                "quanMLink":0,
                "hzQuanOver":0,
                "estimateAmount":0,
                "circleText":"告别狐臭汗臭尴尬❌\n💰5.9元30ml🙏保密发货\n云南本草🍀去狐臭香体露\n狐臭/汗臭/体味重都适用👈\n止汗净味【告别自卑】拥有体香\n天热了,有需要的赶紧囤👏",
                "freeshipRemoteDistrict":1,
                "shipaiPic":"[[\"https://sr.ffquan.cn/dtk_www/20220713/cb77huotfcv5u94lo6200.jpg\",\"https://sr.ffquan.cn/dtk_www/20220713/cb77huotfcv5u94lo6201.jpg\",\"https://sr.ffquan.cn/dtk_www/20220713/cb77huotfcv5u94lo6202.jpg\",\"https://sr.ffquan.cn/dtk_www/20220713/cb77huotfcv5u94lo6203.jpg\",\"https://sr.ffquan.cn/dtk_www/20220713/cb77huotfcv5u94lo6204.jpg\",\"https://sr.ffquan.cn/dtk_www/20220713/cb77huotfcv5u94lo6205.jpg\",\"https://sr.ffquan.cn/dtk_www/20220713/cb77huotfcv5u94lo6206.jpg\",\"https://sr.ffquan.cn/dtk_www/20220713/cb77huotfcv5u94lo6207.jpg\",\"https://sr.ffquan.cn/dtk_www/20220713/cb77huotfcv5u94lo6208.jpg\"]]",
                "shipaiPicCount":9,
                "shangchaoPic":"",
                "couponId":"869baaa56d414a94a09158c510e952b9"
            }
        ],
        "pageId":"1",
        "totalNum":8639
    },
    "msg":"成功",
    "requestId":"09e981ba76ebb8b724448ce24a1a53c3",
    "time":1657760455164206
}
错误码列表: