1 | <?php |
||
10 | class Agent extends AbstractAPI |
||
11 | { |
||
12 | const API_GET = 'https://qyapi.weixin.qq.com/cgi-bin/agent/get'; |
||
13 | const API_SET = 'https://qyapi.weixin.qq.com/cgi-bin/agent/set'; |
||
14 | const API_LIST = 'https://qyapi.weixin.qq.com/cgi-bin/agent/list'; |
||
15 | |||
16 | /** |
||
17 | * Fetch an agent by agent id. |
||
18 | * |
||
19 | * @param int $agentId |
||
20 | * |
||
21 | * @return \EntWeChat\Support\Collection |
||
22 | */ |
||
23 | public function get($agentId) |
||
31 | |||
32 | /** |
||
33 | * Set an agent by agent id. |
||
34 | * |
||
35 | * @param int $agentId |
||
36 | * @param array $agentInfo |
||
37 | * |
||
38 | * @return \EntWeChat\Support\Collection |
||
39 | */ |
||
40 | public function set($agentId, array $agentInfo = []) |
||
48 | |||
49 | /** |
||
50 | * List agents. |
||
51 | * |
||
52 | * @return \EntWeChat\Support\Collection |
||
53 | */ |
||
54 | public function lists() |
||
58 | } |
||
59 |