\jd_vopStock

Class Stock

Summary

Methods
Properties
Constants
__construct()
Req()
GetNewStockById()
No public properties found
No constants found
No protected methods found
$client_id
$username
$password_md5
$client_secret
N/A
No private methods found
No private properties found
N/A

Properties

$client_id

$client_id : 

Type

$username

$username : 

Type

$password_md5

$password_md5 : 

Type

$client_secret

$client_secret : 

Type

Methods

__construct()

__construct(  $client_id,   $username,   $password_md5,   $client_secret) 

Parameters

$client_id
$username
$password_md5
$client_secret

Req()

Req(\jd_vop\request\Request  $request, string  $response) : \jd_vop\response\Response

统一请求封装

Parameters

\jd_vop\request\Request $request

Request 对象 继承自request\Request

string $response

response 接收对象 实现 response\Response 接口

Throws

\jd_vop\exception\BizException
\jd_vop\exception\DataException
\jd_vop\exception\NetWorkException

Returns

\jd_vop\response\Response

GetNewStockById()

GetNewStockById(  $token,   $skuNums,   $area) : mixed

6.1 查询商品库存

Parameters

$token

string 授权时获取的access token

$skuNums

string 商品和数量 [{skuId: 569172,num:101}] ( “{skuId: 569172,num:10}”为1条记录,此参数最多传入100条记录 )

$area

string 格式:13_1000_4277_0 (分别代表1、2、3、4级地址)

Throws

\jd_vop\exception\BizException
\jd_vop\exception\DataException
\jd_vop\exception\NetWorkException

Returns

mixed