1 | <?php |
||
28 | class ShakeAround extends AbstractAPI |
||
29 | { |
||
30 | const API_ACCOUNT_REGISTER = 'https://api.weixin.qq.com/shakearound/account/register'; |
||
31 | const API_ACCOUNT_AUDIT_STATUS = 'https://api.weixin.qq.com/shakearound/account/auditstatus'; |
||
32 | const API_GET_SHAKE_INFO = 'https://api.weixin.qq.com/shakearound/user/getshakeinfo'; |
||
33 | |||
34 | /** |
||
35 | * Device instance. |
||
36 | * |
||
37 | * @var \EasyWeChat\ShakeAround\Device |
||
38 | */ |
||
39 | protected $device = null; |
||
40 | |||
41 | /** |
||
42 | * Group instance. |
||
43 | * |
||
44 | * @var \EasyWeChat\ShakeAround\Group |
||
45 | */ |
||
46 | protected $group = null; |
||
47 | |||
48 | /** |
||
49 | * Page instance. |
||
50 | * |
||
51 | * @var \EasyWeChat\ShakeAround\Page |
||
52 | */ |
||
53 | protected $page = null; |
||
54 | |||
55 | /** |
||
56 | * Material instance. |
||
57 | * |
||
58 | * @var \EasyWeChat\ShakeAround\Material |
||
59 | */ |
||
60 | protected $material = null; |
||
61 | |||
62 | /** |
||
63 | * Relation instance. |
||
64 | * |
||
65 | * @var \EasyWeChat\ShakeAround\Relation |
||
66 | */ |
||
67 | protected $relation = null; |
||
68 | |||
69 | /** |
||
70 | * Stats instance. |
||
71 | * |
||
72 | * @var \EasyWeChat\ShakeAround\Stats |
||
73 | */ |
||
74 | protected $stats = null; |
||
75 | |||
76 | /** |
||
77 | * Register shake around. |
||
78 | * |
||
79 | * @param string $name |
||
80 | * @param string $tel |
||
81 | * @param string $email |
||
82 | * @param string $industry_id |
||
83 | * @param array $qualification_cert_urls |
||
84 | * @param string $reason |
||
85 | * |
||
86 | * @return \EasyWeChat\Support\Collection |
||
87 | */ |
||
88 | public function register($name, $tel, $email, $industry_id, array $qualification_cert_urls, $reason = '') |
||
104 | |||
105 | /** |
||
106 | * Get audit status. |
||
107 | * |
||
108 | * @return \EasyWeChat\Support\Collection |
||
109 | */ |
||
110 | public function getStatus() |
||
114 | |||
115 | /** |
||
116 | * Get shake info. |
||
117 | * |
||
118 | * @param string $ticket |
||
119 | * @param int $need_poi |
||
120 | * |
||
121 | * @return \EasyWeChat\Support\Collection |
||
122 | */ |
||
123 | public function getShakeInfo($ticket, $need_poi = null) |
||
135 | |||
136 | /** |
||
137 | * Return the device instance. |
||
138 | * |
||
139 | * @return \EasyWeChat\ShakeAround\Device |
||
140 | */ |
||
141 | public function device() |
||
149 | |||
150 | /** |
||
151 | * Return the group instance. |
||
152 | * |
||
153 | * @return \EasyWeChat\ShakeAround\Group |
||
154 | */ |
||
155 | public function group() |
||
163 | |||
164 | /** |
||
165 | * Return the page instance. |
||
166 | * |
||
167 | * @return \EasyWeChat\ShakeAround\Page |
||
168 | */ |
||
169 | public function page() |
||
177 | |||
178 | /** |
||
179 | * Return the material instance. |
||
180 | * |
||
181 | * @return \EasyWeChat\ShakeAround\Material |
||
182 | */ |
||
183 | public function material() |
||
191 | |||
192 | /** |
||
193 | * Return the relation instance. |
||
194 | * |
||
195 | * @return \EasyWeChat\ShakeAround\Relation |
||
196 | */ |
||
197 | public function relation() |
||
205 | |||
206 | /** |
||
207 | * Return the stats instance. |
||
208 | * |
||
209 | * @return \EasyWeChat\ShakeAround\Stats |
||
210 | */ |
||
211 | public function stats() |
||
219 | } |
||
220 |