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;