@@ 765-772 (lines=8) @@ | ||
762 | * @return \stdClass |
|
763 | * @throws TwitchException |
|
764 | */ |
|
765 | public function blockTarget($token, $user, $target) |
|
766 | { |
|
767 | $this->checkConfig(); |
|
768 | $queryString = $this->getAuthString($token); |
|
769 | $block = new Methods\Block($this->request); |
|
770 | ||
771 | return $block->blockTarget($user, $target, $queryString); |
|
772 | } |
|
773 | ||
774 | /** |
|
775 | * Removes $target from $user block list |
|
@@ 783-790 (lines=8) @@ | ||
780 | * @return \stdClass |
|
781 | * @throws TwitchException |
|
782 | */ |
|
783 | public function removeTarget($token, $user, $target) |
|
784 | { |
|
785 | $this->checkConfig(); |
|
786 | $queryString = $this->getAuthString($token); |
|
787 | $block = new Methods\Block($this->request); |
|
788 | ||
789 | return $block->removeTarget($user, $target, $queryString); |
|
790 | } |
|
791 | ||
792 | /** |
|
793 | * Get the authenticated channel |