1 | <?php |
||
10 | class Menu extends AbstractAPI |
||
11 | { |
||
12 | const API_CREATE = 'https://qyapi.weixin.qq.com/cgi-bin/menu/create'; |
||
13 | const API_GET = 'https://qyapi.weixin.qq.com/cgi-bin/menu/get'; |
||
14 | const API_DELETE = 'https://qyapi.weixin.qq.com/cgi-bin/menu/delete'; |
||
15 | |||
16 | /** |
||
17 | * Get all menus. |
||
18 | * |
||
19 | * @return \EntWeChat\Support\Collection |
||
20 | */ |
||
21 | public function all($agentId) |
||
25 | |||
26 | /** |
||
27 | * Add menu. |
||
28 | * |
||
29 | * @param int $agentId |
||
30 | * @param array $buttons |
||
31 | * |
||
32 | * @return bool |
||
33 | */ |
||
34 | public function add($agentId, array $buttons) |
||
38 | |||
39 | /** |
||
40 | * Destroy menu. |
||
41 | * |
||
42 | * @param int $agentId |
||
43 | * |
||
44 | * @return bool |
||
45 | */ |
||
46 | public function destroy($agentId) |
||
50 | } |
||
51 |