Properties

$app

$app : \think\App

应用实例

Type

\think\App

$url

$url : 

接口地址

Type

$type

$type : string

API接口名称

Type

string

$client_id

$client_id : string

开放平台分配的

Type

string

$client_secret

$client_secret : string

开放平台分配的

Type

string

$data_type

$data_type : string

响应格式,即返回数据的格式,JSON或者XML(二选一),默认JSON,注意是大写

Type

string

$version

$version : string

API协议版本号,默认为V1,可不填

Type

string

$param

$param : 

需要发送的的参数

Type

$output

$output : 

响应内容

Type

Methods

__construct()

__construct(\think\App  $app) 

Service constructor.

Parameters

\think\App $app

instance()

instance(array  $args) : static

静态实例对象

Parameters

array $args

Returns

static

clientId()

clientId(\DtApp\ThinkLibrary\service\pinduoduo\string  $clientId) 

Parameters

\DtApp\ThinkLibrary\service\pinduoduo\string $clientId

clientSecret()

clientSecret(string  $clientSecret) : $this

配置开放平台分配的clientSecret

Parameters

string $clientSecret

Returns

$this

dataType()

dataType(string  $dataType) : $this

响应格式,即返回数据的格式,JSON或者XML(二选一),默认JSON,注意是大写

Parameters

string $dataType

Returns

$this

param()

param(array  $param) : $this

请求参数

Parameters

array $param

Returns

$this

goodsSearch()

goodsSearch() : $this

获取商品信息 - 多多进宝商品查询 https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.search

Returns

$this

goodsPidGenerate()

goodsPidGenerate() : $this

新增推广位 - 创建多多进宝推广位 https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.pid.generate

Returns

$this

goodsPidQuery()

goodsPidQuery() : $this

管理推广位 - 查询已经生成的推广位信息 https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.pid.query

Returns

$this

orderDetailGet()

orderDetailGet() : $this

CPS订单数据 - 查询订单详情 https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.order.detail.get

Returns

$this

orderListIncrementGet()

orderListIncrementGet() : $this

CPS订单数据 - 最后更新时间段增量同步推广订单信息 https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.order.list.increment.get

Returns

$this

orderListRangeGet()

orderListRangeGet() : $this

CPS订单数据 - 用时间段查询推广订单接口 https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.order.list.range.get

Returns

$this

financeCpaQuery()

financeCpaQuery() : $this

CPA效果数据 - 查询CPA数据 https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.finance.cpa.query

Returns

$this

goodsPromotionUrlGenerate()

goodsPromotionUrlGenerate() : $this

单品推广- 多多进宝推广链接生成 https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.promotion.url.generate

Returns

$this

weAppQrcodeUrlGen()

weAppQrcodeUrlGen() : $this

单品推广- 多多客生成单品推广小程序二维码url https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.weapp.qrcode.url.gen

Returns

$this

goodsZsUitUrlGen()

goodsZsUitUrlGen() : $this

单品推广- 多多进宝转链接口 https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.zs.unit.url.gen

Returns

$this

resourceUrlGen()

resourceUrlGen() : $this

活动转链 - 生成多多进宝频道推广 https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.resource.url.gen

Returns

$this

themePromUrlGenerate()

themePromUrlGenerate() : $this

活动转链 - 多多进宝主题推广链接生成 https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.theme.prom.url.generate

Returns

$this

mallUrlGen()

mallUrlGen() : $this

店铺推广 - 多多客生成店铺推广链接 https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.mall.url.gen

Returns

$this

rpPromUrlGenerate()

rpPromUrlGenerate() : $this

营销工具 - 生成营销工具推广链接 https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.rp.prom.url.generate

Returns

$this

goodsDetail()

goodsDetail() : $this

获取商品信息 - 多多进宝商品详情查询 https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.detail

Returns

$this

goodsUnitQuery()

goodsUnitQuery() : $this

获取商品信息 - 查询商品的推广计划 https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.unit.query

Returns

$this

goodsBasicInfoGet()

goodsBasicInfoGet() : $this

商品&店铺检索 - 获取商品基本信息接口 https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.basic.info.get

Returns

$this

couponInfoQuery()

couponInfoQuery() : $this

商品&店铺检索 - 查询优惠券信息 https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.coupon.info.query

Returns

$this

goodsListGet()

goodsListGet() : $this

商品&店铺检索 - 查询店铺商品 https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.mall.goods.list.get

Returns

$this

topGoodsListQuery()

topGoodsListQuery() : $this

多多客获取爆款排行商品接口 https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.top.goods.list.query

Returns

$this

goodsRecommendGet()

goodsRecommendGet() : $this

爆品推荐 - 多多进宝商品推荐API https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.recommend.get

Returns

$this

themeListGet()

themeListGet() : $this

爆品推荐 - 多多进宝主题列表查询 https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.theme.list.get

Returns

$this

themeGoodsSearch()

themeGoodsSearch() : $this

活动选品库 - 多多进宝主题商品查询 https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.theme.goods.search

Returns

$this

cmsPromUrlGenerate()

cmsPromUrlGenerate() : $this

生成商城-频道推广链接 https://open.pinduoduo.com/application/document/api?id=pdd.ddk.cms.prom.url.

Returns

$this

liveDetail()

liveDetail() : $this

查询直播间详情 https://open.pinduoduo.com/application/document/api?id=pdd.ddk.live.detail

Returns

$this

liveList()

liveList() : $this

查询直播间列表 https://open.pinduoduo.com/application/document/api?id=pdd.ddk.live.list

Returns

$this

liveUrlGen()

liveUrlGen() : $this

生成直播间推广链接 https://open.pinduoduo.com/application/document/api?id=pdd.ddk.live.url.gen

Returns

$this

lotteryUrlGen()

lotteryUrlGen() : $this

多多客生成转盘抽免单url https://open.pinduoduo.com/application/document/api?id=pdd.ddk.lottery.url.gen

Returns

$this

memberAuthorityQuery()

memberAuthorityQuery() : $this

查询是否绑定备案 https://open.pinduoduo.com/application/document/api?id=pdd.ddk.member.authority.query

Returns

$this

goodsOptGet()

goodsOptGet() : $this

查询商品标签列表 https://open.pinduoduo.com/application/document/api?id=pdd.goods.opt.get

Returns

$this

setMethod()

setMethod(string  $type = '') : $this

自定义接口

Parameters

string $type

Returns

$this

toArray()

toArray() : array|mixed

返回数组数据

Throws

\DtApp\ThinkLibrary\exception\DtaException

Returns

array|mixed

getChannelTypeList()

getChannelTypeList() : array<mixed,array>

获取频道ID

Returns

array<mixed,array>

getResourceTypeList()

getResourceTypeList() : array<mixed,array>

获取频道来源ID

Returns

array<mixed,array>

initialize()

initialize() : $this

初始化服务

Returns

$this

http()

http() : $this

网络请求

Throws

\DtApp\ThinkLibrary\exception\DtaException

Returns

$this

getConfig()

getConfig() : $this

获取配置信息

Returns

$this

object2array()

object2array(  $object) : array

Parameters

$object

Returns

array

createSign()

createSign() : string

签名

Throws

\DtApp\ThinkLibrary\exception\DtaException

Returns

string

createStrParam()

createStrParam() : string

组参

Returns

string