|
@@ 880-895 (lines=16) @@
|
| 877 |
|
* @return \stdClass |
| 878 |
|
* @throws TwitchException |
| 879 |
|
*/ |
| 880 |
|
public function authChannelSubscriptions($token, $channel, $limit = 25, $offset = 0, $direction = 'DESC') |
| 881 |
|
{ |
| 882 |
|
$this->checkConfig(); |
| 883 |
|
|
| 884 |
|
$queryString = $this->helper->buildQueryString(array( |
| 885 |
|
'oauth_token' => $token, |
| 886 |
|
'client_id' => $this->getConfigParam('client_id'), |
| 887 |
|
'direction' => $direction, |
| 888 |
|
'limit' => $limit, |
| 889 |
|
'offset' => $offset |
| 890 |
|
)); |
| 891 |
|
|
| 892 |
|
$subscription = new Methods\Subscription($this->request); |
| 893 |
|
|
| 894 |
|
return $subscription->getSubscriptions($channel, $queryString); |
| 895 |
|
} |
| 896 |
|
|
| 897 |
|
/** |
| 898 |
|
* Returns user object if that user is subscribed |
|
@@ 943-958 (lines=16) @@
|
| 940 |
|
* @return \stdClass |
| 941 |
|
* @throws TwitchException |
| 942 |
|
*/ |
| 943 |
|
public function authStreamsFollowed($token, $limit = 25, $offset = 0, $hls = null) |
| 944 |
|
{ |
| 945 |
|
$this->checkConfig(); |
| 946 |
|
|
| 947 |
|
$queryString = $this->helper->buildQueryString(array( |
| 948 |
|
'oauth_token' => $token, |
| 949 |
|
'client_id' => $this->getConfigParam('client_id'), |
| 950 |
|
'limit' => $limit, |
| 951 |
|
'offset' => $offset, |
| 952 |
|
'hls' => $hls, |
| 953 |
|
)); |
| 954 |
|
|
| 955 |
|
$user = new Methods\User($this->request); |
| 956 |
|
|
| 957 |
|
return $user->getFollowedStreams($queryString); |
| 958 |
|
} |
| 959 |
|
|
| 960 |
|
/** |
| 961 |
|
* Get streams helper |