|
@@ 766-773 (lines=8) @@
|
| 763 |
|
* @return \stdClass |
| 764 |
|
* @throws TwitchException |
| 765 |
|
*/ |
| 766 |
|
public function authChannelGet($token) |
| 767 |
|
{ |
| 768 |
|
$this->checkConfig(); |
| 769 |
|
$queryString = $this->getAuthString($token); |
| 770 |
|
$channels = new Methods\Channel($this->request); |
| 771 |
|
|
| 772 |
|
return $channels->getChannel($queryString); |
| 773 |
|
} |
| 774 |
|
|
| 775 |
|
/** |
| 776 |
|
* Update channel's status or game |
|
@@ 810-817 (lines=8) @@
|
| 807 |
|
* @return \stdClass |
| 808 |
|
* @throws TwitchException |
| 809 |
|
*/ |
| 810 |
|
public function authChannelResetKey($token, $channelName) |
| 811 |
|
{ |
| 812 |
|
$this->checkConfig(); |
| 813 |
|
$queryString = $this->getAuthString($token); |
| 814 |
|
$channel = new Methods\Channel($this->request); |
| 815 |
|
|
| 816 |
|
return $channel->resetStreamKey($channelName, $queryString); |
| 817 |
|
} |
| 818 |
|
|
| 819 |
|
/** |
| 820 |
|
* Returns an array of users who are editors of specified channel |
|
@@ 827-834 (lines=8) @@
|
| 824 |
|
* @return \stdClass |
| 825 |
|
* @throws TwitchException |
| 826 |
|
*/ |
| 827 |
|
public function authChannelEditors($token, $channel) |
| 828 |
|
{ |
| 829 |
|
$this->checkConfig(); |
| 830 |
|
$queryString = $this->getAuthString($token); |
| 831 |
|
$channels = new Methods\Channel($this->request); |
| 832 |
|
|
| 833 |
|
return $channels->getEditors($channel, $queryString); |
| 834 |
|
} |
| 835 |
|
|
| 836 |
|
/** |
| 837 |
|
* Returns an array of subscriptions who are subscribed to specified channel |