|
@@ 866-873 (lines=8) @@
|
| 863 |
|
* @return \stdClass |
| 864 |
|
* @throws TwitchException |
| 865 |
|
*/ |
| 866 |
|
public function authSubscribedUser($token, $channel, $user) |
| 867 |
|
{ |
| 868 |
|
$this->checkConfig(); |
| 869 |
|
$queryString = $this->getAuthString($token); |
| 870 |
|
$subscription = new Methods\Subscription($this->request); |
| 871 |
|
|
| 872 |
|
return $subscription->getSubscribedUser($channel, $user, $queryString); |
| 873 |
|
} |
| 874 |
|
|
| 875 |
|
/** |
| 876 |
|
* Returns a channel object that user subscribes to |
|
@@ 884-891 (lines=8) @@
|
| 881 |
|
* @return \stdClass |
| 882 |
|
* @throws TwitchException |
| 883 |
|
*/ |
| 884 |
|
public function authSubscribedToChannel($token, $user, $channel) |
| 885 |
|
{ |
| 886 |
|
$this->checkConfig(); |
| 887 |
|
$queryString = $this->getAuthString($token); |
| 888 |
|
$subscription = new Methods\Subscription($this->request); |
| 889 |
|
|
| 890 |
|
return $subscription->getSubscribedToChannel($user, $channel, $queryString); |
| 891 |
|
} |
| 892 |
|
|
| 893 |
|
/** |
| 894 |
|
* List the live streams that the authenticated user is following |