@@ 856-871 (lines=16) @@ | ||
853 | * @return \stdClass |
|
854 | * @throws TwitchSDKException |
|
855 | */ |
|
856 | public function authChannelSubscriptions($token, $channel, $limit = 25, $offset = 0, $direction = 'DESC') |
|
857 | { |
|
858 | $this->checkConfig(); |
|
859 | ||
860 | $queryString = $this->helper->buildQueryString(array( |
|
861 | 'oauth_token' => $token, |
|
862 | 'client_id' => $this->getConfigParam('client_id'), |
|
863 | 'direction' => $direction, |
|
864 | 'limit' => $limit, |
|
865 | 'offset' => $offset |
|
866 | )); |
|
867 | ||
868 | $subscription = new Methods\Subscription($this->request); |
|
869 | ||
870 | return $subscription->getSubscriptions($channel, $queryString); |
|
871 | } |
|
872 | ||
873 | /** |
|
874 | * Returns user object if that user is subscribed |
|
@@ 919-934 (lines=16) @@ | ||
916 | * @return \stdClass |
|
917 | * @throws TwitchSDKException |
|
918 | */ |
|
919 | public function authStreamsFollowed($token, $limit = 25, $offset = 0, $hls = null) |
|
920 | { |
|
921 | $this->checkConfig(); |
|
922 | ||
923 | $queryString = $this->helper->buildQueryString(array( |
|
924 | 'oauth_token' => $token, |
|
925 | 'client_id' => $this->getConfigParam('client_id'), |
|
926 | 'limit' => $limit, |
|
927 | 'offset' => $offset, |
|
928 | 'hls' => $hls, |
|
929 | )); |
|
930 | ||
931 | $user = new Methods\User($this->request); |
|
932 | ||
933 | return $user->getFollowedStreams($queryString); |
|
934 | } |
|
935 | ||
936 | /** |
|
937 | * Get streams helper |