for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the overtrue/wechat.
*
* (c) overtrue <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace EasyWeChat\Work\ExternalContact;
use EasyWeChat\Kernel\BaseClient;
/**
* Class Client.
* @author mingyoung <[email protected]>
class Client extends BaseClient
{
* 获取配置了客户联系功能的成员列表.
* @see https://work.weixin.qq.com/api/doc#90000/90135/91554
* @return array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string
* @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException
public function followUsers()
return $this->httpGet('cgi-bin/externalcontact/get_follow_user_list');
}
* 获取外部联系人列表.
* @see https://work.weixin.qq.com/api/doc#90000/90135/91555
* @param $userId
public function list($userId)
return $this->httpGet('cgi-bin/externalcontact/list', [
'userid' => $userId,
]);
* 获取外部联系人详情.
* @see https://work.weixin.qq.com/api/doc#90000/90135/91556
* @param $externalUserId
public function get($externalUserId)
return $this->httpGet('cgi-bin/externalcontact/get', [
'external_userid' => $externalUserId,