From 778af2fa15db2f9002bef0d42ab1e6e885280106 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Fri, 9 Aug 2024 21:26:25 +0200 Subject: [PATCH] document twitch channel info structure --- app/Console/Commands/TwitchChannelInfo.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/Console/Commands/TwitchChannelInfo.php b/app/Console/Commands/TwitchChannelInfo.php index 7b373c8..c297c7c 100644 --- a/app/Console/Commands/TwitchChannelInfo.php +++ b/app/Console/Commands/TwitchChannelInfo.php @@ -88,6 +88,20 @@ class TwitchChannelInfo extends Command { foreach ($channels as $channel) { $data = null; foreach ($rsp['data'] as $info) { + // id => numeric string + // user_id => numeric string + // user_login => string + // user_name => string + // game_id => numeric string + // game_name => string + // type => "live" (or "rerun"?) + // title => string + // viewer_count => int + // started_at => ISO date + // language => 2 letter code + // thumbnail_url => url + // tags [string] + // is_mature => bool if ($info['user_id'] == $channel->twitch_id) { $data = $info; break; -- 2.39.2