| @@ 98-106 (lines=9) @@ | ||
| 95 | * |
|
| 96 | * @return \EasyWeChat\Support\Collection |
|
| 97 | */ |
|
| 98 | public function fetchByIds(array $pageIds) |
|
| 99 | { |
|
| 100 | $params = [ |
|
| 101 | 'type' => 1, |
|
| 102 | 'page_ids' => $pageIds, |
|
| 103 | ]; |
|
| 104 | ||
| 105 | return $this->parseJSON('json', [self::API_SEARCH, $params]); |
|
| 106 | } |
|
| 107 | ||
| 108 | /** |
|
| 109 | * Pagination to fetch batch of pages. |
|
| @@ 42-50 (lines=9) @@ | ||
| 39 | * |
|
| 40 | * @return \EasyWeChat\Support\Collection |
|
| 41 | */ |
|
| 42 | public function bindPage(array $deviceIdentifier, array $pageIds) |
|
| 43 | { |
|
| 44 | $params = [ |
|
| 45 | 'device_identifier' => $deviceIdentifier, |
|
| 46 | 'page_ids' => $pageIds, |
|
| 47 | ]; |
|
| 48 | ||
| 49 | return $this->parseJSON('json', [self::API_DEVICE_BINDPAGE, $params]); |
|
| 50 | } |
|
| 51 | ||
| 52 | /** |
|
| 53 | * Get pageIds by deviceId. |
|