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 |
open(string $msgId, integer $index) : \EasyWeChat\Support\Collection
Open article comment.
string | $msgId | |
integer | $index |
close(string $msgId, integer $index) : \EasyWeChat\Support\Collection
Close comment.
string | $msgId | |
integer | $index |
lists(string $msgId, integer $index, integer $begin, integer $count, integer $type) : \EasyWeChat\Support\Collection
Get article comments.
string | $msgId | |
integer | $index | |
integer | $begin | |
integer | $count | |
integer | $type |
markElect(string $msgId, integer $index, integer $commentId) : \EasyWeChat\Support\Collection
Mark elect comment.
string | $msgId | |
integer | $index | |
integer | $commentId |
unmarkElect(string $msgId, integer $index, integer $commentId) : \EasyWeChat\Support\Collection
Unmark elect comment.
string | $msgId | |
integer | $index | |
integer | $commentId |
delete(string $msgId, integer $index, integer $commentId) : \EasyWeChat\Support\Collection
Delete comment.
string | $msgId | |
integer | $index | |
integer | $commentId |
reply(string $msgId, integer $index, integer $commentId, string $content) : \EasyWeChat\Support\Collection
Reply to a comment.
string | $msgId | |
integer | $index | |
integer | $commentId | |
string | $content |
deleteReply(string $msgId, integer $index, integer $commentId) : \EasyWeChat\Support\Collection
Delete a reply.
string | $msgId | |
integer | $index | |
integer | $commentId |