src/Resources/Streams.php
public function getStreams($params = [])
  {
      $defaults = [
          'game'        => null,
          'channel'     => null,
          'limit'       => 25,
          'offset'      => 0,
          'client_id'   => null,
          'stream_type' => 'all',
      ];

      $types = [
          'stream_type' => ['all', 'playlist', 'live'],
      ];

      return $this->wrapper->request('GET', 'streams', ['query' => $this->resolveOptions($params, $defaults, [], $types)]);
  }
public function getStreams($params = [])
  {
      $defaults = [
          'game'        => null,
          'channel'     => null,
          'limit'       => 25,
          'offset'      => 0,
          'client_id'   => null,
          'stream_type' => 'all',
      ];

      $types = [
          'stream_type' => ['all', 'playlist', 'live'],
      ];

      return $this->wrapper->request('GET', 'streams', ['query' => $this->resolveOptions($params, $defaults, [], $types)]);
  }
public function getStreams ( $ params = [ ] ) { $ defaults = [ 'game' => null , 'channel' => null , 'limit' => 25 , 'offset' => 0 , 'client_id' => null , 'stream_type' => 'all' , ] ; $ types = [ 'stream_type' => [ 'all' , 'playlist' , 'live' ] , ] ; return $ this -> wrapper -> request ( 'GET' , 'streams' , [ 'query' => $ this -> resolveOptions ( $ params , $ defaults , [ ] , $ types ) ] ) ; }
Returns a list of stream objects that are queried by a number
of parameters sorted by number of viewers descending.

Learn more:
https://github.com/justintv/Twitch-API/blob/master/v3_resources/streams.md#get-streams

@param  array $params Optional params

@return array
Returns a list of stream objects that are queried by a number of parameters sorted by number of viewers descending .