|
@@ 725-734 (lines=10) @@
|
| 722 |
|
* @return \stdClass |
| 723 |
|
* @throws TwitchException |
| 724 |
|
*/ |
| 725 |
|
public function blockTarget($token, $user, $target) |
| 726 |
|
{ |
| 727 |
|
$this->checkConfig(); |
| 728 |
|
|
| 729 |
|
$queryString = $this->getAuthString($token); |
| 730 |
|
|
| 731 |
|
$block = new Methods\Block($this->request); |
| 732 |
|
|
| 733 |
|
return $block->blockTarget($user, $target, $queryString); |
| 734 |
|
} |
| 735 |
|
|
| 736 |
|
/** |
| 737 |
|
* Removes $target from $user block list |
|
@@ 745-754 (lines=10) @@
|
| 742 |
|
* @return \stdClass |
| 743 |
|
* @throws TwitchException |
| 744 |
|
*/ |
| 745 |
|
public function removeTarget($token, $user, $target) |
| 746 |
|
{ |
| 747 |
|
$this->checkConfig(); |
| 748 |
|
|
| 749 |
|
$queryString = $this->getAuthString($token); |
| 750 |
|
|
| 751 |
|
$block = new Methods\Block($this->request); |
| 752 |
|
|
| 753 |
|
return $block->removeTarget($user, $target, $queryString); |
| 754 |
|
} |
| 755 |
|
|
| 756 |
|
/** |
| 757 |
|
* Get the authenticated channel |