GET
GET = 'get'
Class Page.
$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
add(string $title, string $description, string $pageUrl, string $iconUrl, string $comment = '') : \EasyWeChat\Support\Collection
Add a page.
string | $title | |
string | $description | |
string | $pageUrl | |
string | $iconUrl | |
string | $comment |
update(integer $pageId, string $title, string $description, string $pageUrl, string $iconUrl, string $comment = '') : \EasyWeChat\Support\Collection
update a page info.
integer | $pageId | |
string | $title | |
string | $description | |
string | $pageUrl | |
string | $iconUrl | |
string | $comment |
fetchByIds(array $pageIds) : \EasyWeChat\Support\Collection
Fetch batch of pages by pageIds.
array | $pageIds |
pagination(integer $begin, integer $count) : \EasyWeChat\Support\Collection
Pagination to fetch batch of pages.
integer | $begin | |
integer | $count |
delete(integer $pageId) : \EasyWeChat\Support\Collection
delete a page.
integer | $pageId |