From: Daniel Karbach Date: Fri, 9 Aug 2024 19:26:25 +0000 (+0200) Subject: document twitch channel info structure X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=778af2fa15db2f9002bef0d42ab1e6e885280106;p=alttp.git document twitch channel info structure --- 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;