From a4b6e747d353ce23e82d28e6a91f45623b4ef3b2 Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Wed, 3 Aug 2022 06:01:21 -0700 Subject: Update to new helix/users/follows system, switch to new config directory --- 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 ae958a7..5286aeb 100644 --- a/src/twitcr/rest.cr +++ b/src/twitcr/rest.cr @@ -166,6 +166,7 @@ module Twitcr::REST def get_videos( id : UInt64, sort : String = "time", type : String = "all" ); request( "GET", Api::Helix, "/videos?user_id=#{id.to_s}&first=100&sort=#{sort}&type=#{type}" ) end def get_channels_videos( id : UInt64, sort : String = "time", type : String = "all" ); request( "GET", Api::Kraken, "/channels/#{id.to_s}/videos?limit=100&sort=#{sort}&broadcast_type=#{type}" ) end #def get_channel( ); request( "GET", Api::Kraken, "/channel" ) end + def get_channel( ids : Array( UInt64 ) ); request( "GET", Api::Helix, "/channels/?broadcaster_id=#{ids.join( "&broadcaster_id=" )}" ) end def get_channel( id : UInt64 ); request( "GET", Api::Helix, "/channels/?broadcaster_id=#{id.to_s}" ) end def put_channel!( id : UInt64, *, delay : String? = nil, game : String? = nil, title : String? = nil, lang : String? = nil ); #body = Hash( String, Hash( String, String ) ).new -- cgit v1.2.3