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