| @@ 676-686 (lines=11) @@ | ||
| 673 | * |
|
| 674 | * @return Response The response |
|
| 675 | */ |
|
| 676 | public function getBoardPins($boardId) |
|
| 677 | { |
|
| 678 | if (empty($boardId)) { |
|
| 679 | throw new InvalidArgumentException('The board id should not be empty.'); |
|
| 680 | } |
|
| 681 | ||
| 682 | $endpoint = sprintf('boards/%s/pins/', $boardId); |
|
| 683 | $request = new Request('GET', $endpoint); |
|
| 684 | ||
| 685 | return $this->fetchMultiplePins($request); |
|
| 686 | } |
|
| 687 | ||
| 688 | /** |
|
| 689 | * Get a single pin. |
|
| @@ 697-707 (lines=11) @@ | ||
| 694 | * |
|
| 695 | * @return Response The Response |
|
| 696 | */ |
|
| 697 | public function getPin($pinId) |
|
| 698 | { |
|
| 699 | if (empty($pinId)) { |
|
| 700 | throw new InvalidArgumentException('The pin id should not be empty.'); |
|
| 701 | } |
|
| 702 | ||
| 703 | $endpoint = sprintf('pins/%s/', $pinId); |
|
| 704 | $request = new Request('GET', $endpoint); |
|
| 705 | ||
| 706 | return $this->fetchPin($request); |
|
| 707 | } |
|
| 708 | ||
| 709 | /** |
|
| 710 | * Update a pin. |
|