\jd_vopOauth2

Summary

Methods
Properties
Constants
__construct()
Req()
AccessToken()
RefreshAccessToken()
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

AccessToken()

AccessToken() 

2.3 获取Access Token

Throws

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

RefreshAccessToken()

RefreshAccessToken(  $refresh_token) : mixed|null

2.4 刷新 Access Token

Parameters

$refresh_token

string 授权时获取的refresh_token

Throws

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

Returns

mixed|null