From d5858e2ef8f382b9e53308301ff7c7df3bf4b745 Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Wed, 3 May 2023 01:36:38 -0700 Subject: enable unfiltered stream listing --- src/twitcr/rest.cr | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/twitcr/rest.cr b/src/twitcr/rest.cr index 5286aeb..1be3190 100644 --- a/src/twitcr/rest.cr +++ b/src/twitcr/rest.cr @@ -123,6 +123,7 @@ module Twitcr::REST def get_streams( user_ids : Array( UInt64 ) ); request( "GET", Api::Helix, "/streams?user_id=#{user_ids.join( "&user_id=" )}" ) end def get_streams( user_id : UInt64 ); request( "GET", Api::Helix, "/streams?user_id=#{user_id}" ) end def get_streams( game_id : UInt64 ); request( "GET", Api::Helix, "/streams?first=100&game_id=#{game_id}" ) end + def get_streams(); request( "GET", Api::Helix, "/streams?first=100" ) end # Kraken returns more information def get_streams_v5( game : String ); request( "GET", Api::Kraken, "/streams?limit=100&game=#{URI.encode_www_form( game )}" ) end def get_streams_v5( *, channel : ( Array( UInt64 ) | UInt64 | Nil ) = nil, game : String? = nil, language : String? = nil, stream_type : String? = nil ); -- cgit v1.2.3