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