Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Thenbsp
Wechat
Wechat
AccessToken
PHP Class Thenbsp\Wechat\Wechat\AccessToken
Inheritance:
extends
Doctrine\Common\Collections\ArrayCollection
,
use trait
Thenbsp\Wechat\Bridge\CacheTrait
Show file
Open project: thenbsp/wechat
Class Usage Examples
Public Methods
Method
Description
__construct
(
$appid
,
$appsecret
)
构造方法
clearFromCache
( )
从缓存中清除
getCacheId
( )
获取缓存 ID
getTokenResponse
( )
获取 AccessToken(不缓存,返回原始数据)
getTokenString
( )
获取 AccessToken(调用缓存,返回 String)
Method Details
__construct()
public
method
构造方法
public
__construct
(
$appid
,
$appsecret
)
clearFromCache()
public
method
从缓存中清除
public
clearFromCache
( )
getCacheId()
public
method
获取缓存 ID
public
getCacheId
( )
getTokenResponse()
public
method
获取 AccessToken(不缓存,返回原始数据)
public
getTokenResponse
( )
getTokenString()
public
method
获取 AccessToken(调用缓存,返回 String)
public
getTokenString
( )