| Total Complexity | 4 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class Client extends BaseClient |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * Get appchat. |
||
| 25 | * |
||
| 26 | * @param string $chatId |
||
| 27 | * |
||
| 28 | * @return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string |
||
| 29 | */ |
||
| 30 | public function get(string $chatId) |
||
| 31 | { |
||
| 32 | return $this->httpGet('cgi-bin/appchat/get', ['chatid' => $chatId]); |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Create appchat. |
||
| 37 | * |
||
| 38 | * @param array $data |
||
| 39 | * |
||
| 40 | * @return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string |
||
| 41 | */ |
||
| 42 | public function create(array $data) |
||
| 43 | { |
||
| 44 | return $this->httpPostJson('cgi-bin/appchat/create', $data); |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Update appchat. |
||
| 49 | * |
||
| 50 | * @param string $chatId |
||
| 51 | * @param array $data |
||
| 52 | * |
||
| 53 | * @return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string |
||
| 54 | */ |
||
| 55 | public function update(string $chatId, array $data) |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Send a message. |
||
| 62 | * |
||
| 63 | * @param array $message |
||
| 64 | * |
||
| 65 | * @return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string |
||
| 66 | */ |
||
| 67 | public function send(array $message) |
||
| 70 | } |
||
| 71 | } |
||
| 72 |