|
@@ 697-706 (lines=10) @@
|
| 694 |
|
* @return \stdClass |
| 695 |
|
* @throws TwitchException |
| 696 |
|
*/ |
| 697 |
|
public function authChannelGet($token) |
| 698 |
|
{ |
| 699 |
|
$this->checkConfig(); |
| 700 |
|
|
| 701 |
|
$queryString = $this->getAuthString($token); |
| 702 |
|
|
| 703 |
|
$channels = new Methods\Channel($this->request); |
| 704 |
|
|
| 705 |
|
return $channels->getChannel($queryString); |
| 706 |
|
} |
| 707 |
|
|
| 708 |
|
/** |
| 709 |
|
* Update channel's status or game |
|
@@ 744-753 (lines=10) @@
|
| 741 |
|
* @return \stdClass |
| 742 |
|
* @throws TwitchException |
| 743 |
|
*/ |
| 744 |
|
public function authChannelResetKey($token, $channelName) |
| 745 |
|
{ |
| 746 |
|
$this->checkConfig(); |
| 747 |
|
|
| 748 |
|
$queryString = $this->getAuthString($token); |
| 749 |
|
|
| 750 |
|
$channel = new Methods\Channel($this->request); |
| 751 |
|
|
| 752 |
|
return $channel->resetStreamKey($channelName, $queryString); |
| 753 |
|
} |
| 754 |
|
|
| 755 |
|
/** |
| 756 |
|
* Returns an array of users who are editors of specified channel |
|
@@ 763-772 (lines=10) @@
|
| 760 |
|
* @return \stdClass |
| 761 |
|
* @throws TwitchException |
| 762 |
|
*/ |
| 763 |
|
public function authChannelEditors($token, $channel) |
| 764 |
|
{ |
| 765 |
|
$this->checkConfig(); |
| 766 |
|
|
| 767 |
|
$queryString = $this->getAuthString($token); |
| 768 |
|
|
| 769 |
|
$channels = new Methods\Channel($this->request); |
| 770 |
|
|
| 771 |
|
return $channels->getEditors($channel, $queryString); |
| 772 |
|
} |
| 773 |
|
|
| 774 |
|
/** |
| 775 |
|
* Returns an array of subscriptions who are subscribed to specified channel |