GET
GET = 'get'
Class QRCode.
$http : \EasyWeChat\Core\Http
Http instance.
$accessToken : \EasyWeChat\Core\AccessToken
The request token.
__construct(\EasyWeChat\Core\AccessToken $accessToken)
Constructor.
\EasyWeChat\Core\AccessToken | $accessToken |
getHttp() : \EasyWeChat\Core\Http
Return the http instance.
setHttp(\EasyWeChat\Core\Http $http) : $this
Set the http instance.
\EasyWeChat\Core\Http | $http |
getAccessToken() : \EasyWeChat\Core\AccessToken
Return the current accessToken.
setAccessToken(\EasyWeChat\Core\AccessToken $accessToken) : $this
Set the request token.
\EasyWeChat\Core\AccessToken | $accessToken |
parseJSON(string $method, array $args) : \EasyWeChat\Support\Collection
Parse JSON from response and check error.
string | $method | |
array | $args |
| null
forever(integer $sceneValue) : \EasyWeChat\Support\Collection
Create forever.
integer | $sceneValue |
temporary(string $sceneValue, null $expireSeconds = null) : \EasyWeChat\Support\Collection
Create temporary.
string | $sceneValue | |
null | $expireSeconds |
card(array $card) : \EasyWeChat\Support\Collection
Create QRCode for card.
array | $card | { "card_id": "pFS7Fjg8kV1IdDz01r4SQwMkuCKc", "code": "198374613512", "openid": "oFS7Fjl0WsZ9AMZqrI80nbIq8xrA", "expire_seconds": "1800", "is_unique_code": false , "outer_id" : 1 } |
create(string $actionName, array $actionInfo, boolean $temporary = true, integer $expireSeconds = null) : \EasyWeChat\Support\Collection
Create a QRCode.
string | $actionName | |
array | $actionInfo | |
boolean | $temporary | |
integer | $expireSeconds |