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