@@ 799-806 (lines=8) @@ | ||
796 | * @return \stdClass |
|
797 | * @throws TwitchException |
|
798 | */ |
|
799 | public function authChannelGet($token) |
|
800 | { |
|
801 | $this->checkConfig(); |
|
802 | $queryString = $this->getAuthString($token); |
|
803 | $channels = new Methods\Channel($this->request); |
|
804 | ||
805 | return $channels->getChannel($queryString); |
|
806 | } |
|
807 | ||
808 | /** |
|
809 | * Update channel's status or game |
|
@@ 843-850 (lines=8) @@ | ||
840 | * @return \stdClass |
|
841 | * @throws TwitchException |
|
842 | */ |
|
843 | public function authChannelResetKey($token, $channelName) |
|
844 | { |
|
845 | $this->checkConfig(); |
|
846 | $queryString = $this->getAuthString($token); |
|
847 | $channel = new Methods\Channel($this->request); |
|
848 | ||
849 | return $channel->resetStreamKey($channelName, $queryString); |
|
850 | } |
|
851 | ||
852 | /** |
|
853 | * Returns an array of users who are editors of specified channel |
|
@@ 860-867 (lines=8) @@ | ||
857 | * @return \stdClass |
|
858 | * @throws TwitchException |
|
859 | */ |
|
860 | public function authChannelEditors($token, $channel) |
|
861 | { |
|
862 | $this->checkConfig(); |
|
863 | $queryString = $this->getAuthString($token); |
|
864 | $channels = new Methods\Channel($this->request); |
|
865 | ||
866 | return $channels->getEditors($channel, $queryString); |
|
867 | } |
|
868 | ||
869 | /** |
|
870 | * Returns an array of subscriptions who are subscribed to specified channel |