| @@ 22-30 (lines=9) @@ | ||
| 19 | * |
|
| 20 | * @return \EntWeChat\Support\Collection |
|
| 21 | */ |
|
| 22 | public function batchSyncUser($mediaId, $callback = []) |
|
| 23 | { |
|
| 24 | $params = [ |
|
| 25 | 'media_id' => $mediaId, |
|
| 26 | 'callback' => $callback |
|
| 27 | ]; |
|
| 28 | ||
| 29 | return $this->parseJSON('json', [self::API_SYNC_USER, $params]); |
|
| 30 | } |
|
| 31 | ||
| 32 | /** |
|
| 33 | * Batch replace user. |
|
| @@ 40-48 (lines=9) @@ | ||
| 37 | * |
|
| 38 | * @return \EntWeChat\Support\Collection |
|
| 39 | */ |
|
| 40 | public function batchReplaceUser($mediaId, $callback = []) |
|
| 41 | { |
|
| 42 | $params = [ |
|
| 43 | 'media_id' => $mediaId, |
|
| 44 | 'callback' => $callback |
|
| 45 | ]; |
|
| 46 | ||
| 47 | return $this->parseJSON('json', [self::API_REPLACE_USER, $params]); |
|
| 48 | } |
|
| 49 | ||
| 50 | /** |
|
| 51 | * Batch replace party. |
|
| @@ 58-66 (lines=9) @@ | ||
| 55 | * |
|
| 56 | * @return \EntWeChat\Support\Collection |
|
| 57 | */ |
|
| 58 | public function batchReplaceParty($mediaId, $callback = []) |
|
| 59 | { |
|
| 60 | $params = [ |
|
| 61 | 'media_id' => $mediaId, |
|
| 62 | 'callback' => $callback |
|
| 63 | ]; |
|
| 64 | ||
| 65 | return $this->parseJSON('json', [self::API_REPLACE_PARTY, $params]); |
|
| 66 | } |
|
| 67 | ||
| 68 | /** |
|
| 69 | * Get result. |
|