\jd_vop\response\oauth2AccessToken

2.3 获取Access Token Result

Summary

Methods
Properties
Constants
__construct()
parse()
$uid
$refresh_token_expires
$time
$expires_in
$refresh_token
$access_token
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$uid

$uid : string

Type

string — 业务ID

$refresh_token_expires

$refresh_token_expires : string

Type

string — refresh_token的过期时间,毫秒级别,时间戳

$time

$time : integer

Type

integer — 当前时间,时间戳格式:1551663377887

$expires_in

$expires_in : integer

Type

integer — access_token的有效期,单位:秒,有效期24小时

$refresh_token

$refresh_token : string

Type

string — 当access_token过期时,用于刷新access_token

$access_token

$access_token : string

Type

string — 访问令牌,用于业务接口调用。有效期24小时

Methods

__construct()

__construct(  $uid,   $refresh_token_expires,   $time,   $expires_in,   $refresh_token,   $access_token) 

2.3 获取Access Token Result

Parameters

$uid

string 业务ID

$refresh_token_expires

string refresh_token的过期时间,毫秒级别,时间戳

$time

int 当前时间,时间戳格式:1551663377887

$expires_in

int access_token的有效期,单位:秒,有效期24小时

$refresh_token

string 当access_token过期时,用于刷新access_token

$access_token

string 访问令牌,用于业务接口调用。有效期24小时

parse()

parse(  $result) : static

Parameters

$result

Returns

static