@@ 160-168 (lines=9) @@ | ||
157 | * @param integer |
|
158 | * @return stdClass |
|
159 | */ |
|
160 | public function userFollowChannels($user, $limit = null, $offset = null) |
|
161 | { |
|
162 | $query_string = $this->buildQueryString(array( |
|
163 | 'limit' => $limit, |
|
164 | 'offset' => $offset, |
|
165 | )); |
|
166 | ||
167 | return $this->request(sprintf(self::URI_USER_FOLLOWS_CHANNEL, $user) . $query_string); |
|
168 | } |
|
169 | ||
170 | /** |
|
171 | * Get the status of a follow relationship |
|
@@ 248-256 (lines=9) @@ | ||
245 | * @param integer |
|
246 | * @return stdClass |
|
247 | */ |
|
248 | public function channelFollows($channel, $limit = null, $offset = null) |
|
249 | { |
|
250 | $query_string = $this->buildQueryString(array( |
|
251 | 'limit' => $limit, |
|
252 | 'offset' => $offset, |
|
253 | )); |
|
254 | ||
255 | return $this->request(sprintf(self::URI_CHANNEL_FOLLOWS, $channel) . $query_string); |
|
256 | } |
|
257 | ||
258 | /** |
|
259 | * Get the specified channel's stream |
|
@@ 275-284 (lines=10) @@ | ||
272 | * @param integer |
|
273 | * @return stdClass |
|
274 | */ |
|
275 | public function streamSearch($query, $limit = null, $offset = null) |
|
276 | { |
|
277 | $query_string = $this->buildQueryString(array( |
|
278 | 'query' => $query, |
|
279 | 'limit' => $limit, |
|
280 | 'offset' => $offset, |
|
281 | )); |
|
282 | ||
283 | return $this->request(self::URI_STREAMS_SEARCH . $query_string); |
|
284 | } |
|
285 | ||
286 | /** |
|
287 | * Search games |
|
@@ 293-302 (lines=10) @@ | ||
290 | * @param integer |
|
291 | * @return stdClass |
|
292 | */ |
|
293 | public function gamesSearch($query, $live = true) |
|
294 | { |
|
295 | $query_string = $this->buildQueryString(array( |
|
296 | 'query' => $query, |
|
297 | 'type' => "suggest", |
|
298 | 'live' => $live, |
|
299 | )); |
|
300 | ||
301 | return $this->request(self::URI_GAMES_SEARCH . $query_string); |
|
302 | } |
|
303 | ||
304 | /** |
|
305 | * Summarize streams |
|
@@ 333-342 (lines=10) @@ | ||
330 | * @param boolean |
|
331 | * @return stdClass |
|
332 | */ |
|
333 | public function streamsFeatured($limit = null, $offset = null, $hls = null) |
|
334 | { |
|
335 | $query_string = $this->buildQueryString(array( |
|
336 | 'limit' => $limit, |
|
337 | 'offset' => $offset, |
|
338 | 'hls' => $hls, |
|
339 | )); |
|
340 | ||
341 | return $this->request(self::URI_STREAMS_FEATURED . $query_string); |
|
342 | } |
|
343 | ||
344 | /** |
|
345 | * Get streams by channel |
|
@@ 426-434 (lines=9) @@ | ||
423 | * @param integer |
|
424 | * @return stdClass |
|
425 | */ |
|
426 | public function gamesTop($limit = null, $offset = null) |
|
427 | { |
|
428 | $query_string = $this->buildQueryString(array( |
|
429 | 'limit' => $limit, |
|
430 | 'offset' => $offset, |
|
431 | )); |
|
432 | ||
433 | return $this->request(self::URI_GAMES_TOP . $query_string); |
|
434 | } |
|
435 | ||
436 | /** |
|
437 | * Get HTML code for stream embedding |