@@ 29-36 (lines=8) @@ | ||
26 | * |
|
27 | * @return array |
|
28 | */ |
|
29 | public function get($userId) |
|
30 | { |
|
31 | $params = [ |
|
32 | 'userid' => $userId, |
|
33 | ]; |
|
34 | ||
35 | return $this->parseJSON('get', [self::API_GET, $params]); |
|
36 | } |
|
37 | ||
38 | /** |
|
39 | * Batch get users. |
|
@@ 143-151 (lines=9) @@ | ||
140 | * |
|
141 | * @return \EntWeChat\Support\Collection |
|
142 | */ |
|
143 | public function toOpenId($userId, $agentId) |
|
144 | { |
|
145 | $params = [ |
|
146 | 'userid' => $userId, |
|
147 | 'agentid' => $agentId, |
|
148 | ]; |
|
149 | ||
150 | return $this->parseJSON('json', [self::API_TO_OPENID, $params]); |
|
151 | } |
|
152 | ||
153 | /** |
|
154 | * Convert openid to userid. |