|
@@ 741-748 (lines=8) @@
|
| 738 |
|
* @return \stdClass |
| 739 |
|
* @throws TwitchSDKException |
| 740 |
|
*/ |
| 741 |
|
public function authBlockTarget($token, $user, $target) |
| 742 |
|
{ |
| 743 |
|
$this->checkConfig(); |
| 744 |
|
$queryString = $this->getAuthString($token); |
| 745 |
|
$block = new Methods\Block($this->request); |
| 746 |
|
|
| 747 |
|
return $block->blockTarget($user, $target, $queryString); |
| 748 |
|
} |
| 749 |
|
|
| 750 |
|
/** |
| 751 |
|
* Removes $target from $user block list |
|
@@ 759-766 (lines=8) @@
|
| 756 |
|
* @return \stdClass |
| 757 |
|
* @throws TwitchSDKException |
| 758 |
|
*/ |
| 759 |
|
public function authRemoveTarget($token, $user, $target) |
| 760 |
|
{ |
| 761 |
|
$this->checkConfig(); |
| 762 |
|
$queryString = $this->getAuthString($token); |
| 763 |
|
$block = new Methods\Block($this->request); |
| 764 |
|
|
| 765 |
|
return $block->removeTarget($user, $target, $queryString); |
| 766 |
|
} |
| 767 |
|
|
| 768 |
|
/** |
| 769 |
|
* Get the authenticated channel |