@@ 163-173 (lines=11) @@ | ||
160 | * |
|
161 | * @return Response The response |
|
162 | */ |
|
163 | private function fetchMultipleBoards(Request $request, array $fields = null) |
|
164 | { |
|
165 | $fields = $fields ? $fields : Board::fields(); |
|
166 | $request->setFields($fields); |
|
167 | ||
168 | return $this->execute($request, function (Response $response) { |
|
169 | $mapper = new Mapper(new Board()); |
|
170 | ||
171 | return $mapper->toList($response); |
|
172 | }); |
|
173 | } |
|
174 | ||
175 | /** |
|
176 | * Fetch multiple users and processes the response. |
|
@@ 205-215 (lines=11) @@ | ||
202 | * |
|
203 | * @return Response The response |
|
204 | */ |
|
205 | private function fetchMultiplePins(Request $request, array $fields = null) |
|
206 | { |
|
207 | $fields = $fields ? $fields : Pin::fields(); |
|
208 | $request->setFields($fields); |
|
209 | ||
210 | return $this->execute($request, function (Response $response) { |
|
211 | $mapper = new Mapper(new Pin()); |
|
212 | ||
213 | return $mapper->toList($response); |
|
214 | }); |
|
215 | } |
|
216 | ||
217 | /** |
|
218 | * Get a user. |