diff options
author | Joe Rayhawk <jrayhawk@action.fairlystable.org> | 2022-08-03 06:01:21 -0700 |
---|---|---|
committer | Joe Rayhawk <jrayhawk@action.fairlystable.org> | 2022-08-03 06:01:21 -0700 |
commit | a4b6e747d353ce23e82d28e6a91f45623b4ef3b2 (patch) | |
tree | 2c77b59e8c00c03db6cc4d48c4400bc3c697002f /src | |
parent | 03c4a85c534439986135232aa27b1575a33eabd3 (diff) | |
download | twitcr-a4b6e747d353ce23e82d28e6a91f45623b4ef3b2.tar.gz twitcr-a4b6e747d353ce23e82d28e6a91f45623b4ef3b2.zip |
Update to new helix/users/follows system, switch to new config directory
Diffstat (limited to 'src')
-rw-r--r-- | src/twitcr/rest.cr | 1 |
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 |