$app
$app : \EasyWeChat\Kernel\ServiceContainer
Class Client.
$app : \EasyWeChat\Kernel\ServiceContainer
$accessToken : \EasyWeChat\Kernel\Contracts\AccessTokenInterface
__construct(\EasyWeChat\Kernel\ServiceContainer $app, \EasyWeChat\Kernel\Contracts\AccessTokenInterface|null $accessToken = null)
BaseClient constructor.
\EasyWeChat\Kernel\ServiceContainer | $app | |
\EasyWeChat\Kernel\Contracts\AccessTokenInterface|null | $accessToken |
httpGet(string $url, array $query = array()) : \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string
GET request.
string | $url | |
array | $query |
httpPost(string $url, array $data = array()) : \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string
POST request.
string | $url | |
array | $data |
httpPostJson(string $url, string|array $data = array(), array $query = array()) : \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string
JSON request.
string | $url | |
string|array | $data | |
array | $query |
httpUpload(string $url, array $files = array(), array $form = array(), array $query = array()) : \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string
Upload file.
string | $url | |
array | $files | |
array | $form | |
array | $query |
getAccessToken() : \EasyWeChat\Kernel\Contracts\AccessTokenInterface
setAccessToken(\EasyWeChat\Kernel\Contracts\AccessTokenInterface $accessToken) : $this
\EasyWeChat\Kernel\Contracts\AccessTokenInterface | $accessToken |
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 |
requestRaw(string $url, string $method = 'GET', array $options = array()) : \EasyWeChat\Kernel\Http\Response
string | $url | |
string | $method | |
array | $options |
commit(integer $templateId, string $extJson, string $version, string $description) : array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string
integer | $templateId | |
string | $extJson | |
string | $version | |
string | $description |
getQrCode(string|null $path = null) : \EasyWeChat\Kernel\Http\Response
string|null | $path |
getCategory() : array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string
getPage() : array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string
submitAudit(array $itemList) : array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string
array | $itemList |
getAuditStatus(integer $auditId) : array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string
integer | $auditId |
getLatestAuditStatus() : array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string
release() : array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string
withdrawAudit() : array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string
rollbackRelease() : array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string
changeVisitStatus(string $action) : array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string
string | $action |
grayRelease(integer $grayPercentage) : array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string
分阶段发布.
integer | $grayPercentage |
revertGrayRelease() : array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string
取消分阶段发布.
getGrayRelease() : array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string
查询当前分阶段发布详情.