@@ 556-566 (lines=11) @@ | ||
553 | * |
|
554 | * @throws HttpException Removing a user failed; access the exception for more information. |
|
555 | */ |
|
556 | public function removeSubscriber ($user_id) |
|
557 | { |
|
558 | if ($user_id instanceof PulseUser) |
|
559 | { |
|
560 | $user_id = $user_id->getId(); |
|
561 | } |
|
562 | ||
563 | $url = sprintf("%s/%d/subscribers/%d.json", parent::apiEndpoint(), $this->getId(), $user_id); |
|
564 | ||
565 | parent::sendDelete($url); |
|
566 | } |
|
567 | ||
568 | // ================================================================================================================ |
|
569 | // Notes functions |
@@ 243-253 (lines=11) @@ | ||
240 | * |
|
241 | * @param int|PulseUser $user_id The user that will be unsubscribed from the board |
|
242 | */ |
|
243 | public function removeSubscriber ($user_id) |
|
244 | { |
|
245 | if ($user_id instanceof PulseUser) |
|
246 | { |
|
247 | $user_id = $user_id->getId(); |
|
248 | } |
|
249 | ||
250 | $url = sprintf("%s/%d/subscribers/%d.json", parent::apiEndpoint(), $this->getId(), $user_id); |
|
251 | ||
252 | parent::sendDelete($url); |
|
253 | } |
|
254 | ||
255 | // ================================================================================================================ |
|
256 | // Columns functions |