@@ 56-62 (lines=7) @@ | ||
53 | * @throws Exceptions/PinterestExceptions |
|
54 | * @return Board |
|
55 | */ |
|
56 | public function edit($board_id, array $data, $fields = null) |
|
57 | { |
|
58 | $query = (!$fields) ? array() : array("fields" => $fields); |
|
59 | ||
60 | $response = $this->request->update(sprintf("boards/%s/", $board_id), $data, $query); |
|
61 | return new Board($this->master, $response); |
|
62 | } |
|
63 | ||
64 | /** |
|
65 | * Delete a board |
@@ 80-86 (lines=7) @@ | ||
77 | * @throws \DirkGroenen\Pinterest\Exceptions\PinterestException |
|
78 | * @return Pin |
|
79 | */ |
|
80 | public function edit($pin_id, array $data, $fields = null) |
|
81 | { |
|
82 | $query = (!$fields) ? array() : array("fields" => $fields); |
|
83 | ||
84 | $response = $this->request->update(sprintf("pins/%s/", $pin_id), $data, $query); |
|
85 | return new Pin($this->master, $response); |
|
86 | } |
|
87 | ||
88 | /** |
|
89 | * Delete a pin |