| @@ 558-568 (lines=11) @@ | ||
| 555 | * |
|
| 556 | * @return Response The response |
|
| 557 | */ |
|
| 558 | public function getBoardPins($boardId) |
|
| 559 | { |
|
| 560 | if (empty($boardId)) { |
|
| 561 | throw new InvalidArgumentException('The board id should not be empty.'); |
|
| 562 | } |
|
| 563 | ||
| 564 | $endpoint = sprintf('boards/%s/pins/', $boardId); |
|
| 565 | $request = new Request('GET', $endpoint); |
|
| 566 | ||
| 567 | return $this->fetchMultiplePins($request); |
|
| 568 | } |
|
| 569 | ||
| 570 | /** |
|
| 571 | * Get a single pin. |
|
| @@ 577-587 (lines=11) @@ | ||
| 574 | * |
|
| 575 | * @return Response The Response |
|
| 576 | */ |
|
| 577 | public function getPin($pinId) |
|
| 578 | { |
|
| 579 | if (empty($pinId)) { |
|
| 580 | throw new InvalidArgumentException('The pin id should not be empty.'); |
|
| 581 | } |
|
| 582 | ||
| 583 | $endpoint = sprintf('pins/%s/', $pinId); |
|
| 584 | $request = new Request('GET', $endpoint); |
|
| 585 | ||
| 586 | return $this->fetchPin($request); |
|
| 587 | } |
|
| 588 | ||
| 589 | /** |
|
| 590 | * Update a pin. |
|