Total Complexity | 3 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
21 | class Client extends BaseClient |
||
22 | { |
||
23 | /** |
||
24 | * 获取配置了客户联系功能的成员列表. |
||
25 | * |
||
26 | * @see https://work.weixin.qq.com/api/doc#90000/90135/91554 |
||
27 | * |
||
28 | * @return array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string |
||
29 | * |
||
30 | * @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException |
||
31 | */ |
||
32 | 1 | public function followUsers() |
|
33 | { |
||
34 | 1 | return $this->httpGet('cgi-bin/externalcontact/get_follow_user_list'); |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * 获取外部联系人列表. |
||
39 | * |
||
40 | * @see https://work.weixin.qq.com/api/doc#90000/90135/91555 |
||
41 | * |
||
42 | * @param $userId |
||
43 | * |
||
44 | * @return array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string |
||
45 | * |
||
46 | * @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException |
||
47 | */ |
||
48 | 1 | public function list($userId) |
|
49 | { |
||
50 | 1 | return $this->httpGet('cgi-bin/externalcontact/list', [ |
|
51 | 1 | 'userid' => $userId, |
|
52 | ]); |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * 获取外部联系人详情. |
||
57 | * |
||
58 | * @see https://work.weixin.qq.com/api/doc#90000/90135/91556 |
||
59 | * |
||
60 | * @param $externalUserId |
||
61 | * |
||
62 | * @return array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string |
||
63 | * |
||
64 | * @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException |
||
65 | */ |
||
66 | 1 | public function get($externalUserId) |
|
70 | ]); |
||
71 | } |
||
72 | } |
||
73 |