GET
GET = 'get'
Class AbstractAPI.
$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 |
getAppCode(string $path, integer $width = 430, boolean $autoColor = false, array $lineColor = array('r' => 0, 'g' => 0, 'b' => 0)) : \Psr\Http\Message\StreamInterface
Get WXACode.
string | $path | |
integer | $width | |
boolean | $autoColor | |
array | $lineColor |
getAppCodeUnlimit(string $scene, integer $width = 430, boolean $autoColor = false, array $lineColor = array('r' => 0, 'g' => 0, 'b' => 0)) : \Psr\Http\Message\StreamInterface
Get WXACode unlimit.
string | $scene | |
integer | $width | |
boolean | $autoColor | |
array | $lineColor |
appCodeUnlimit(string $scene, string $page = null, integer $width = null, boolean $autoColor = null, array $lineColor = null) : \Psr\Http\Message\StreamInterface
Get app code unlimit.
string | $scene | |
string | $page | |
integer | $width | |
boolean | $autoColor | |
array | $lineColor |
createQRCode(string $path, integer $width = 430) : \Psr\Http\Message\StreamInterface
Create QRCode.
string | $path | |
integer | $width |
getStream(string $endpoint, array $params) : \Psr\Http\Message\StreamInterface
Get stream.
string | $endpoint | |
array | $params |