| @@ 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 |
|
| @@ 253-263 (lines=11) @@ | ||
| 250 | * |
|
| 251 | * @since 0.1.0 |
|
| 252 | */ |
|
| 253 | public function removeSubscriber ($user_id) |
|
| 254 | { |
|
| 255 | if ($user_id instanceof PulseUser) |
|
| 256 | { |
|
| 257 | $user_id = $user_id->getId(); |
|
| 258 | } |
|
| 259 | ||
| 260 | $url = sprintf("%s/%d/subscribers/%d.json", self::apiEndpoint(), $this->getId(), $user_id); |
|
| 261 | ||
| 262 | self::sendDelete($url); |
|
| 263 | } |
|
| 264 | ||
| 265 | // ================================================================================================================= |
|
| 266 | // Columns functions |
|