@@ 178-190 (lines=13) @@ | ||
175 | * @return \stdClass |
|
176 | * @throws TwitchSDKException |
|
177 | */ |
|
178 | public function authUserFollowChannel($user, $channel, $userToken, $notifications = false) |
|
179 | { |
|
180 | $this->checkConfig(); |
|
181 | ||
182 | $queryString = $this->helper->buildQueryString(array( |
|
183 | 'oauth_token' => $userToken, |
|
184 | 'notifications' => $notifications, |
|
185 | )); |
|
186 | ||
187 | $follow = new Methods\Follow($this->request); |
|
188 | ||
189 | return $follow->followChannel($user, $channel, $queryString); |
|
190 | } |
|
191 | ||
192 | /** |
|
193 | * Set user to unfollow given channel |
|
@@ 201-212 (lines=12) @@ | ||
198 | * @return \stdClass |
|
199 | * @throws TwitchSDKException |
|
200 | */ |
|
201 | public function authUserUnfollowChannel($user, $channel, $userToken) |
|
202 | { |
|
203 | $this->checkConfig(); |
|
204 | ||
205 | $queryString = $this->helper->buildQueryString(array( |
|
206 | 'oauth_token' => $userToken, |
|
207 | )); |
|
208 | ||
209 | $follow = new Methods\Follow($this->request); |
|
210 | ||
211 | return $follow->unfollowChannel($user, $channel, $queryString); |
|
212 | } |
|
213 | ||
214 | /** |
|
215 | * Get the specified channel |