|
@@ 811-820 (lines=10) @@
|
| 808 |
|
* @return \stdClass |
| 809 |
|
* @throws TwitchException |
| 810 |
|
*/ |
| 811 |
|
public function authSubscribedUser($token, $channel, $user) |
| 812 |
|
{ |
| 813 |
|
$this->checkConfig(); |
| 814 |
|
|
| 815 |
|
$queryString = $this->getAuthString($token); |
| 816 |
|
|
| 817 |
|
$subscription = new Methods\Subscription($this->request); |
| 818 |
|
|
| 819 |
|
return $subscription->getSubscribedUser($channel, $user, $queryString); |
| 820 |
|
} |
| 821 |
|
|
| 822 |
|
/** |
| 823 |
|
* Returns a channel object that user subscribes to |
|
@@ 831-840 (lines=10) @@
|
| 828 |
|
* @return \stdClass |
| 829 |
|
* @throws TwitchException |
| 830 |
|
*/ |
| 831 |
|
public function authSubscribedToChannel($token, $user, $channel) |
| 832 |
|
{ |
| 833 |
|
$this->checkConfig(); |
| 834 |
|
|
| 835 |
|
$queryString = $this->getAuthString($token); |
| 836 |
|
|
| 837 |
|
$subscription = new Methods\Subscription($this->request); |
| 838 |
|
|
| 839 |
|
return $subscription->getSubscribedToChannel($user, $channel, $queryString); |
| 840 |
|
} |
| 841 |
|
|
| 842 |
|
/** |
| 843 |
|
* List the live streams that the authenticated user is following |