@@ 876-883 (lines=8) @@ | ||
873 | * @return \stdClass |
|
874 | * @throws TwitchException |
|
875 | */ |
|
876 | public function authSubscribedUser($token, $channel, $user) |
|
877 | { |
|
878 | $this->checkConfig(); |
|
879 | $queryString = $this->getAuthString($token); |
|
880 | $subscription = new Methods\Subscription($this->request); |
|
881 | ||
882 | return $subscription->getSubscribedUser($channel, $user, $queryString); |
|
883 | } |
|
884 | ||
885 | /** |
|
886 | * Returns a channel object that user subscribes to |
|
@@ 894-901 (lines=8) @@ | ||
891 | * @return \stdClass |
|
892 | * @throws TwitchException |
|
893 | */ |
|
894 | public function authSubscribedToChannel($token, $user, $channel) |
|
895 | { |
|
896 | $this->checkConfig(); |
|
897 | $queryString = $this->getAuthString($token); |
|
898 | $subscription = new Methods\Subscription($this->request); |
|
899 | ||
900 | return $subscription->getSubscribedToChannel($user, $channel, $queryString); |
|
901 | } |
|
902 | ||
903 | /** |
|
904 | * List the live streams that the authenticated user is following |