summaryrefslogtreecommitdiff
path: root/src/twitcr/rest.cr
diff options
context:
space:
mode:
Diffstat (limited to 'src/twitcr/rest.cr')
-rw-r--r--src/twitcr/rest.cr1
1 files changed, 1 insertions, 0 deletions
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