12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace crmeb\services\wechatlive;
- use EasyWeChat\Core\AbstractAPI;
- use EasyWeChat\Core\AccessToken;
- use EasyWeChat\Core\Exceptions\InvalidArgumentException;
- class ProgramWechatLive extends AbstractAPI
- {
-
- const API_WECHAT_LIVE = 'http://api.weixin.qq.com/wxa/business/getliveinfo';
-
- public function __construct(AccessToken $accessToken)
- {
- parent::__construct($accessToken);
- }
-
- public function getLiveInfo(int $page = 1, int $limit = 10)
- {
- $page = ($page - 1) * $limit;
- $params = [
- 'start' => $page,
- 'limit' => $limit
- ];
- return $this->parseJSON('json', [self::API_WECHAT_LIVE, $params]);
- }
- }
|