@@ 172-184 (lines=13) @@ | ||
169 | * @return \stdClass |
|
170 | * @throws TwitchException |
|
171 | */ |
|
172 | public function authUserFollowChannel($user, $channel, $userToken, $notifications = false) |
|
173 | { |
|
174 | $this->checkConfig(); |
|
175 | ||
176 | $queryString = $this->helper->buildQueryString(array( |
|
177 | 'oauth_token' => $userToken, |
|
178 | 'notifications' => $notifications, |
|
179 | )); |
|
180 | ||
181 | $follow = new Methods\Follow($this->request); |
|
182 | ||
183 | return $follow->followChannel($user, $channel, $queryString); |
|
184 | } |
|
185 | ||
186 | /** |
|
187 | * Set user to unfollow given channel |
|
@@ 195-206 (lines=12) @@ | ||
192 | * @return \stdClass |
|
193 | * @throws TwitchException |
|
194 | */ |
|
195 | public function authUserUnfollowChannel($user, $channel, $userToken) |
|
196 | { |
|
197 | $this->checkConfig(); |
|
198 | ||
199 | $queryString = $this->helper->buildQueryString(array( |
|
200 | 'oauth_token' => $userToken, |
|
201 | )); |
|
202 | ||
203 | $follow = new Methods\Follow($this->request); |
|
204 | ||
205 | return $follow->unfollowChannel($user, $channel, $queryString); |
|
206 | } |
|
207 | ||
208 | /** |
|
209 | * Get the specified channel |