Total Complexity | 3 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
21 | class Client extends BaseClient |
||
22 | { |
||
23 | /** |
||
24 | * @param string $appId |
||
25 | * |
||
26 | * @return array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string |
||
27 | * |
||
28 | * @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException |
||
29 | */ |
||
30 | public function apply($appId) |
||
31 | { |
||
32 | return $this->httpPostJson('wxa/plugin', [ |
||
33 | 'action' => 'apply', |
||
34 | 'plugin_appid' => $appId, |
||
35 | ]); |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @return array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string |
||
40 | * |
||
41 | * @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException |
||
42 | */ |
||
43 | public function list() |
||
44 | { |
||
45 | return $this->httpPostJson('wxa/plugin', [ |
||
46 | 'action' => 'list', |
||
47 | ]); |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * @param string $appId |
||
52 | * |
||
53 | * @return array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string |
||
54 | * |
||
55 | * @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException |
||
56 | */ |
||
57 | public function unbind($appId) |
||
62 | ]); |
||
63 | } |
||
64 | } |
||
65 |