@@ 188-195 (lines=8) @@ | ||
185 | * @param string |
|
186 | * @return stdClass |
|
187 | */ |
|
188 | public function userFollowChannel($user, $channel, $userToken) |
|
189 | { |
|
190 | $query_string = $this->buildQueryString(array( |
|
191 | 'oauth_token' => $userToken, |
|
192 | )); |
|
193 | ||
194 | return $this->request(sprintf(self::URI_USER_FOLLOW_RELATION, $user, $channel) . $query_string, 'PUT'); |
|
195 | } |
|
196 | ||
197 | /** |
|
198 | * Set user to unfollow given channel |
|
@@ 204-211 (lines=8) @@ | ||
201 | * @param string |
|
202 | * @return stdClass |
|
203 | */ |
|
204 | public function userUnfollowChannel($user, $channel, $userToken) |
|
205 | { |
|
206 | $query_string = $this->buildQueryString(array( |
|
207 | 'oauth_token' => $userToken, |
|
208 | )); |
|
209 | ||
210 | return $this->request(sprintf(self::URI_USER_FOLLOW_RELATION, $user, $channel) . $query_string, 'DELETE'); |
|
211 | } |
|
212 | ||
213 | /** |
|
214 | * Get the specified channel |