Properties

$app

$app : \think\App

应用实例

Type

\think\App

$url

$url : string

接口地址

Type

string

$method

$method : 

API接口名称

Type

$response

$response : 

API接口名称

Type

$app_key

$app_key : 

联盟分配给应用的appkey

Type

$secret_key

$secret_key : 

联盟分配给应用的secretkey

Type

$access_token

$access_token : 

根据API属性标签,如果需要授权,则此参数必传;如果不需要授权,则此参数不需要传

Type

$format

$format : string

响应格式,暂时只支持json

Type

string

$v

$v : string

API协议版本,请根据API具体版本号传入此参数,一般为1.0

Type

string

$sign_method

$sign_method : string

签名的摘要算法,暂时只支持md5

Type

string

$output

$output : 

响应内容

Type

$param

$param : 

需要发送的的参数

Type

$params

$params : 

需要发送的的参数

Type

Methods

__construct()

__construct(\think\App  $app) 

Service constructor.

Parameters

\think\App $app

instance()

instance(array  $args) : static

静态实例对象

Parameters

array $args

Returns

static

appKey()

appKey(string  $appKey) : $this

联盟分配给应用的appkey

Parameters

string $appKey

Returns

$this

secretKey()

secretKey(string  $secretKey) : $this

联盟分配给应用的secretkey

Parameters

string $secretKey

Returns

$this

accessToken()

accessToken(string  $accessToken) : $this

根据API属性标签,如果需要授权,则此参数必传;如果不需要授权,则此参数不需要传

Parameters

string $accessToken

Returns

$this

param()

param(array  $param) : $this

组参

Parameters

array $param

Returns

$this

promotionCommonGet()

promotionCommonGet() : $this

网站/APP获取推广链接接口 https://union.jd.com/openplatform/api/10421

Returns

$this

promotionBySubUnionIdGet()

promotionBySubUnionIdGet() : $this

社交媒体获取推广链接接口【申请】 https://union.jd.com/openplatform/api/10424

Returns

$this

promotionByUnionIdGet()

promotionByUnionIdGet() : $this

工具商获取推广链接接口【申请】 https://union.jd.com/openplatform/api/10425

Returns

$this

orderRowQuery()

orderRowQuery() : $this

订单行查询接口 https://union.jd.com/openplatform/api/12707

Returns

$this

orderBonusQuery()

orderBonusQuery() : $this

奖励订单查询接口【申请】 https://union.jd.com/openplatform/api/11781

Returns

$this

positionCreate()

positionCreate() : $this

创建推广位【申请】 https://union.jd.com/openplatform/api/10429

Returns

$this

positionQuery()

positionQuery() : $this

查询推广位【申请】 https://union.jd.com/openplatform/api/10428

Returns

$this

userPidGet()

userPidGet() : $this

获取PID【申请】 https://union.jd.com/openplatform/api/10430

Returns

$this

goodsQuery()

goodsQuery() : $this

关键词商品查询接口【申请】 https://union.jd.com/openplatform/api/10421

Returns

$this

goodsJIngFenQuery()

goodsJIngFenQuery() : $this

京粉精选商品查询接口 https://union.jd.com/openplatform/api/10417

Returns

$this

goodsPromotionGoodsInfoQuery()

goodsPromotionGoodsInfoQuery() : $this

根据skuid查询商品信息接口 https://union.jd.com/openplatform/api/10422

Returns

$this

couponGiftGet()

couponGiftGet() : $this

礼金创建【申请】 https://union.jd.com/openplatform/api/12246

Returns

$this

couponGiftStop()

couponGiftStop() : $this

礼金停止【申请】 https://union.jd.com/openplatform/api/12240

Returns

$this

statisticsGifTCouponQuery()

statisticsGifTCouponQuery() : $this

礼金效果数据 https://union.jd.com/openplatform/api/12248

Returns

$this

setMethod()

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

自定义接口

Parameters

string $method

Returns

$this

toArray()

toArray() : array|mixed

返回数组数据

Throws

\DtApp\ThinkLibrary\exception\DtaException

Returns

array|mixed

getEliteIdList()

getEliteIdList() : array<mixed,array>

获取频道ID

Returns

array<mixed,array>

initialize()

initialize() : $this

初始化服务

Returns

$this

http()

http() 

网络请求

Throws

\DtApp\ThinkLibrary\exception\DtaException

getConfig()

getConfig() : $this

获取配置信息

Returns

$this

createSign()

createSign() : string

签名

Throws

\DtApp\ThinkLibrary\exception\DtaException

Returns

string

createStrParam()

createStrParam() : string

组参

Returns

string