Total Complexity | 4 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class Client extends BaseClient |
||
14 | { |
||
15 | /** |
||
16 | * |
||
17 | * Pull operation data. |
||
18 | * |
||
19 | * @param array $fields 指定拉取的字段 |
||
20 | * |
||
21 | * @return array|\EasyIM\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string |
||
22 | * @throws \EasyIM\Kernel\Exceptions\InvalidConfigException |
||
23 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
24 | */ |
||
25 | public function getAppInfo(array $fields = []) |
||
26 | { |
||
27 | $params = count($fields) > 0 ? ['RequestField' => $fields] : $fields; |
||
28 | |||
29 | return $this->httpPostJson('openconfigsvr/getappinfo', $params); |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Download recent message log. |
||
34 | * |
||
35 | * @param string $chatType C2C or Group |
||
36 | * @param string $megTime |
||
37 | * |
||
38 | * @return array|\EasyIM\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string |
||
39 | * @throws \EasyIM\Kernel\Exceptions\InvalidConfigException |
||
40 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
41 | */ |
||
42 | public function getHistory(string $megTime, string $chatType = 'C2C') |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * Get server IP address. |
||
54 | * |
||
55 | * @return array|\EasyIM\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string |
||
56 | * @throws \EasyIM\Kernel\Exceptions\InvalidConfigException |
||
57 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
58 | */ |
||
59 | public function getIPList() |
||
62 | } |
||
63 | } |
||
64 |