| @@ 133-141 (lines=9) @@ | ||
| 130 | * @return \stdClass |
|
| 131 | * @throws TwitchException |
|
| 132 | */ |
|
| 133 | public function userFollowChannels($user, $limit = null, $offset = null) |
|
| 134 | { |
|
| 135 | $queryString = $this->helper->buildQueryString(array( |
|
| 136 | 'limit' => $limit, |
|
| 137 | 'offset' => $offset, |
|
| 138 | )); |
|
| 139 | ||
| 140 | return $this->request->request(sprintf(self::URI_USER_FOLLOWS_CHANNEL, $user) . $queryString); |
|
| 141 | } |
|
| 142 | ||
| 143 | /** |
|
| 144 | * Get the status of a follow relationship |
|
| @@ 230-238 (lines=9) @@ | ||
| 227 | * @return \stdClass |
|
| 228 | * @throws TwitchException |
|
| 229 | */ |
|
| 230 | public function channelFollows($channel, $limit = null, $offset = null) |
|
| 231 | { |
|
| 232 | $queryString = $this->helper->buildQueryString(array( |
|
| 233 | 'limit' => $limit, |
|
| 234 | 'offset' => $offset, |
|
| 235 | )); |
|
| 236 | ||
| 237 | return $this->request->request(sprintf(self::URI_CHANNEL_FOLLOWS, $channel) . $queryString); |
|
| 238 | } |
|
| 239 | ||
| 240 | /** |
|
| 241 | * Get the specified channel's stream |
|
| @@ 259-268 (lines=10) @@ | ||
| 256 | * @return \stdClass |
|
| 257 | * @throws TwitchException |
|
| 258 | */ |
|
| 259 | public function streamSearch($query, $limit = null, $offset = null) |
|
| 260 | { |
|
| 261 | $queryString = $this->helper->buildQueryString(array( |
|
| 262 | 'query' => $query, |
|
| 263 | 'limit' => $limit, |
|
| 264 | 'offset' => $offset, |
|
| 265 | )); |
|
| 266 | ||
| 267 | return $this->request->request(self::URI_STREAMS_SEARCH . $queryString); |
|
| 268 | } |
|
| 269 | ||
| 270 | /** |
|
| 271 | * Summarize streams |
|
| @@ 301-310 (lines=10) @@ | ||
| 298 | * @return \stdClass |
|
| 299 | * @throws TwitchException |
|
| 300 | */ |
|
| 301 | public function streamsFeatured($limit = null, $offset = null, $hls = null) |
|
| 302 | { |
|
| 303 | $queryString = $this->helper->buildQueryString(array( |
|
| 304 | 'limit' => $limit, |
|
| 305 | 'offset' => $offset, |
|
| 306 | 'hls' => $hls, |
|
| 307 | )); |
|
| 308 | ||
| 309 | return $this->request->request(self::URI_STREAMS_FEATURED . $queryString); |
|
| 310 | } |
|
| 311 | ||
| 312 | /** |
|
| 313 | * Get streams by channel |
|
| @@ 399-407 (lines=9) @@ | ||
| 396 | * @return \stdClass |
|
| 397 | * @throws TwitchException |
|
| 398 | */ |
|
| 399 | public function gamesTop($limit = null, $offset = null) |
|
| 400 | { |
|
| 401 | $queryString = $this->helper->buildQueryString(array( |
|
| 402 | 'limit' => $limit, |
|
| 403 | 'offset' => $offset, |
|
| 404 | )); |
|
| 405 | ||
| 406 | return $this->request->request(self::URI_GAMES_TOP . $queryString); |
|
| 407 | } |
|
| 408 | ||
| 409 | /** |
|
| 410 | * Get HTML code for stream embedding |
|