$app
$app : \Pimple\Container
AccessToken.
__construct(\Pimple\Container $app, string $authCorpId, string $permanentCode, \EasyWeChat\OpenWork\Application $component)
AccessToken constructor.
\Pimple\Container | $app | |
string | $authCorpId | |
string | $permanentCode | |
\EasyWeChat\OpenWork\Application | $component |
setToken(string $token, integer $lifetime = 7200) : \EasyWeChat\Kernel\Contracts\AccessTokenInterface
string | $token | |
integer | $lifetime |
refresh() : \EasyWeChat\Kernel\Contracts\AccessTokenInterface
requestToken(array $credentials, boolean $toArray = false) : \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string
array | $credentials | |
boolean | $toArray |
applyToRequest(\Psr\Http\Message\RequestInterface $request, array $requestOptions = array()) : \Psr\Http\Message\RequestInterface
\Psr\Http\Message\RequestInterface | $request | |
array | $requestOptions |
request(string $url, string $method = 'GET', array $options = array()) : \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string
Make a request.
string | $url | |
string | $method | |
array | $options |